How to convert bytearray to image or image to bytearray ?

user57404 picture user57404 · May 25, 2009 · Viewed 61.5k times · Source

How to assign bytearray value to panel background image. If anybody have idea or experiance plz help me to overcome the problem. BRIEF EXP:

I have panel control and want to load image getting from webservice as a backgroundimage. So i used setstyle() but its not accepting that image. so how to add that image into my panel background image.Plz tel me your ideas here.

Answer

Alex Rios picture Alex Rios · May 16, 2010

In Flex 3 or higher, you just need to do:

 yourImage.source = yourByteArray;

regards!