> Is there any way to compress a DBImage before posting? I have an
> Oracle table with a LOB field to store images in. I'm reading the
> image into a DBImage component from a file, then posting the record
> into Oracle. This takes up massive amounts of space, especially if
> the image is a full page color document.
> Lance Robaldo
It depends one what you want to do. If the image must be losslessly
compressed and you are dealing with 8R8G8B data then you can set the type
as a compressed windows bitmap or you can use a different filter such as
JPEG (lossy) or PNG. You do have to go through some contortions <grin> for
storing the data in the said format but it's entirely possible, JPEG
compression works best on natural images PNG works best on images with a
lot of constant space (IE documents).
PNG will work for small color spaces also so it's not too big of a problem.