Is it ok to remove newline in Base64 encoding

Breaking a base64 encoded string into multiple lines has been necessary for many old programs that couldn’t handle long lines. Programs written in Java can usually handle long lines since they don’t need to do the memory management themselves. As long as your lines are shorter than 64 million characters there should be no problem.

And since you don’t need the newlines, you shouldn’t generate them at all, if possible.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)