i want to share my base64 mp3 i decded my base64 and store it in local storage but it appears as an empty message -Android
aneebiqbal opened this issue Β· comments
Expected behavior:
it must display my file that has been saved in cache directory but it appears as empty message. i used buffer to decode my base64 π
const tempFilePath = ${RNFetchBlob.fs.dirs.CacheDir}/${Date.now()}.mp3
;
const binaryData = Buffer.from(urlStr, "base64");
const base64String = binaryData.toString("base64");
await RNFetchBlob.fs.writeFile(tempFilePath, base64String, "base64");
const shareOptions = {
url: file://${tempFilePath}
,
};
Actual behavior
it display empty message instead of my file
Environment
- React Native version:"^0.64.3"
- React Native platform + platform version: iOS 9.0, Android 5.0, etc
- Typescript version (if using typescript): 3.8+ required, what version is in your environment?
react-native-share
Version: ^9.4.1
Link to repo (highly encouraged)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open