[Gambas-user] escape a picture

Benoît Minisini gambas at ...1...
Wed Nov 25 00:22:40 CET 2009


> Hi,
> 
> How can I escape a picture in order to insert it into a BYTEA
> postgresql data field?
> 

Normally, if the postgresql field datatype is BYTEA, the gb.db component will 
see it as a blob.

Let's suppose the field name is "Picture". You will do:

MyResult!Picture = File.Load("/path/to/picture/file")

Is it what you need?

-- 
Benoît Minisini




More information about the User mailing list