Converting an image to base64 in angular 2

后端 未结 7 556
醉话见心
醉话见心 2020-11-30 05:31

Converting an image to base64 in angular 2, image is uploaded from local . Current am using fileLoadedEvent.target.result. The problem is, when I send this base64 string thr

7条回答
  •  独厮守ぢ
    2020-11-30 05:43

    Please consider using this package: image-to-base64

    Generate a image to base64, you can make this using a path or url.

    Or this accepted answer

提交回复
热议问题