HI Abdul,
I was looking more of an in memory image, that way we dont have to deal with clean up on the server. Also, multiple users may be logged on and requesting different photos.

any way to go base64->binary->image in memory in AS2?

-aly

On 10/12/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
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:
 
 
Above code would request getImage servlet to return the image of dog or whatever :)
 
-abdul


From: [email protected] [mailto:[email protected]] On Behalf Of Aly Sidi
Sent: Wednesday, October 12, 2005 9:49 AM
To: [email protected]
Subject: Re: [flexcoders] binary data to render...

I would like to do the same..can you provide some pseudo code for the mx:Image?
-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






--
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




Reply via email to