FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour loadFromString() method... Has been answered!
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
loadFromString() method... Has been answered!
Posted: Wed Feb 27, 2008 08:33 PM
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:

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?
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
loadFromString() method... Has been answered!
Posted: Fri Feb 29, 2008 02:13 PM
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9

Continue the discussion