-1
good morning.
Does anyone know how to send exe and csv files to Mysql using Delphi?
I didn’t find much in it. I need to save CSV files in the table but when I import by the test below the file size is much smaller than the original.
imgfoto.Picture.LoadFromFile('C:\1\1.jpeg');
imagem := Tmemorystream.Create;
imgfoto.Picture.Graphic.SaveToStream(imagem);
FDQuery1.Open;
FDQuery1.First;
if FDQuery1.Locate('LJ_NOME', 'AAAAAAAA', []) then
begin
FDQuery1.Edit;
TBlobField(FDQuery1.FieldByName('LJ_BLOB')).LoadFromStream(imagem);
end;
I tried to convert CSV and EXE to JPEG and send via stream, it does not recognize because it is not image. I tested via memo, but it carries the first line only.
How do I upload files to Mysql?