I am currently evaluating the GDViewer OCX for an application in Powerbuilder 10.2. I have been having good luck displaying images using the DisplayFromByteArray method. However, now I need the flip-side to this situation, extracting the byte array, but I am having little success.
Hypothetical situation:
1. Load an image into the OCX using DisplayFromByteArray (successful). The ByteArray supplied is a Powerbuilder blob variable.
2. Call OCX's rotate90() method to rotate the image (successful; image is rotated).
3. Obtain ByteArray back from OCX into a Powerbuilder blob (how?)
It's that third step messing me up. I see the GetHBitmap in the reference materials, but how do I convert this to a blob? Or is there a simpler, more direct way to do this?
This seems so straightforward, there must be a way. Thanks in advance for your help.
