when I use the Request.InputStream in MVC3 action method to save the file sent by action script I got a corrupted file. When I used firebug to trace the request I realized that the Content-type is “application/x-amf” and has the file name at the end of the stream. knowing that I can’t change the action script I need a way to save the file correctly to disk.
Share
Just to save time I encoded the byte array into base64 string and sent it to server. Then decoded it on the server side and saved the file. It works fine for now.