loadFromString() method... Has been answered!

Post Reply
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

loadFromString() method... Has been answered!

Post 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?
Last edited by JC on Fri Feb 29, 2008 2:13 pm, edited 1 time in total.
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

Post Reply