[Lazarus] How to assign a image file for a variable as Blob

Johan Tu Toit johan.tutoit at gmail.com
Fri Jul 26 17:27:18 CEST 2013


Hi all,
Please I tried the above statment:
DataModuleConn.SQLQuery.Params.ParamByName('getPHOTO').AsBlob:=image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);
its giving error:
image.pp(358,155) Error: Incompatible type for arg no. 1: Got "untyped",
expected "AnsiString"
image.pp(400) Fatal: There were 1 errors compiling module, stopping

The type assigned its wrong.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130726/f3ef215a/attachment-0002.html>


More information about the Lazarus mailing list