Commit c2dcfb0
authored
fix: fs.hash Error: No such file 'file:///data/user/0/PATH_TO_READ.jpg'
for example
```js
import { launchImageLibrary } from "react-native-image-picker";
import ReactNativeBlobUtil from "react-native-blob-util";
launchImageLibrary({
mediaType: "mixed",
quality: 0.6,
})
.then((d) => d.assets)
.then((files) => {
console.log("文件路径:", files[0].uri);
return ReactNativeBlobUtil.fs.hash(files[0].uri, "sha256");
})
.then((fileHash) => {
console.log("hash sha256");
console.log(fileHash);
})
.catch((e) => {
console.log(e);
console.log("??");
});
```1 parent 1512092 commit c2dcfb0
File tree
1 file changed
+2
-0
lines changed- android/src/main/java/com/ReactNativeBlobUtil
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
| 794 | + | |
793 | 795 | | |
794 | 796 | | |
795 | 797 | | |
| |||
0 commit comments