AS3保存媒体文件服务器文件服务器、媒体

由网友(凉笙墨染、倾城殇)分享简介:我不是很好用AS3,并想知道如果有人可以帮助我看到,因为我无法找到谷歌的答案。im not good with as3 and was wondering if someone could help me with this seeing as I cant find the answer on google.目前...

我不是很好用AS3,并想知道如果有人可以帮助我看到,因为我无法找到谷歌的答案。

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

目前,我有这个

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

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

我将如何改变这样的 recorder.output 保存到我在同一个目录,而不是现在如何,其产生的文件保存窗口,以节省我的本地硬盘驱动器的服务器。

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.

推荐答案

基本上,你需要将你的ByteArray发送给一些服务器端脚本,将其保存在服务器上。

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

类似的问题得到回答here.

我觉得达到你想要什么是最好的办法是使用乔纳森·马斯顿URLRequestWrapper类。这是很好的注释,所以应该很容易使用。 如果你正在使用PHP,你可以阅读关于如何接收和保存文件的在php.net。

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.

阅读全文

相关推荐

最新文章