Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012749Openbravo ERPZ. Otherspublic2010-03-19 18:122012-02-29 17:57
mtaal 
marvintm 
normalmajorhave not tried
closedduplicate 
5
2.50 
 
User Interface Client Kernel
No
0012749: Support display of image in grids etc.
Currently the new user interface does not correctly handle the display of images, like the product image. This needs to be solved.
No tags attached.
duplicate of feature request 0019926 new AugustoMauch "Image" type field should be shown in grid 
Issue History
2010-03-19 18:12mtaalNew Issue
2010-03-19 18:12mtaalAssigned To => mtaal
2010-03-22 12:59mtaalNote Added: 0025646
2010-03-29 17:25mtaalTypedefect => feature request
2012-02-09 15:33mtaalAssigned Tomtaal => marvintm
2012-02-29 17:57dbazRelationship addedduplicate of 0019926
2012-02-29 17:57dbazStatusnew => closed
2012-02-29 17:57dbazResolutionopen => duplicate

Notes
(0025646)
mtaal   
2010-03-22 12:59   
Basically, the images are stored in a BLOB column. The servlet ImageInfoBLOB corresponds to the window through which the user can upload images, and you can find the code which is used to create the images there. Basically, the image is read as an array of bytes, and it's stored directly in the BLOB column using the DAL provided method (if you want to see this servlet working, you can customize the system logos in the System Information window, for example).

To read and display the images, the ShowImage servlet is used. This second servlet was written by Asier, and I don't know all the details, but just looking at the code, it seems pretty straightforward (the image is read from the database, again as an array of bytes, the MIME type is found using an utility class, and then the bytes are printed to the output directly).

AFAICS, it appears that no resizing is done. If you need additional information, tell me. Regards,