Convert blob to base64

后端 未结 9 2024
无人共我
无人共我 2020-11-22 13:12

This is a snippet for the code that I want to do Blob to Base64 string:

This commented part works and that when the URL generated by this i

9条回答
  •  逝去的感伤
    2020-11-22 13:35

    Most easiest way in a single line of code

    var base64Image = new Buffer( blob, 'binary' ).toString('base64');

提交回复
热议问题