AS3保存媒体文件服务器 [英] AS3 Save Media File to server

查看:235
本文介绍了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.

目前,我有这个

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

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

我将如何改变这样的<​​strong> 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.

类似的问题得到回答<一href="http://stackoverflow.com/questions/597947/how-can-i-send-a-bytearray-from-flash-and-some-form-data-to-php">here.

我觉得达到你想要什么是最好的办法是使用<一个href="http://$c$c.google.com/p/asfeedback/source/browse/trunk/com/marston/utils/URLRequestWrapper.as?spec=svn4&r=4"相对=nofollow>乔纳森·马斯顿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.

这篇关于AS3保存媒体文件服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆