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

Re: While you're packing (some questions about gb.db2)


Il 14/08/24 14:04, Gianluigi ha scritto:
Hi Bruce,

first thanks for the lots of information.
The Database appears to populate but in reality the image field strings
remain empty, or at least it seems so.

My old brain needs a break to think, but if you find the solution of how
to get the image from DataControl6, you are welcome (see link for an
example)

https://paste.c-net.org/WhippedHoynes

Regards
Gianluigi

In summary, Bruce was right when he suggested, as also done by Claus,
and written in Prof. Hans Lehmann's book here:
https://gambas-buch.de/doku.php?id=k22:k22.4:k22.4.12
:start#klasse_blob_gbdb
to use Base64.

You can memorize it like this:

    sPath = "img" &/ Lower(aSurNames[i]) & ".png"
    hResult!image = Base64(File.Load(sPath))

and you can read it like this:

    hImage = Image.FromString(FromBase64(DataControl6.Value))
    PictureBox1.Image = hImage

Thanks again to everyone who helped me understand.

Regards
Gianluigi


References:
While you're packing (some questions about gb.db2)Gianluigi <gradobag@xxxxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Gianluigi <gradobag@xxxxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Gianluigi <gradobag@xxxxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Bruce Steers <bsteers4@xxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Bruce Steers <bsteers4@xxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Gianluigi <gradobag@xxxxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Bruce Steers <bsteers4@xxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Bruce Steers <bsteers4@xxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Bruce Steers <bsteers4@xxxxxxxxx>
Re: While you're packing (some questions about gb.db2)Gianluigi <gradobag@xxxxxxxxxxx>