Depends on what you mean by support and what you are actually trying to
do. 

 

Can  I assume you are talking about an AIR application (as you are
referring to the FileReference class).

 

Is there a canned function that takes a file reference and uploads it to
a server? No

 

Is there a HTTP client allowing you to create almost anything?
Certainly.

 

First, a file reference is simply a reference to the file. You will need
call the upload method on that reference and pass it a valid URLRequest
object. For our organization, we choose not call web services with
binary data uploads but rather use multi-part forms to perform the
upload of images and other complex objects. 

 

If your plan is to load the file and post the contents of that file more
along the lines of REST, then you can easily get to the data of the
FileReference and post that as well however pay attention to the
necessities of encoding the payload.

 

See this ->  
http://blog.flexexamples.com/2007/10/30/using-for-the-filereference-clas
ss-uploadcompletedata-event-to-capture-data-from-a-server-side-script

 

Also, explore googlecode especially the flickr actionsript API's but we
aware of the fact that if you are going to have to deal with binaries as
well as large file, you will probably be building out your own solution.
The Flickr API's are pretty specific (obviously) and implement their
server side generic method invoking pattern. You should be able to see
how HTTP works.

 

K

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Amanda
Sent: Thursday, October 23, 2008 6:48 AM
To: [email protected]
Subject: [flexcoders] Upload file(from local machine) via web service

 

Hi,

Does anyone know if flex supports browsing a local file system for a 
file and then sending the file via a web service? I have seen the 
flash.net.FileReference class, but I am not seeing a way to convert the 
fileReference to something useful like an XMLDocument so I can send it.

Thanks.
Amanda S.

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to