I think you’re not going to be able
to save the file as it comes down from a webservice. You’re better off
using the flash.net.FileReference class to point to a servlet url and have it
download that way.
Matt
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of aung_thiha_aung
Sent: Monday, March 06, 2006 3:38
AM
To: [email protected]
Subject: [flexcoders] Need help
for download operation using web service
Hi all,
I use flex 2.
I want to write for download attachment file from server by
using my java web service.
My java web service return string(file name) and base64Binary(data) type.
<result>
<fileName>MyFile.txt</fileName>
<data>dGVzdA0K</data>
</result>
I can decode base64 string (dGVzdA0K) to orginal text(test).
But, I don't know how to give user as a file to download it.
I am not sure it's can possible or not.
The first I want to know is am I need to use a servlet to generate a response
to client.
If not require, is there any solution and let me know how?
Thanks,
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|