Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Convert CLongBinary to CString? How to copy the m_hData of the ClongBinary to CString with out losing any characters in it..
Posted

1 solution

CLongBinary[^] is just an array of bytes so there is no standard way of converting your object to a string. You will need to write your own conversion routine, which will depend on the exact form of the output that you want to produce.
 
Share this answer
 
Comments
Gokulnath007 29-Jul-11 8:20am    
I have tried using the m_hData directly to set in the blob field, but while opening the recordset, it takes so much time. While executing AFX_ODBC_CALL(::SQLExecute(m_hstmt)); statement, it takes too much time and sometimes the system hangs for this..
Richard MacCutchan 29-Jul-11 8:33am    
Sorry, but I don't understand what this has to do with your question. Are you having problems reading or writing the blob data? If so I would suggest you open a new question and include full details of your objects and show the code that is causing the problem.
Sergey Alexandrovich Kryukov 2-Aug-11 4:37am    
Exactly, a 5.
--SA
Richard MacCutchan 2-Aug-11 15:47pm    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900