You should just be able to send the content-type:image/jpg header in 
the response (from your servlet/bean) and load it from the url of the 
servlet. No?

Also, if you have retreived the binary data and are looking to push 
that into the Image component (and this is very strange, and maybe 
someone can explain this) but you can also pass a class into the very 
same attribute and it will display the image. Here is a sample 
derived from the Image documentation where you embed an image during 
compile time and use that embedded data in place of the string. 

<mx:Script>
<![CDATA[
[Bindable][Embed(source="theme/filetype/ico_wmrm.png")]public var 
wmrmICO:Class;
]]>
</mx:Script>
<mx:Image source="{wmrmICO}"/>

Hope this is helpful...

Shanimal

--- In [email protected], "moni_singhal" <[EMAIL PROTECTED]> 
wrote:
>
> 
> Actually i want to retrieve an image in a Flex Component (Flex 1.5 
> Application) from a java file (in java file i am getting the image 
> from the database ).
> As mx:Image tag only takes source as an attribute  .How should i do 
> this ? 
> 
> Thanks,
> Monika
>


Reply via email to