![]() |
Re: Frage zu Firebird Blob und Image
Binary bzw. 0
Viele Grüße .... |
Re: Frage zu Firebird Blob und Image
Hi,
also mit dem folgenden Source bekomme ich jetzt keine Fehlermeldung mehr, aber das Bild ist auch nicht in der Datenbank vorhanden?:
Delphi-Quellcode:
Fragende Grüße ...
ContactsQuery.ParamByName('P31').AsInteger := 3;
ContactsQuery.ParamByName('P32').AsBlob := main.Memo1.Text; if main.Image3 <> nil then begin img := TJPEGImage.Create; img.Assign(main.Image3.Picture.Bitmap); s := TMemoryStream.Create; img.SaveToStream(s); s.Position := 0; ContactsQuery.ParamByName('P33').LoadFromStream(s, ftBlob); FreeAndNil(img); FreeAndNil(s); end; ContactsQuery.ExecSQL; |
Re: Frage zu Firebird Blob und Image
Hast du mal versucht, einen Breakpoint zu setzen und getestet, ob deine if-Bedingung überhaupt greift?
Grüße Mikhal PS: Hat TJpegImage überhaupt eine Bitmap? |
Re: Frage zu Firebird Blob und Image
Hallo,
es klappt jetzt. Eine kurze Frage noch:
Delphi-Quellcode:
Kann ich mit img.Assign jedes Bild bzw. jeden Bildtyp aus einem TImage laden?
img := TJPEGImage.Create;
img.Assign(main.Image3.Picture.Graphic); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:48 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz