0

I have an image in base64. I want to store that in MySQL Database as BLOB. So i want to convert that base64 image into BLOB in react js. How to perform the convertion. atob is not working in react js for me.

Please help me in resolving this issue. Thanks in advance.

  • 1
    Possible duplicate of https://stackoverflow.com/questions/36698716/how-to-convert-base64-into-blob-in-react-native https://stackoverflow.com/questions/16245767/creating-a-blob-from-a-base64-string-in-javascript – c3b5aw May 31 '22 at 07:47
  • @c3b5aw In the 1st link npm base64 is not there for react js( https://github.com/mathiasbynens/base64). The 2nd link i have tried, atob is not working. – sureshtechi May 31 '22 at 08:21

0 Answers0