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

Re: Using Blob in Gambas 3.20


On 1/22/25 10:48 AM, Safiur Rahman wrote:
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

I don't currently have a working Gambas 3.20, so I can't test this. But if Blob is now an unknown symbol (in v3.20), then you should be able to create your own Blob class.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Using Blob in Gambas 3.20Gianluigi <gradobag@xxxxxxxxxxx>
References:
Using Blob in Gambas 3.20Safiur Rahman <isafiur@xxxxxxxxx>