(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, |
|