Delphi-Quellcode:
// Speichern
jpg:=TJPEGImage.Create;
m:=TMemoryStream.Create;
try
jpg.Assign(img_main_logo.Picture.Graphic);
jpg.SaveToStream(m);
m.Position := 0;
TBlobField(aqTmp.FieldByName('pfad')).LoadFromStream(m);
finally
FreeAndNil(m);
FreeAndNil(jpg);
end;
// Laden
jpg:=TJPEGImage.Create;
m:=TMemoryStream.Create;
try
TBlobField(aqTmp.FieldByName('pfad')).SaveToStream(m);
m.Position:=0;
jpg.LoadFromStream(m);
img_main_logo.Picture.Assign(jpg);
finally
FreeAndNil(m);
FreeAndNil(jpg);
end;
Da kommt aber immer der JPeg fehler