p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: Inserting an image into a database


Message #1 by "Amit" <amitabh@k...> on Thu, 20 Jul 2000 7:22:19
I have an HTML form, which accepts a picture in GIF or JPG and i want to 

store that image in an SQL Server database on the server. How can i insert 

the image into the database without using a third party component ? How 

will i obtain the image file from the form data ?



thanx in advance

Message #2 by Mark Everest <Mark.Everest@t...> on Thu, 20 Jul 2000 14:19:02 +0100
You chould use the AppendChunk and GetChunk methods of a field object (if

you are using ADO).







-----Original Message-----

From: Amit 

Sent: 20 July 2000 08:22

To: ASP Databases

Subject: [asp_databases] Inserting an image into a database





I have an HTML form, which accepts a picture in GIF or JPG and i want to 

store that image in an SQL Server database on the server. How can i insert 

the image into the database without using a third party component ? How 

will i obtain the image file from the form data ?



thanx in advance


  Return to Index