Basically, I have a .Net component (in C#) that would send the stream of bytes to my COM server after converting it into a base 64 string as follows:
Code:
//.Net code
byte[] arr = new byte[2];
arr[0] = 1;
arr[1] = 2;
string dataByteStream = Convert.ToBase64String(arr);
//In this case the value of dataByteStream will be "AQI="
This string is recieved in my C++ COM Server in a...
How to convert a base 64 string to byte array in C++?
I have a wstring that has a base 64 string. I need to extract a byte array from this base 64 string. How can I do this? I am implementing a COM Server in C++. Please help
Leave a comment: