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

Place a picture into an access database using asp

Status
Not open for further replies.

GWINTO

IS-IT--Management
Nov 26, 2001
188
GB
I have been given the task of putting together a mock-up system for a national registration scheme, this scheme requires that uses have have their picture on an id card.

What would the code be on a form to allow the user to browse their system for a picture, and then post that picture into a data base (upload it using ftp perhaps?)for recall at the administration end to produce the ID card.

I can do the text easy but have never worked with pics before
 
The best thing to do would be to upload the picture to your server using ftp or some upload component. aspSmartUpload is a pretty goof file upload component that I use and it's free.

I would save the picture on the server (not in the database) and have a text field in the database which stores the location of the picture file. Mighty :)
 
I would agree, the first problem you will run into is the differant picture types, when you go to write out a picture from binary format in your database you have to know exactly what format it is in so that the browser knows how to read the header section of the image and how to process the image itself.
I would go with the goof(heh) file upload component as suggested above, after having spent some time(read days and days and days) trying to do this myself.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Tarwn,

Please excuse my little typo. aspSmartUpload is actually a good file upload component. Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top