Subject [IBO] Re: TBlobField problem
Author Thomas Steinmaurer
btw, why are using streams?

TBlobField has a LoadFromFile method.

with ibqryPicture do begin
Edit;
TBlobField(FieldByName('PICTURE')).LoadFromFile(sFileName);
Post;
end;

Thomas

--- In IBObjects@y..., "Tilo Muetze" <tmuetze@i...> wrote:
> ""Thomas Steinmaurer"" <thomas.steinmaurer@a...> schrieb im
Newsbeitrag
> news:9s9890+o6t7@e...
> > Hi Tilo,
> >
> > try to insert following line:
> >
> > ...
> > imgJPG := TJpegImage.Create;
> > imgJPG.LoadFromFile(sFileName);
> > imgJPG.SaveToStream(strJPG);
> > strJPG.Position := 0; file://<---------- insert this line!
> > ...
>
> Good idea Thomas, but it still doesn't work. Seems that this one is
too
> complicated for me :)
> --
>
> Regards,
> Tilo Muetze