fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Can't open file if path contains "#"

Open ArchangelXu opened this issue 11 years ago • 6 comments

failed to load local file. file uri: file:///storage/emulated/0/Android/data/com.org.app/org#app/a83ee0da519d19d2db58ee966e6535a5/image/f0111720-47b6-11e5-87d8-a3b5efcd5fab

log: 08-21 15:23:02.425 16424-16486/com.org.appE/JHEAD﹕ can't open '/storage/emulated/0/Android/data/com.org.app/org'

ArchangelXu avatar Aug 21 '15 07:08 ArchangelXu

try replace '#' to '%23'

desmond1121 avatar Aug 21 '15 08:08 desmond1121

can't open '/storage/emulated/0/Android/data/com.org.app/org#app/a83ee0da519d19d2db58ee966e6535a5/image/f0111720-47b6-11e5-87d8-a3b5efcd5fab' I checked, that file really exists and can be opened in gallery.

ArchangelXu avatar Aug 21 '15 09:08 ArchangelXu

I was thinking the same as @desmond1121 . I wonder whether this is a misspelled path issue, or something else, such as permission issue.

plamenko avatar Aug 21 '15 18:08 plamenko

Just for a test, can you try to open a plain old Java FileInputStream with that path?

plamenko avatar Aug 21 '15 18:08 plamenko

java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.org.app/org#app/5cf124023bb26e021a91c2654363737c/image/9f0f5950-47c9-11e5-9f76-e51d328d690d: open failed: ENOENT (No such file or directory) the file is gone when I check it in that folder!so weird...so I decide to use an alternate path, the remote one...since Fresco has cache itself. Anyway, thanks~

ArchangelXu avatar Aug 22 '15 02:08 ArchangelXu

Alright, this doesn't seem to be related to Fresco, hence closing it.

plamenko avatar Aug 22 '15 19:08 plamenko