Click to See Complete Forum and Search --> : Saving images from database fields to files
LuisRivera
07-06-2001, 04:21 AM
I currently have a database with images stored in a image field.
I can view these using an asp page, but i also need to extract them into files, for example the picture is car1 in db needs to be extracted to car1.jpg.
does anyone know the code that i can use
Thanks
qball
07-06-2001, 10:07 AM
how do you view in ASP?
zskillz
07-06-2001, 02:43 PM
I know this doesn't answer your question, but now you've got me wondering. What type of database are you using? I've never heard of an image db.
thx
-Z
LuisRivera
07-07-2001, 09:46 AM
I am using Filemaker, I know you can use Access and SQL to do the same, but i don't require that at the moment.
To use Filemaker image information i just use the BinaryRead asp command.
To function in Access or SQL i think it is pretty much the same thing but slightly more involved, and i haven't looked into it yet.
qball
07-08-2001, 02:29 PM
BinaryRead streams the file to the browser in the default MIME type.
Try:
http://www.asplists.com/listserv/archives/binaryfiles.asp
qball
07-09-2001, 02:25 PM
The example I have posted above, inherently shows how to retrieve the file from the DB into memory. Once in memory, and hopefully the file type is known, then save to file with proper extension, right?
SysOpt.com
Copyright WebMediaBrands Inc. All Rights Reserved.