|
-
July 18th, 2012, 01:13 PM
#5
Re: How to Retrive PDF Binary data from sqlserver
 Originally Posted by medwrite
CLongBinary* binarydata = varValue->m_pbinary;
But how to write a pdf file using this binary data ?
Please give to us your suggestions.
I believe, the answer is pretty obvious. Did you bother to check CLongBinary documentation. HGLOBAL m_hData member contains data bytes handle, DWORD m_dwDataLength member contains bytes count. What is the problem here? You use GlobalLock function to access actual data bytes. And don't forget to unlock it later.
And I hope you know how to write memory buffer of known size to file.
Best regards,
Igor
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|