Page 1 of 1

loadFromString() method... Has been answered!

Posted: Wed Feb 27, 2008 8:33 pm
by JC
I have an image recorded on a table in MySQL database. Is there any way of
TBitmap open this file without the need to create on the hard disc?

I have using this:

Code: Select all

cResult := Result of this query -> [ SELECT image FROM table1 ] 

memoWrit( "C:\IMG001.BMP", cResult ) 

oImagem:loadBMP( "C:\IMG001.BMP" ) 
oImagem:refresh() 
Is there a way to load an image into an object of type TBitmap or any other
kind of a string directly from the database?
Something like :loadFromString () method from the Delphi?

Posted: Fri Feb 29, 2008 2:13 pm
by JC