[V4MD, V.NET] Pictures again
Ruslan Zasukhin
sunshine at public.kherson.ua
Thu Feb 19 10:40:28 CST 2004
on 2/19/04 4:34 AM, Marcus Bointon at marcus at synchromedia.co.uk wrote:
> Not quite the same old question!
>
> I need to store pairs of images, one JPEG, one PNG in a Valentina DB.
> The database is being created using the Valentina .NET component, but read
> using V4MD. Because image data is written into blobs in the .NET app, it's
> just raw data. The thing that's concerning me is that it's vital that the
> PNGs are stored bit-perfect. JPEG seems to be less of a problem, other than
> lack of a picture type in v.net, which is what's forcing us to use blobs.
>
> It's more of a Director question really - am I safe setting member.image to
> a blob I've read from the DB and trust that Director will be able to handle
> the JPEG or PNG data correctly? If not, how should I go about it?
>
> Or should I reimport all images inside Director (which I'm trying to avoid)?
>
> And is there any difference in the actual JPEG image data stored in a
> picture field vs a blob field (aside from the additional stuff that the
> picture field type adds)?
Hi Marcus,
I think you have problems.
1) VNET do not have pictures? Not remember.
then you can try VCOM instead.
it works with DIB and Valentina's Picture field.
2) Director will NOT understand JPG and PNG from BLOB.
Director expect from Xtra uncompressed picture in the BITMAP format.
3) Picture field really differ from BLOB.
Picture field have 8 byte header. It seems described in C++ or RB docs.
4) Marcus, PNG in any case will not works.
may be you can only extract a picture from Valentina db to tmp disk file
and open it in Director. But problem is that V4MD do not have power to work
with BLOB fields.
5) I think only correct way for you -- insert pictures using Director
itself. Director will open JPG or PNG, convert them on open to BITMAP,
Give BITMAP to Valentina, Valentina compress them to JPG in the picture
field.
I think this is the only way if you want images in db.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list