Ah sorry--I misundersood.  The best solution that I can come up with for that is to send the jpg data to the server and load it from there.  I've done that with PNG and it works.  It seems kind of laborious to round trip it.  There must be a better way!

On 5/30/06, mail <[EMAIL PROTECTED]> wrote:
Tim, thank you for the quick response. The problem with image.source and image.load is that I don't have a physical file to point to (both are expecting a URL). I have used the ByteArray to extract jpg bytes from an MP3's ID3 tag internally in Flex. I can then load this ByteArray into Loader.loadBytes, but I'm unsure where to go from there.

From: "Tim Scollick" <[EMAIL PROTECTED]>
Sent: Tuesday, May 30, 2006 1:04 PM
To: [email protected]
Subject: Re: [flexcoders] Help Loading ByteArray into Image


I think that you want to look at image.source and image.load.

On 5/30/06, mail < [EMAIL PROTECTED]> wrote:
What is the best way to get a ByteArray into an Image (or similar UIComponent) in AS3? I'm working on some classes that extract the album art from an MP3 file. I'm able to load the resulting ByteArray into a Loader and then use myImage.addChild(myLoader). The album art displays which is awesome, but the image doesn't recognize the child as it's content. Any suggestions?

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to