In a software application, images have various uses. Some images are used for viewing as a logo and some are stored as binary data in the database. For example, a client's photograph can be stored in the database as binary data.
In this chapter, we shall:
So let's get on with it.
To store an image as data in the database, the required data type is
LONGBLOB. BLOB stands for Binary Large Object, which can store large images or binary data.
In our database, the
Product table has an attribute
Image of type
LONGBLOB. We will display ...