How can I upload an image to a DB using sql? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I upload an image to a DB using sql?

I think one way is uploading the url as varchar and the other is uploading an image but I don't know how

6th Nov 2016, 7:12 AM
Billy
Billy - avatar
1 Answer
+ 1
You could store your images in BLOB objects, but unless you can't save them on the disk, I'd recommend uploading the URL instead, it's usually faster and easier to use.
6th Nov 2016, 8:57 AM
Pierre Varlez
Pierre Varlez - avatar