How to set padding for base64 encoding
rikki cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 7 04:59:09 PDT 2016
On 07/04/2016 11:49 PM, Suliman wrote:
> It's look like my data have padding that cause crush on function:
> std.file.write("output.png", Base64.decode(myimg));
>> Invalid character:
>
> It's look like I should to use template function, but I can't figure out
> how to use it. Could anybody show example?
>
> My code:
> http://www.everfall.com/paste/id.php?pzpdgvtyb3ji
>
> https://dlang.org/phobos/std_base64.html#.Base64
"abc" strings are not multiline.
Use """abc""" for that purpose.
Also perhaps next time test with a smaller file.. say 1 by 1 with no
extra chunks.
More information about the Digitalmars-d-learn
mailing list