How to upload binary (audio) data from a Flash AS3 client to .NET server (WCF/REST/HTTP/?)?

Posted by Bobby on Stack Overflow See other posts from Stack Overflow or by Bobby
Published on 2010-05-05T03:06:49Z Indexed on 2010/05/05 3:18 UTC
Read the original article Hit count: 267

Filed under:
|
|
|
|

Simply stated: I'm trying to record audio in a browser, and get that data back up to the server.

I originally tried to capture, encode and upload the audio using Silverlight, but because of the lack of suitable client-side encoding options, I'm now giving Flash a shot (Flash has baked-in support for encoding to Speex).

I think I've figured out how to capture and encode the audio... But now what was easy in Silverlight, is the challenge in Flash.

  • My server-side is .NET: MVC2-
  • I'm open to receiving the audio in whatever manner is best- REST, WCF..
  • So that's my question:
    How could one upload binary data from Flash, to a .NET server-side endpoint.

If the answer is WCF: then how would one setup the client-side proxies to communicate with the service? If the answer is REST or HTTP Post, then how would one construct this HTTP request and pass along the data? I've been reading up on AS3, but am new to Flash dev... Thanks for any help!

© Stack Overflow or respective owner

Related posts about flash

Related posts about web-services