Hi!!
I want to read image from SQL Server
I used these functions,but the picture is not displayed.
hstmt= DBActivateSQL (hdbc,"SELECT * FROM TABLE WHERE IMAGE_ID=30");
fromDBBits = malloc (BitsSize);
DBBindColBinary (hstmt, 4, BitsSize, fromDBBits,&bitsStatus);
DBFetchNext(hstmt);
NewBitmapEx (7776, 24,2592 ,1944, 0,fromDBBits,NULL,NULL,&bm );
SetCtrlBitmap (panelHandle,PANEL_PICTURE,0,bm);
please help me, thank you.