In this post we will see how to store images in BLOB type database column instead of server OS. This post also shows how to read images later from BLOB column using Image servlet.
Download the sample code
Summary of steps as follows:
1) Create table with BLOB column.
2) Create Business Components as usual make sure the type is BlobDomain is selected.
3) Create Managed Bean which process image to store in BLOB (request scope level)
4) Create Image Servlet to read Images from database table.
Details in this video.