Board index » delphi » how to store a jpeg file in a blob field
Giannis Dagoulis
![]() Delphi Developer |
Tue, 31 Aug 2004 19:49:04 GMT
how to store a jpeg file in a blob field
This is a sample of my code
First is the sql command for the creation of the table CREATE TABLE "TABLE1" ( "IMAGES" BLOB SUB_TYPE 0 SEGMENT SIZE 80 ); Next is the code procedure TForm1.Button1Click(Sender: TObject); begin IBTable1.Open; IBTable1.Append; if IBTable1IMAGES.IsBlob then IBTable1IMAGES.LoadFromFile('G:\ProjectTourism\ptyxiakh\images\galaxygianni where the IBTable1IMAGES is a TBlobField. A strange thing that i have IBTable1IMAGES.LoadFromFile('G:\ProjectTourism\ptyxiakh\images\galaxygianni |