FileReader.readAsDataURL() stops working after migrate Expo 31

in my code I was fetching an Image and converting it to base64.

Basically I am using this piece of code:

 const reader = new FileReader()
        reader.onloadend = function() {
          const base64data = reader.result
          console.log('--', base64data)

This conversion was working perfectly before migrating Expo 31, now the result is always something like


Do someone know what could be happening?


Hey @ivan-travelperk,

I haven’t seen any other reports of this. Is this occurring on both platforms? If it’s just happening on Android, it may be related to the recent JSC upgrade that was part of the SDK31 release.



for the moment I’ve found it in Android, specifically the error is in react-native/Libraries/Blob/FileReader readAsDataURL then it seems more related to react-native than Expo.

I also found an open issue for react-native

Ah, I clearly didn’t do a thorough enough search of RN’s issues. I would follow along at the issue you linked since as you stated it’s more in the realm of RN than Expo. Hope it gets resolved soon!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.