Recent

Author Topic: DBImage: how to use?  (Read 22187 times)

wp

  • Hero Member
  • *****
  • Posts: 9747
Re: DBImage: how to use?
« Reply #30 on: June 21, 2022, 07:02:12 pm »
I am rather sure that our TDBImage contains much of what you request. Please prepare a sample project demonstrating where DBImage is not sufficient.

mariodosreis

  • New Member
  • *
  • Posts: 10
Re: DBImage: how to use?
« Reply #31 on: June 22, 2022, 06:22:18 pm »
TDBimage does not work with Zeos  no even with:
procedure TForm1.DBImage1DBImageRead(Sender: TObject; S: TStream;
  var GraphExt: string);
begin
   GraphExt := 'jpg';
end;

procedure TForm1.DBImage1DBImageWrite(Sender: TObject; S: TStream;
  GraphExt: string);
begin
  if GraphExt <> 'jpg' then
    raise Exception.Create('Só há suporte para imagens *.JPEG');
end;

However it work's prety good with Firebird3 + IBX from https://www.mwasoftware.co.uk/personal-databases

wp

  • Hero Member
  • *****
  • Posts: 9747
Re: DBImage: how to use?
« Reply #32 on: June 22, 2022, 11:20:08 pm »
I wrote a small demo which collects several image types in an sqlite3 database and displays them in a DBImage. It's working correctly for me.

rvk

  • Hero Member
  • *****
  • Posts: 4677
Re: DBImage: how to use?
« Reply #33 on: June 23, 2022, 08:59:27 am »
TDBimage does not work with Zeos  no even with:
<snip>
However it work's prety good with Firebird3 + IBX from https://www.mwasoftware.co.uk/personal-databases
WHAT doesn't work? Do you get errors?

If it works with IBX but not with Zeos, the problem could be in the way you use zeos.
Like wp suggested, create a small sample project to show the problem.
« Last Edit: June 23, 2022, 09:03:58 am by rvk »

 

TinyPortal © 2005-2018