-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hash() function gives "no such file" error while readFile() succeeds with same uri. #120
Comments
Might be that there is missing a normalizePath call which would resolve the URI. react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFS.java Line 780 in 1512092
|
can fix the problem, release a new version? |
@onlyling of course. Did you test if it resolves your issue? |
solved. modified the local node_module file and repackaged the application for testing. but, mv has a similar problem? static void mv(String path, String dest, Callback callback) {}
|
technically yes. |
The path starting with Need you to fix it, or explain that the path cannot start with |
A path starting with content:// often belongs to a media store and thus will make problems regardless since we would have to open these via a contentProvidor or copy the first into the internal storage. |
Here's the code:
readFile() return the base64 encoding of the file correctly, while the hash() function using same identical uri (provided by document picker) gives following error:
[Error: No such file 'content://com.google.android.apps.docs.storage/document/acc%3D1%3Bdoc%3Dencoded%3DTGhH_d6AtnqwiD39DnZwrQ0kCTtqjiY6UYhHLISr6DLSSsqJONKGKvfjlSdVqkT2']
Any idea of why this happens?
The text was updated successfully, but these errors were encountered: