How to store images in database | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to store images in database

can anybody explain, how do we work on images in database? like storing, retrieving, updating it? please tell me the syntax, how to store and retrieve image from database?

21st Jul 2016, 8:50 PM
Crown Gagan
Crown Gagan - avatar
5 Answers
+ 1
in blob stands for binary large size object ,and using blob anybody can store image direct inside database,where as if u want to store the image outside the database the u can give it's location path into bfile.if your first priority is security to image file then store it directly into db using blob,otherwise if security is not the issue then use bfile
22nd Jul 2016, 5:09 AM
Mayank Singh Chaudhary
Mayank Singh Chaudhary - avatar
0
this is to store information in tables
22nd Jul 2016, 4:16 AM
rk naidu
rk naidu - avatar
0
using blob /bfile
22nd Jul 2016, 4:55 AM
Mayank Singh Chaudhary
Mayank Singh Chaudhary - avatar
0
actually images are count in large size object
22nd Jul 2016, 4:56 AM
Mayank Singh Chaudhary
Mayank Singh Chaudhary - avatar
0
yes BLOB is an binary object ..use memory stream to convert image into binary and binary to image
22nd Jul 2016, 6:11 PM
Lalit Sharma
Lalit Sharma - avatar