ActionScript 3.0 :: Upload Bitmapdata To Php Server?
Sep 17, 2005
I am having a bit of problem uploading bitmapdata which i have taken with my webcam onto my php server..the code i have so far:
public function browse(event:MouseEvent) {
var header:URLRequestHeader=new URLRequestHeader("Content-type","application/octet-stream");
var jpgURLRequest:URLRequest=new URLRequest("url");
[code]....
Im getting this error:
ArgumentError: Error #2127: FileReference POST data cannot be type ByteArray.
at flash.net::FileReference/upload()
at Source/browse()
I have a webcam script that takes screenshot when you click the snapshot button. Now I would like people to have another button to upload their photo on the server. How can this be done?
import flash.display.BitmapData; mycam = Camera.get(); vid.attachVideo(mycam);// vid is videoobject on stage bitmapData = new BitmapData(160, 120, true, 0);
I am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....
ActionScript Code: if (PDFFiles[i] != false){ PDFFiles[i].upload(uploadPHP); }
As the loop runs quicker than PHP can upload, the success of....
ActionScript Code: function fileUploaded(e:DataEvent):void { trace "Success"}
....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?
I now have a Windows PC and I purchase Adobe Flash Media Server 3.5 software and install.I but server space on a managed server arrangement.I upload my pre recorded Flash clips to the server and my website and playlist to my host. Basically the website is channelled via http and the clips via RTMP. The key question that no one inside Adobe seems to be able to grasp (or answer) is ~ will it work if I stream my own clips?! or is it inferior to say that of a professional streaming company.The streaming companies charge anything from $125 to $250 a month, a big cost for someone like me, streaming around 1000mb a month. So does anyone out there have direct knowledge of this software and can you stream via rented server space without using a streaming company?
I'm trying to write a contest where the user can paint an outlined image I provide, and then submit it. I want it to then save the image on my server with properties so I can tell who submitted it. They will be asked to input these values of course. I looked into the JPGEncoder but could only find examples for downloading the image directly. Is there an easier way to do a contest like this? I'd rather not have them have to save the image locally and then e-mail it, as this is geared towards kids and I don't want it to be confusing.
I have a website which is a html file which loads a swf. This swf is an image gallery controlled by an xml file. If I update the xml file and upload it onto my server, will the swf automatically update. Or will I need to open the fla, compile a new swf with the updated xml, and also upload the new swf to my server?
I'm using Dreamweaver CS3. I'm new to Flash and It seems that every time I take 3 steps forward I have to take one back. I've inserted the .swf into the html page, where it resides inside a cell within a table. It plays there, and in Preview In Browser.I've uploaded the .html page to the server but the movie (and all the code relating to it) will not go along with the rest of the page contents. There is no trace of any movie coding anywhere on that .html page on the server.I have three other Flash movies on this site, all on different .html pages. All the elements of all the Flash movies are in their own folders, all of which reside in one single Flash folder. The other three movies play successfully on the server.
And on my computer, in Dreamweaver Code View, the correct path to the .swf file is present.But, only for that one movie, none of the Flash movie code will upload to the server. I'd like to supply a web address, but this forum does not allow the inclusion of URLs. To bad, it would certainly clarify the problem.
my baner is considered unsafe because of fileHandler.upload function which uploads selected image to server. Is there any other function I can use to replace fileHandler.upload ?
Here's what I am trying to accomplish. I have a BitmapData that I am sending to a PHP function as ByteArray on the server by using URLRequest. The PHP function then saves the ByteArray as a jpg. All is well, so far and I am able to save the image on the server. Where I am stuck is that the PHP function generates the image file name randomly and I have no clue on how to get the name of the file I have just saved on the server. I am using the below code to send byteArray to the PHP function. How to modify/add this so I can get the filename of the image once it's saved on the server?
var myHeader:URLRequestHeader = new URLRequestHeader("Content-type","application/octet-stream"); var myReqst:URLRequest = new URLRequest(path);
I am unable to uploade the file "expressInstall.swf" generated by Flash CS4 AS2.0. DreamWeaver displays the following error message:
"Scripts:expressInstall.swf - error occurred - An FTP error occurred - cannot put expressInstall.swf. Access denied. The file may not exist, or there could be a permission problem."
I am working on a mac but my question is what files do I need to export out of CS5 to include in my upload besides the index SWF and index html? Do I have to export each individual page? Each individual photo? each individual button, ect? Or is there a main folder I can export and up load to my server. Also for all the photos I have put into the project, do I need to upload them as a seperate folder, if so, is there a specific name I should label it so it registers?
Am developing an app on which a user can record from their webcam or upload videos to the fms. Is it possible to upload video to fms using php or flash?
I need to upload a csv file from local directory to tomcat server using actionscript and Flex as frontend. The uploaded file should be queried which i have done in java using csv database driver.
Is it possible to upload files to a server, with flash only? I'm looking for a SWF file that's able to do this task.is it possible to upload a file with flash alone (no PHP or ASP)in case this is possible: is there a simple SWF-file to do this task which I could use?
how exactly would i go about to upload an image to my server with AS3 and php and have the filename always be different so it doesn't overwrite another uploaded image.
I need to have a photo upload option on a form i am creating in flash. I would like to do this with PHP and Flash 8.I am creating a form, where people can enter information, then include a photo which needs to be saved in a folder specified by a entry on the form.
I'm currently trying to build a flash image uploader
My problem is that they all seem to upload the images to just one folder, is there a way the user can select or create a new folder to upload images to?
I have had an SWF running on a HTML page since early 2008, and this SWF pulls down some images from another server - subseqently displaying them for the user.The SWF uses BitmapData to smoothly display the loaded JPG images.However, since the 10.1 update, this no longer works - everything gets drawn blank (when the bitmapdata's .draw() method is invoked).I must point out that this has been working fine for years before the 10.1 update, and the security setup has also been done correctly (the image server has the crossdomain.xml file, and the local SWF file has the relevant Security.allowDomain settings in place).Has anyone else experienced this, or know of a fix? This is driving me nuts, many of our clients who have this SWF in place on their website can no longer see the images after updating to 10.1.
I'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server.
I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want simply upload the file to the server without opening another window.[code]...
I am trying to get the "bwcheck" application to work on FMS 4 on Amazon EC2, in order to detect my upload speed to the server and provide the best quality stream for my upload speed.
The tutorial I follow is this:
[URL]
Both are almost identical. However when I compile the .fla to .swf (having changed the URL for my server and application), and after I load the server-side code, I get the following error in my server-side log:
Method not found (recData)
I understand that apparently it is not finding the method, but I tried getting it off the function in the global scope, tried attaching it to the client, etc. but nothing worked. The original code of the server-side script is:
for ( i = 0; i < 1000; i++ ) { data += "S->C"; } Client.prototype.recData = function(data)
rtmfp downloaded from the node, and the upload bandwidth to another node, but the FMS bandwidth limitations Client.getBandwidthLimit () seems to only limit the bandwidth of the server to the client such as RTMP, ask how to limit the bandwidth between nodes, such as RTMFP.