kevin_i_orourke has asked for the wisdom of the Perl Monks concerning the following question:
One of my personal projects at the moment is a database of slides I have taken over the past few years (see my website for some examples, it's a bit broken just now though). I started off by using MS Access (ick!) so I'm sticking with it for now (although MySQL looks good as a replacement).
One of the fields in the database is a thumbnail of the slide. In the past I've added a few of these manually, but it's a bit of a pain to open the file in Paint Shop Pro, copy it and paste it into the DB.
I'm looking for a way to automate this process but of course Access doesn't seem to make this easy. The images go into an OLE object field (ick ick ick!).
I can dump out an existing object via DBI::ODBC but I can't work out how to create an OLE object from a file using Perl. Would something in Win32::OLE help?
Or should I just move the whole thing across to a proper database and store the images as BLOBs? I had thought about keeping the images as separate files but that makes copying/moving the database more difficult.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling pictures with DBI and Access
by dmmiller2k (Chaplain) on Jul 25, 2001 at 17:18 UTC | |
|
Re: Handling pictures with DBI and Access
by AidanLee (Chaplain) on Jul 25, 2001 at 15:42 UTC | |
|
Re: Handling pictures with DBI and Access
by wardk (Deacon) on Jul 25, 2001 at 17:31 UTC | |
by kevin_i_orourke (Friar) on Jul 25, 2001 at 18:09 UTC | |
|
Re: Handling pictures with DBI and Access
by John M. Dlugosz (Monsignor) on Jul 25, 2001 at 19:13 UTC | |
|
Re: Handling pictures with DBI and Access
by InfiniteSilence (Curate) on Jul 25, 2001 at 22:43 UTC | |
|
Re: Handling pictures with DBI and Access
by zebedee (Pilgrim) on Jul 26, 2001 at 12:06 UTC | |
|
Re: Handling pictures with DBI and Access
by Ay_Bee (Monk) on Jul 25, 2001 at 18:11 UTC |