Thursday 20 September 2018

Convert Bitmap image object to Base64?

So I have a Bitmap object that looks like this { "width": 504, "height": 28, "byteWidth": 2048, "bitsPerPixel": 32, "bytesPerPixel": 4, "image": { "type": "Buffer", "data": [ 255, 255...} How do I convert it into a base64 string with javascript? It is also possible for to turn the bitmap object into a hex string that would look like "ffffffdfdfdf333333..." If direct from bitmap into base64 isn't possible, would hex to base64 be possible?

Submitted September 20, 2018 at 09:30PM by ProfessionalSpace5

No comments:

Post a Comment