The "uploadCompleteData" event has a "data" property that contains
whatever the server returns from the upload call.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of aytuganov
Sent: Tuesday, September 30, 2008 4:05 AM
To: [email protected]
Subject: [flexcoders] Re: FileReference to ByteArray

 

Thanks Jon.
I discovered this issue and found the way to solve my task with java
servlet. But now I have other problem. 
I can add listeners for COMPLETE, IO_ERROR,HTTP_STATUS,
DataEvent.UPLOAD_COMPLETE_DATA events. But I can not find the way to
receive a respond from servlet with the generated filename if my file
that I have just uploaded.
Thanks in advance.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 
> On Sep 26, 2008, at 4:48 AM, aytuganov wrote:
> 
> > Does somebody know is it possible to select file using
> > FileReference.browse() and than set it to ByteArray instance.
> > (There is an object that has an ByteArray property. I have to set
this
> > property and send the object to server using RemoteObject - but it's
> > not a matter)
> 
> In Flash 10.
> 
> You have no access to the content of a FileReference object or item 
> in any version of Flash earlier than v10. That's a resounding answer 
> of "no".
> 
> There may be ways to hack the HTTPHeader information to include 
> additional content information when the FileReference is uploaded. 
> Otherwise, you'll need to send that data separately to the server.
> 
> good luck,
> 
> jon
>

 

Reply via email to