How to change binary data buffer read from a binary file to string format

How to change binary data buffer read from a binary file to string format

Post by Anderso » Sat, 22 Jul 2006 17:26:29


Dear all,
Could anyone tell me how to convert binary data in buffer to string
format,thanks in advance!

Anderson
 
 
 

How to change binary data buffer read from a binary file to string format

Post by MVP for I » Sat, 22 Jul 2006 19:35:31


The most convenient and used way is to encode to Base64.

ATL has some of these very handy utilities (no need to reinvent the wheel),
see atlenc.h