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

Re: Using Blob in Gambas 3.20


Le 22/01/2025 à 16:48, Safiur Rahman a écrit :
Hi

I have upgraded to Gambas 3.20. The wiki says
The Blob class has been removed. Blob fields are now accessed exactly like string fields. (https://gambaswiki.org/wiki/comp/gb.db2 <https://gambaswiki.org/wiki/ comp/gb.db2>)

I have been using Blob as

Dim hFile As Blob

hFile = res["fldimage"]
If hFile.Length Then
   File.Save(tempFile, hFile.Data)
Endif

Can you provide a procedure which allows me to use Blob in gambas 3.20 without replacing Blob present in around a hundred locations?

--
Regards
Safiur Rahman

It's possible to write a wrapper class, which automatically converts from a string and to a string, but not in Gambas.

I will see what I can do.

Otherwise, you don't have to use 'gb.db2' in your old projects. 'gb.db' is still there.

Regards,

--
Benoît Minisini.


References:
Using Blob in Gambas 3.20Safiur Rahman <isafiur@xxxxxxxxx>