Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 save gif, jpg file

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2005-11-03 : 20:05:50
How to save graphic file such a gif or jpg file into SQL server directly from scanner?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-03 : 23:47:37
One of the easiest ways is to store the path of the file than the file itself then using file system object you can retreive the image and show it in your presentation layer

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2005-11-04 : 10:57:46
Very interestin. You mean save all graphic files into a folder of server and then save path and file name into SQL db?
Go to Top of Page

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2005-11-04 : 10:58:26
Can you teach me more detail?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-05 : 00:16:13
quote:
Originally posted by Sun Foster

Very interestin. You mean save all graphic files into a folder of server and then save path and file name into SQL db?


Yes I meant it

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-11-05 : 05:00:58
Saving images in a db is known as BLOB. Which really is a bad design. As Madhivanan said, save it in a folder and save the relative path in your tables

and in your page use a virtual path such as /images/db/<%database_path or filename%>

hope this helps

Go to Top of Page
   

- Advertisement -