Terry A. Haimann via Lazarus
2018-10-31 12:05:46 UTC
I tried loading an image into a Medium Blob. The image uploads and
shows up on my form, but when I click post on my DbNavigator the
program gives me an access violation.
Here is the source code:
procedure TPropertyForm.ImgButClick(Sender: TObject);
Var
MyImageFile, MyDir: String;
begin
MyImageFile := '/';
if OpenDialog1.Execute then
begin
MyImageFile := OpenDialog1.Filename;
end;
DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);
End;
Am I missing something I have to do? The blob should be large enough,
they are supposed to be able to hold 16 Meg and the jpegs are running
about 2 - 3 meg. I am running Mint 18.3, using Mysql 5.7.22 and using
ZeosDBO.
Terry Haimann
--
shows up on my form, but when I click post on my DbNavigator the
program gives me an access violation.
Here is the source code:
procedure TPropertyForm.ImgButClick(Sender: TObject);
Var
MyImageFile, MyDir: String;
begin
MyImageFile := '/';
if OpenDialog1.Execute then
begin
MyImageFile := OpenDialog1.Filename;
end;
DbPropImg.Picture.Jpeg.LoadFromFile(MyImageFile);
End;
Am I missing something I have to do? The blob should be large enough,
they are supposed to be able to hold 16 Meg and the jpegs are running
about 2 - 3 meg. I am running Mint 18.3, using Mysql 5.7.22 and using
ZeosDBO.
Terry Haimann
--