Help with reading an image/video file that is in a tmp path #2143
Unanswered
andresmejia3
asked this question in
Q&A
Replies: 1 comment
-
Hello, Did you find a solution for this issue ? Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, the way I understand it is that the image picker shows you thumbnails of the images/videos, when you select one, it copies the data from the actual image's URI on iOS to the
tmp
folder. Then it gives you the URI for the tmp folder.I get a path similar to this one
/Users/user/Library/Developer/CoreSimulator/Devices/0BA3C76A-9293-4F27-8A1A-4707C3A38D42/data/Containers/Data/Application/0135C34C-267D-4ABC-93BF-248A493AE2D2/tmp/74C108CF-575A-46C9-A37C-7234573F2AEB.jpg
However, whenever I try to read the image at that path using
react-native-fetch-blob-util
'sreadStream
, I get an error sayingError: No such file
. I'm assuming that's because the tmp file was already removed. Sometimes it successfully reads it, but 80% of the time it doesn't.Any help would be appreciated, thank you!
Beta Was this translation helpful? Give feedback.
All reactions