displaying graphic from blob field
Posted on 2004-08-23
In d3 I had a form with a dbimage control connected to a blob/memo field in an apollo Taptable
ie dbimage is a tdbimage
datasource is the datasource connected to the database containing the bitmaps in its memofield - "image"
i rerieve the size of the image using
then display this in a tpaintbox using (via a few subroutines)
the form was converted to D7 with the aptable replaced by a Tapollotable but otherwise essentially the same.
using the same database for the two programs i find that the values of ih and iw are 0 in the D7 case and no image is displayed.
even manually overriding the size variables just displays an empty rectangle.
I tried to change the D7 version to us a timage rather than a tdbimage but can't work out have to assign the image in the blob field to the image control.
Any ideas why the d3 code doesn't wrk in D7 or how to work around it?