imagejpeg from an Access OLE Object

admin

Administrator
Staff member
I have a catalogue made in Access, that I want to deploy on a web site.
Since MySQL seems like a much better solution for my needs, I'm about to convert the database, however, the pictures are stored as OLE Objects.
What I want to do is to extract these pictures and save them as .jpg files (with filename = 'database ID'.jpg).

Now, this line:
imagejpeg ( $row[0], "test.jpg" );

gives this error message:
Warning: Supplied argument is not a valid Image resource (...)

Anyone done this one successfully before?
In that case: how?
 
Back
Top