Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading GIF/JPG into SQL Server

Status
Not open for further replies.

PDL

IS-IT--Management
Dec 11, 2000
36
US
How does one go about uploading an image into SQL server... we have been linking to images in other directories but that gets confusing FAST.
 
Is there an equivalent in Access... I usually develop in Access and UPSIZE to SQL Server using their tool.

What I am curious about is using Cold Fusion, what is used to move the image into the database.

Something like:

<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;IMAGE&quot; VALUE=&quot;<IMG SRC='PICTURE.JPG'&quot;>

 
I don't think there is a true equivalent in Access although the memo field would probably be the closest. I've never tried using one to store images but it might work. The input you'll need on the html form is an <input type=&quot;file&quot; name=&quot;f1&quot;> which will send the file and you'll need to put this extra code in your form tag.

<form method=.... enctype=&quot;multipart/form-data&quot;>

You could then try inserting the form variable &quot;f1&quot; into your memo field. I've never tried this so I can't say what problems you may run into. Just post any problems and I'll see if I can't help.

GJ
 
Getting the file to access is no problem, it should convert it into binary format. The question I have is, how are you going to convert from binary to regular image format.


CFProgrammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top