Antonio,
I use a remote database which has two fields, the second field is a blob that contains a bitmap, which could be .bmp, .jpg, or .png. The first field is just a reference name. I get the data back as an array, then just use SetArray() to load into xbrowse.
When I create an xbrowse the bitmap is handled mostly correctly, in that it displays in the grid. I need to take that same bitmap out of the array and simply display it in a window using an appropriate control (TBitmap, TImage, ?) without ever writing the bitmap to disk. There are a large number of examples that show how to load a bitmap from a file on disk, and an equally large number showing how to load a bitmap from a resource, but there are no examples that I can find that show how a bitmap as I have described can be displayed directly from memory without ever putting the file on disk.
I know this can be done, xbrowse does it itself when :nEditType is set to EDIT_BUTTON on the field with the bitmap, the default behavior of pressing the button is to open a dialog that displays the bitmap. If I could figure out what is being called by default to manipulate and display that data I could probably figure this out from there, but a simple example would work better.
Can I please get an example that shows how to take a bitmap that is in memory either as a harbour variable, or is in a database where it could be accessed using alias->blobname, attach that to an appropriate control and get it to display in either a window or a dialog. I know I can do this by first writing the blob to disk, then reloading from disk, but I have no desire to do this. And, in my case, it will never ever exist as a resource embedded in an .rc file, so examples for loading from resource don't help.
Robb