How to save jpg image to database and then load it in Delphi using FIBplus and TImage? -


how save jpg image database , load in delphi using fibplus , timage?

var   s : tmemorystream; begin   s := tmemorystream.create;   try     tblobfield(adoquery1.fieldbyname('imagefield')).savetostream(s);     s.position := 0;     image1.picture.graphic.loadfromstream(s);       s.free;   end; end; 

if using jpeg images, add jpg unit uses clause of unit file.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -