pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edvin Syse ...@syse.no>
Subject SV: How to insert an image using Image class
Date Mon, 23 Jan 2012 19:09:58 GMT
I have an image stored as it Base64 representation. I can convert the image back to an array
of bytes. How can I embedded such an Image in an ImageView object from Pivot? I need this
because I'm developing a shoping cart using Pivot, and I need to present the Image of each
product. Please any suggestion would be welcome.

You can load it like this:

imageView.setImage(new Picture(ImageIO.read(new ByteArrayInputStream(imageData))));

.. where imageData is a byteArray.

-- Edvin
View raw message