[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IDE and new database component


Il 26/07/24 16:34, Benoît Minisini ha scritto:
It aims at being an exact equivalent. In pratice, it has slight
differences (besides possible bugs).

The only API difference that can break compatibility is that there is no
more "Blob" class for dealing with blob fields. Just use strings instead.

Any other difference should be signaled so that I fix it!

Regards,

--
Benoît Minisini.


Hi Benoit,

I need clarification about gb.db2 for the BLOB.
If I try to change the old code (gb.db) by loading the image into an
image object (hImage) and then passing it to a string with the ToString
function (sImage = hImage.ToString()), when I update the result I get
the error -1: Cannot create record: unrecognized token: "'‰PNG ^Z". So
this is not how, in this case, that we can change the BLOB and we need
only to save the images in a folder and only the paths in the database,
as with any other type of object.

I attach the link to the old example project (gb.db) that I try to update:
https://paste.c-net.org/PlayaBottle

Thank you and regards
Gianluigi


Follow-Ups:
Re: IDE and new database componentGianluigi <gradobag@xxxxxxxxxxx>
References:
IDE and new database componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: IDE and new database componentGianluigi <gradobag@xxxxxxxxxxx>
Re: IDE and new database componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: IDE and new database componentGianluigi <gradobag@xxxxxxxxxxx>
Re: IDE and new database componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>