how to store picture in database?
i want to know the code.

Recommended Answers

A better solution than saving the actual image itself in the database is to store the location of the image (its URL or file system location). Obviously to do that you need to have the column in the table set to accept varchar() and then just insert the URI of …

Jump to Post

All 2 Replies

A better solution than saving the actual image itself in the database is to store the location of the image (its URL or file system location). Obviously to do that you need to have the column in the table set to accept varchar() and then just insert the URI of the image into (e.g C:\images\pic1.jpg or whatever it happens to be).
You can save the image itself if you want to waste the space by using the blob object

i don't understand about blob,that is why i want to know the code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.