Hi, I could not completely understand your problem. You are saying that the long number that you are getting from the result of the webservice... when you "decode" it, it shows up the pic. So does this mean that you already have the code to "decode" the number to image? If not... then I guess it is a kind of problem because the image encoding/decoding in Flex is usually handled with different kinds of Arrays.
And as far as loading the image is concerned, if you are using your component as an itemRenderer, the safest way to handle image loading is by binding it with a variable. Regards, Venkat On Sat, Sep 27, 2008 at 12:05 PM, smarinr <[EMAIL PROTECTED]>wrote: > > Hi guys, > I need a little help with a function. > > Situation: I'm try to decode an image from a webservice(a XML with > <image></image>) the instead of give me a path to the image, it brings > a LONG STRING that when you decode it and load on a image component, > the pic shows up. > > Here is my component: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="402" > height="120" backgroundColor="#010101" borderStyle="solid" > cornerRadius="10"> > <mx:Image x="10" y="10" width="100" height="100" id="imgContact" > source="{data.load(pic)}"/> > <mx:Label x="118" y="10" width="272" id="nameContact" > color="#FFFFFF" > fontSize="17" height="32" fontWeight="bold"/> > <mx:Label x="118" y="50" width="150" id="userContact" > color="#FFFFFF" > height="16"/> > <mx:Label x="290" y="74" width="100" id="addContact" color="#A8E61D" > textAlign="right" selectable="true" useHandCursor="true" > buttonMode="true" > mouseChildren="false" /> > <mx:Label x="290" y="50" width="100" id="sendMessage" > color="#A8E61D" > textAlign="right" height="16" useHandCursor="true" buttonMode="true" > mouseChildren="false" /> > </mx:Canvas> > > this component is partof a search feature, so the component is > actually the search result display. How do I make a function that > decode the image, load it on each separate component?? > > if you can send me code, samples or clear tutorial that give me an > idea, THANKS A LOT!!!! > > From CRC (Costa Rica) > smarinr > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

