Saturday, 8 February 2020

Do you set the buffer size based on base64 str length or do you need to use that pad formula?

By pad formula I'm talking about this: 4 * n / 3I so far am using and while it works, I'm not sure if I just got lucky.new Buffer.from(image.src.replace(/^data:image\/\w+;base64,/, ""), 'base64', image.src.length);I was using just a plain Buffer like most stuff online but saw the notice about it being deprecated/unsafe.

Submitted February 08, 2020 at 08:38PM by ie11_is_my_fetish

No comments:

Post a Comment