FileSystem.readAsStringAsync not working for MP4s

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): Android

Trying to use FileSystem.readAsStringAsync to read a video file. The file exists, but the read result is coming back empty. Any ideas?

if (Platform.OS !== "web"){
		  	const info = await FileSystem.getInfoAsync(pickerResult.uri);
		  	console.log('info:', info);
		  	const base64 = await FileSystem.readAsStringAsync(pickerResult.uri);
		  	console.log('base64:', base64);

info: Object {
“exists”: true,
“isDirectory”: false,
“modificationTime”: 1585844428,
“size”: 3114374,
“uri”: “file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540qappanon%252FAOG/ImagePicker/7cb16071-2ef0-47e1-8d20-7f4369551ebc.mp4”,


1 Like

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