ActionScript 3.0 :: Upload File As "application/octet-stream"?
Apr 30, 2010
I need a script that allows the user to upload a file to server, but I won't use Filereference.upload() beacause I want to send the file as "application/octet-stream" with URLLoader.load()
View 2 Replies
Similar Posts:
Jun 21, 2011
The situation is, this resize code has always worked for me because I was using local images. I am now using a third party admin which feeds images through an application/octet-stream.
Whereas previously, I was loading the image with the Loader::load method but I am currently using the Loader::loadBytes to load the binary data because I am being fed a stream instead of an image/jpeg.
By switching to the stream, the code now fails to get past this line:
resizedImageData.copyPixels(e.currentTarget.getChildAt(0).bitmapData, cropRect, new Point(0, 0));
[Code]...
View 1 Replies
Jan 7, 2010
I have a flex multifile uploader which is great, it uses a php page to 'catch' the uploads. I get the file information on the php page using things like this:
Code:
//Name:
basename($_FILES['file']['name'])
//Size:
$_FILES['file']['size'][code]..........
View 1 Replies
Sep 25, 2010
I am using actionscript engine to upload a file, the engine will select the file and send the file over network thru HTTP POST command, the document says the POST message is like:[code]In server side I have a C++ program listens on port 80 and parse the POST message. I only want the file name and file data. How to decode the file data using c++, is it base64 encoded and is there a library can do it for me? I want to decode the binary, and write it to the file.
View 3 Replies
Dec 30, 2011
I am trying to create a multiple file upload flash application to be called from an External Interface, but it isn't working.
AS3:
var fileRef:FileReferenceList;
ExternalInterface.addCallback('selectFiles', showDialog);
function showDialog()
[Code].....
When I run the script and comment out the fileRef parts and uncomment the alert call, it shows the alert, also when I comment out the ExternalInterface call, leaving only the fileRef parts, it shows the file upload dialog.
When I run it as intended, I get the following error:
Error calling method on NPObject
View 2 Replies
Sep 16, 2009
I have successfully been able to write some client-side ActionScript that allows me to record my webcam and mic data to my FMS server. The .flv files get saved to a directory under the applications directory. However, I need to process those flv files for a web application and would like those .flv files to be saved to the web app's directory (outside of the FMS application directory). I have tried changing the <Streams> tag in the Application.xml file that I placed in the FMS application directory, but that simply did not work.My goal is simple: to save the recorded stream data outside of the FMS application's directory. I have been going crazy trying to do this, but would like to know any pointers that any of you experts have. Can this be done? If not, how can I execute a server side PHP script after the stream is done recording. I know about using the exec() function in PHP, but am unsure as to how to execute that script via client-side actionscript.Here is the path to my FMS server (Linux OS) installation and the application directory. The application name is "ngale"./opt/adobe/fms/applications/ngaleHere is the path that my client-side ActionScript is placing the .flv files of the recorded streams/opt/adobe/fms/applications/ngale/streams/recordings/Here is the path to my web application/home/user/public_html/dev.ngale.net/public/Here is the path that I would like for the .flv recording files to be saved to/home/user/public_html/dev.ngale.net/public/audio/.flv
View 5 Replies
Jun 8, 2011
when i use flash cs5 publish the app for ios,It works fine.But when i upload the package to the app store,application loader popup message: "Application failed codesign verification.The signature was invalid,or it was not signed with an Apple submission certificate."I create the certificate file from mac.
View 3 Replies
Aug 31, 2010
my listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded?
[Code]...
View 1 Replies
Jul 22, 2011
I have a quick question relating to Actionscript 3 / AIR. I have looked through the site, but may be searching for the wrong thing or terms.Is it possible to get an application wide audio stream from an AIR application?I am trying to create a local audio file containing everything (all channels) played in an AIR app.I have tried using the SoundMixer.computeSpectrum() function, but it returns a bytearray (size 2480) full of zeros... It looks like it isn't reading the audio data correctly... I am playing a swf loaded using a SwfLoader and it is playing the sound out..
View 2 Replies
Dec 6, 2010
I want to create a html page that can be used to upload videos and also able to playback the videos. I am totally new to this. 2 weeks before only i learnt uploading and processing images.[code]...
I am using Java in server side!
And i also want to know that Is there any way to do them all with AJAX?
View 1 Replies
Sep 8, 2011
My situation is that I have to convert an HTML form into a Flex WebApplication. A Java Servlet runs on the server that will use the data and interact with the database.
I have a couple Text fields and 2 images that need to be uploaded. The two images are browsed with 2 FileReference objects. I understand that I need to create a POST request on a HTTPRequest object, but how will I pass the image data as well?
View 1 Replies
Jan 26, 2011
When a client connects to an application (nc.connect) this is catched at server side using application.onConnect; so, when the client asks for a stream (ns.play) ... does this have some correspondence at server side ? Can we catch this event in some way?Or, seen from another point of view: is there any way, from within an application, to know what stream(s) the application is serving ? I mean, if we want the list of connected clients we have the application.clients array; is there any correspondence from streams ?
View 2 Replies
Oct 21, 2010
I use FMS 3.5 and i have same problem.....the delay of live video from the studio to clients is big, 10 seconds if i restart the server. After one day of staying on, the delay reaches 1 minute or 2.
The FMS is connected to 1 Gibabyte internet fiber, and the stream is VP6, 500kbps video and 128kbps audio, 720x576 resolution. Server Quad 3.0Ghz, 4 Gb Ram.
Please help me to minimize the delay. What i must write in application.xml from live folder?????? Is there a command. I don't want to make buffer, i want the clients to receive live stream, if the stream is buffering i want to play it jumping that sequence, to maintain the live aspect,not to delay it if the clients doesn't have a good internet conection.
Let's suppose i have 1 FMS, 1 Media Encoder, and 2 computers with flash player on the same Switch ( Local area Network). I've made some tests and the delay i get is minimum 5 seconds.
View 1 Replies
Sep 14, 2011
I have a folder in my applications folder in FMS 4.0 Is it possible to stream both Live and VOD from this sames folder.
View 1 Replies
Jun 3, 2011
I have a interactive flash application where I can click on menus and do stuff with it. Is it possible to capture the whole viewport which involves expanding menus and stuff and turn it into a video stream in flash?
View 1 Replies
Oct 24, 2009
I'm about to embark on a rather large Flash project that will involve a lot of streaming video.Most of the videos are short (about 4 seconds) but some will be longer, up to a couple of minutes.The videos will be hosted on an Adobe Scene7 server, which allows for resolution and encoding-type to be set in the stream request (amazing technology that I hadn't heard of until this project!).[code]...
View 3 Replies
Nov 20, 2009
For a client, i need to write a complex application used to stream tv episodes in flash format, at least, the player will be in flash. It's a first for me, and i've a lot of question, since i don't really know about streaming.But well, first, here is the constraints :
Mac server (might be migrated to linux)
PHP5
Flash
external library could be used with PHP
What i need to do at first, is to write some app (php, python, shell), or find one to convert over 500 quicktime videos to be able to be read within a flash player.Then, i'll a back office, to add videos with meta data (the meta data will be simple html inputs), and, here is an important part of the project, the ability to generate chapters for each video (manually), the client will choose the start of a chapter, give it a name.
My questions : Is there any flash player able to do that ? or will i have to use 'playlist' such as youtube to simulate chapters ? Will it be easy to use the quicktime video within a flash player ?
View 1 Replies
Mar 16, 2012
I'm sure this has been asked and answered a million times, but searching for "application" "buffer" "cache" "live" and "hls" isn't giving me any answers, so let's get to it. After I end a live stream (which I do using FMLE 3.2 and FMS 4.5) and I then start a new live stream with the same application name, the HLS stream just loops the last 30 seconds of the old stream. To prevent this, after I end a stream, I have to go to applicationslivepkgstreams\_definst_ and delete the buffered data there. Only then can I start a new stream with the same name as the old stream. Now... that can't be normal, can it? Is there a switch somewhere I can set to tell FMS to cut it out and stop buffering old streams?
View 1 Replies
Jan 13, 2012
Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
View 2 Replies
Aug 18, 2011
I have made one one mobile application in flash builder using flex mobile project I have a question that "why size of an .ipa file is large as I export a mobile application as iOS application.???? in compare to that same application for android takes small size!
View 1 Replies
May 16, 2010
I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?
View 1 Replies
Feb 21, 2012
I am trying to upload a file on server using File class. Its working fine on local machine. But when i a placing the php file on server, it is giving Error #2038: File I/O Error.
[Code]...
View 0 Replies
Jan 19, 2012
I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.
[Code]...
View 1 Replies
May 14, 2009
i need some help with this photo gallery im working on. im pretty sure i have almost everything correct but for some reason i cant get the thumbnails when clicked to link up with the img. i want it to show.
well i cant really upload the file here i just found out so i can email it to whoever leaves there email
if someone could take a look at the file and tell me what im doing wrong that would be so helpful ive been working on it for the past 2 days trying to fig. out whats wrong searching everywhere and i just cant fig. it out.
View 1 Replies
Sep 9, 2006
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
View 2 Replies
Mar 2, 2009
I'm trying to figure out if there is a way to allow a user to upload a file in the background and let them continue to interact with flash movie, while the file is being uploaded. E.g. if they are uploading a 50mb file, we don't want the whole interface to be locked up for 10 minutes while the file uploads, it's be great if they can continue to interact in the movie while the file uploads. I'm guessing if they refresh the page, or navigate away from the movie, that the upload process would get cut off and there isn't anyway around that. Couple of ideas I had:
1. My first thought is that we could use a popup window with a upload form in it. Which is simple, but not very cool.
2. Use some sort of ajax background uploader in conjunction with flash ... not sure exactly if this is possible.
View 11 Replies
Oct 15, 2009
I have a flash site (finally) but I need to host it through dreamweaver. I cant do it. I tried loading it thru the media option and it gave me an error. I have a lot riding on this site and Im at the last step only to find some new obstacle in my way.
View 2 Replies
Jul 30, 2009
I recently used Flash to create the header for my website. However, when I tried to upload my .fla file along with the .swf (which had no problem), I couldn't because the file format isn't supported. Is there any way I can get around this?
Also, I heard that you have to upload some .js file or something.
View 3 Replies
Jun 28, 2010
uploading files on Mac system. The same code runs perfect on a Windows system. Below is a snippet of the code I am using:
public class BrowseImage extends MovieClip
{
public var fr:FileReference = new FileReference();
public var ff:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png;*.pdf,*.JPG,*.JPEG,*.GIF,*.PNG");
private var timeStamp:String;
[code].....
Once the file gets uploaded to the server, I load it into my application.Also, the script runs fine if there isn't any space in the file name of the file to be uploaded.
View 1 Replies
Dec 12, 2009
i want to uplod csv file in to java from flex screen ? How can i do that ?
View 2 Replies