Hi,
Instead of returning base64 to client, you can create(from
within webservice method on server) an image on server and save it
at somewhere on server . You can return the path of generated Image to
client(flex app).
Once you get the path of image, you can pass it to Image
component.
//set by web-service result handler.
var imagePath:String;
<mx:Image source="{imagePath}"/>
Other way, as Manish said, invoking a server-side script
directly from Image component:
<mx:Image
source="http://foo.com/getImage?dog"/>
Above code would request getImage servlet to return the
image of dog or whatever :)
-abdul
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aly Sidi
Sent: Wednesday, October 12, 2005 9:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] binary data to render...
-aly
On 10/12/05, Manish
Jethani <[EMAIL PROTECTED]>
wrote:
On 9/20/05, Raymond Camden <[EMAIL PROTECTED]> wrote:
> If I call a web service that returns a base64 encoded version of a JPG
> file, is there anyway to actually render the image in Flex? Or must I
> call a local WS, pass in the data there, have it save and then load it
> via URL?
I think you should have a servlet or something return the data as a
"image/jpeg" type and then load it in an Image component.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.