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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Inset an jpg file into the Image datatype

Status
Not open for further replies.

C0PP3R

Programmer
Jun 27, 2002
64
CA
I have a table with an ID and an Image datatype and I'm trying to insert a jpg file into the image field. Does anyone know the SQl syntax to do this.

Muchly appreciated as always

Copper
 
Best advice - don't do this! Trying to store the actual image in the database will lead to all sorts of problems and will not perform well.

Instead, store the images in a folder and simply store the path to the image in a varchar field in your DB. --James
 
I've heard that many times before, although the DB I'm working in was set up by someone else, and to retain functionality for the time being I need to insert one jpginto the DB, Anyone know the SQL code for inserting a jpg into an image datatype field?

Thanks Again

Copper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top