1

I need to convert the base64 string to Blob in order to store in database. Is it possible in flutter. Whatever i tried so far are only converting to base64 by encoding and converting back to image by decoding the base64. I have no idea how to convert a base64 into blob in flutter. Any help is much appreciated

Sumithra N
  • 93
  • 2
  • 6
  • `I need to convert the base64 string to Blob in order to store in database. `. No. You can just put the base64 string as blob in your database. You can put anything as a blob. – blackapps Jun 29 '20 at 07:23
  • Any idea how to do that in flutter? In javascript i used blob() to convert base64 to blob format. But no idea how to do that in flutter. var imageobj = null; fetch(base64) .then((res) => res.blob()) .then((blob) => { console.log("here is your binary: ", blob); imageobj = blob; }); – Sumithra N Jun 29 '20 at 07:27
  • Sorry, i do not use Flutter. Must be a pretty standard operation i think. – blackapps Jun 29 '20 at 07:30

0 Answers0