Hello,
We have a database full of photos in TIF format, and have now realised
that we can make do equally well with JPEGs which take up about 5% of the
space with no real loss in quality for our purposes.
At the moment I'm thinking of using DBI to write all the pictures to
disk as TIFs, convert them using a tifftopnm | ppmtojpeg combination
and then use DBI to write the JPEGs back into the long raw field in
the database.
I really want to have just one perl script that grabs the tiff from
the database, converts it and writes it back into the database without
writing it to disk. I understand that using a double pipe (using Open2)
from within my perl script can run into buffering problems.
Has anyone any examples/suggestions the best way of doing this with DBD
Oracle/DBI?
Cheers,
Simon.
--
_______________________________________________________________________
Simon Hoadley
Team Leader : Database Application Development Team
MIS, University of Wales, Aberystwyth [EMAIL PROTECTED]