Question

Locked

storage of images in database

By abhijeet.mcain ·
i want to ask th question that
how should i store gif,bmp etc. images in sql server 2000
its an urgent requirement

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Well the answer in my opinion

by Tony Hopkinson In reply to storage of images in data ...

is you shouldn't, you should store a url to it.
However, you need a blob type column (image is suitable data type.
Then you need a Utility to get them in there.
Usual method is to pick the image file, loadit into a stream, open a query, insert / update stream it into the blobfield and then post.
Note if you are storing differentypes of images and you don't want the oiginal file name, it would be wise to store the file extension as well.

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums