var
  j : TJpegImage;
  a : TBlobStream;
begin
      J := TJPEGImage.Create;
      a := TBlobStream.Create(TBlobField(customerdata.photocds.FieldByName('Photo')), bmRead);
      try
        J.LoadFromStream(a);
        Image1.Picture.Assign(J);
      finally
        a.Free;
        j.free;
      end ;end;