Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Java Byte[] to Image?
siva2_2000
Hi
Retrieved asset from MediaBin server as byte[] array. Need to convert to Image in JSP. This there any MediaBin�fs JAVA API?.
Please Help me with some sample code
Regards
Shiv
Find more posts tagged with
Comments
Migrateduser
Try subclassing java.awt.Image and overriding "getSource()" which is an abstract method that returns the ImageProducer interface.
In your subclass method, return a MemoryImageSource which you can create from a byte array.
From there, you can do what you need to with the Image object.
Let me know if this helps.
-damon