Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5361

SQL varbinary to bmp

$
0
0

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.

 


          


Viewing all articles
Browse latest Browse all 5361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>