loadFromString() method... Has been answered!

loadFromString() method... Has been answered!

Postby JC » Wed Feb 27, 2008 8: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:

Code: Select all  Expand view  RUN
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

Postby JC » Fri Feb 29, 2008 2:13 pm

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


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: JoseLuis and 83 guests