AS3 Save Media File to server

≡放荡痞女 提交于 2019-12-11 23:18:36

问题


im not good with as3 and was wondering if someone could help me with this seeing as I cant find the answer on google.

I currently have this

fileReference.save(recorder.output, "recordedfile.wav");

How would I change that so recorder.output saves to my server in the same directory instead of how it is now, which produces a file save window to save on my local hard drive.


回答1:


Basically you will need to send your bytearray to some server-side script that will save it on your server.

Similar question was answered here.

I think the best way to achieve what you want is using URLRequestWrapper class by Jonathan Marston. It is well commented so it should be easy to use. If you are using php you can read on how to receive and save a file on php.net.



来源:https://stackoverflow.com/questions/4635820/as3-save-media-file-to-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!