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\galaxygiannis
.bmp');
   IBTable1.Post;
   IBTable1.Close;
end;

where the IBTable1IMAGES is a TBlobField. A strange thing that i have
noticed is that when i store a new file in bitmap format the system returns
the following error
"Dynamic sql error sql code = -104 unexpected end of command." Then when i
use the IBConsole and open the last record i get the following error.
"Unable to display blob. The format is not graphical"
"Detail message. Stream read error."
The strange thing is that the previously inserted record that returned the
same message works now fine. So every last insert doesn't work but when i
will insert the next record the previous works. And this is happening only
when i am using bitmap pictures. The jpeg pictures are stopping at the
command

IBTable1IMAGES.LoadFromFile('G:\ProjectTourism\ptyxiakh\images\galaxygiannis
.bmp');
because it cannot be loaded