Base64 encode with Stream_StringToBinary inserts a newline, breaking the string?
This is because of how the Base64 encoding deals with long strings. From RFC 2045 – 6.8 Base64 Content-Transfer-Encoding The encoded output stream must be represented in lines of no more than 76 characters each. All line breaks or other characters not found in Table 1 must be ignored by decoding software. In base64 data, … Read more