Hello,

I currently have a project that reads a Dynamic Link Library from a HTTP stream into a string (yes it can be done differently but for this project it can't).
The string needs to be converted back to a byte array (which contains the DLL), the problem is the encoding.

I've tried unicode, default, ansi code page ... not sure but they all mess up. Here's a an example to show what I mean;

Original file:




Downloaded string converted to byte array then written to file (debug):




So the problem is clearly the encoding (getbytes), does anyone have an idea how I can write the contents of my string DIRECTLY to a byte array without encoding?

Thanks.