0 Replies Latest reply on Mar 1, 2010 8:42 AM by Kyle McIntyre

    Create Image from MIME data

    Kyle McIntyre

      Hi,

       

      My flex application is calling a web service that returns icons to be displayed as a map legend. The web service can either return a URL for each icon or encoded MIME data for each icon. I need to display the icons in an Image component. Currently, I am doing this by setting the "source" property on the Image componenet to the URLs that are returned. However, it would be much more efficient if I could create the Image components from the encoded Mime data. As there are about 20 icons that get returned, this would reduce my number of server hits from 20 to 1! What is the best way to display an image from encoded MIME data in Flex?

       

      Thank you!

      Kyle