Wednesday, August 3, 2011

How would I convert a PNG Image into a byte array?

Using GWT I would like to read a PNG image and have the data
accessible to me as a decoded byte array.

On the client side I get the image using an ImageBundle, I then
instantiate an Image and call setUrl.

At this point, how do I get the image byte array from the image?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment