Click to See Complete Forum and Search --> : access db question


esthera
09-11-2005, 08:55 AM
I have an access db that has pictures stored in it's oledb field.
Is there a way I can move them to a folder on my hard drive and just update a field with the name of the picture in the folder?

slyfox
09-15-2005, 07:04 PM
yes, display them on a page, then right click and save, OR loop through table while saving it using the filesystem object, then/while saving it's destination and id or name in a field in the db

easy as pie, I think!

esthera
09-16-2005, 12:51 AM
how would I loop through and get the values -- you mean I should just write an asp to take the picture and move it to a file and update the system?

slyfox
09-16-2005, 04:13 AM
Yes, that's the one

esthera
09-16-2005, 04:35 AM
are there any scripts out there like this??
how would I get the picture to save to disk?

slyfox
09-16-2005, 07:04 AM
I will point you in this direction... I'm not sure if you can use the filesystem object to move images around but you can get it's file names to save to db

http://www.w3schools.com/asp/asp_ref_filesystem.asp

esthera
09-16-2005, 07:24 AM
but it's not saved now as a file -- it's save as an oledbobject -- how do I convert it from teh oledbobject to a file?