How to set padding for base64 encoding
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 7 05:39:57 PDT 2016
On Thursday, 7 April 2016 at 12:30:59 UTC, rikki cattermole wrote:
> On 08/04/2016 12:19 AM, Kagamin wrote:
>> Create a range that would remove the newline characters from
>> string,
>> then decode from that.
>
> Can confirm, its \n and \r that is causing the problems here.
with:
std.file.write("output.png", Base64.decode(myimg.replace("\r\n",
"")));
I am getting same issue. But it should remove all new lines...
More information about the Digitalmars-d-learn
mailing list