Solution: Use BLOB Data Types As Needed
Let's use the BLOB data type for storing images.
We'll cover the following...
We'll cover the following...
If any of the issues described in the previous lesson of this chapter apply to us, we should consider storing images inside the database instead of in external files. All database brands support the BLOB data type, which we can use to store any binary data.
Advantages of storing an image in a BLOB column
If we store an image in a BLOB column, all the issues mentioned above are resolved:
-
The image data is stored in the database. There is no extra step to load it and there’s no risk that ...