#96 CustomerInfoExt.getImage is not usable (patch included)

v3.56
open
nobody
None
1
2014-01-23
2014-01-22
Ron Isaacson
No

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.

1 Attachments

Related

Discussion: Customer Notes pop-up
Discussion: Some patches to contribute...

Discussion

  • Ron Isaacson
    Ron Isaacson
    2014-01-23

    My apologies -- my previous patch caused complete breakage. Adding a BufferedImage field to CustomerInfoExt caused tickets with customers to be non-serializable, leading to exceptions when opening/closing the app and at various other times.

    Long story short: please use this patch instead!

     
    Attachments