The CustomerInfoExt class has a method called getImage, to return the picture stored in the customer record. However, it returns a String. Due to encoding issues, it's not possible to store binary image data in a String and then get it back in a usable format.
I added a button to my ticket panel to pop up an info box with info about the customer on the ticket, and would like to show the picture. But to do that, there needs to be a way to get the image out of the CustomerInfoExt object sent to the scripting engine.
The attached patch changes the stored image from a String to a BufferedImage.