well, you can use the postedFile functionality included in ASP.NET ( http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp.net/995.asp ) but instead of saving to the filesystem, you'd assign the binary content of the image to an image-type field in SQL2000 however,
it's not always the best way to go - it's less efficient than just using the filesystem in the majority of cases. Usually I recommend you store the images as files and just insert the PATH to the image into the DB, though there are circumstances where it's
acceptable to do this. What's your actual requirement (I mean, why do you want to put them into SQL Server?) j
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
Actually they are small icons, and we don't want people to mess around with them or try to copy and use them somewhere else. I cannot think of any other way safeguard them... unless you guys can suggest? :)
Storing them in the database will not stop people from hiting 'save image as' in their browser. no way. there's nothing, and I mean nothing, you can do about that. You can stop people leeching from your site with solutions like this one : http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/935.asp
but you can't stop someone saving the content they've already downloaded to their computer in order to view. it's how the web works.... j
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
supergal
Member
360 Points
72 Posts
How do I store an image to sql2000?
Aug 04, 2003 02:20 AM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: How do I store an image to sql2000?
Aug 04, 2003 07:06 AM|LINK
Jason Brown - MVP, IIS
supergal
Member
360 Points
72 Posts
Re: How do I store an image to sql2000?
Aug 04, 2003 11:09 AM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: How do I store an image to sql2000?
Aug 06, 2003 01:00 AM|LINK
Jason Brown - MVP, IIS