{"action":"created","issue":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/179","labels_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/179/comments","events_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/179/events","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/179","id":11348007,"number":179,"title":"De/Encoding for File URI image load problem","user":{"login":"zoularry","id":3262423,"avatar_url":"https://avatars.githubusercontent.com/u/3262423?v=3","gravatar_id":"","url":"https://api.github.com/users/zoularry","html_url":"https://github.com/zoularry","followers_url":"https://api.github.com/users/zoularry/followers","following_url":"https://api.github.com/users/zoularry/following{/other_user}","gists_url":"https://api.github.com/users/zoularry/gists{/gist_id}","starred_url":"https://api.github.com/users/zoularry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoularry/subscriptions","organizations_url":"https://api.github.com/users/zoularry/orgs","repos_url":"https://api.github.com/users/zoularry/repos","events_url":"https://api.github.com/users/zoularry/events{/privacy}","received_events_url":"https://api.github.com/users/zoularry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2013-02-25T06:04:01Z","updated_at":"2015-03-10T15:22:16Z","closed_at":"2013-03-12T22:26:09Z","body":"For an image file: /storage/sdcard0/groupurchase/cache/http%3A%2F%2Fd2.lashouimg.com%2Fzt_mobile_220%2F201211%2F29%2F135417696321262100.jpg\r\n\r\nimageLoader tries to load an decoded file path which is incorrect: \r\n```\r\n02-25 13:20:51.085: E/ImageLoader(27155): java.io.FileNotFoundException: /storage/sdcard0/groupurchase/cache/http:/d2.lashouimg.com/zt_mobile_220/201211/29/135417696321262100.jpg: open failed: ENOENT (No such file or directory)\r\n```\r\nIt should keep the encoded string as it is, and read by stream.\r\n\r\nThe problem is caused by imageloader code below:\r\n``` java\r\nfinal class ImageLoadingInfo {\r\n...\r\n\tpublic ImageLoadingInfo(String uri, ImageView imageView, ImageSize targetSize, DisplayImageOptions options, ImageLoadingListener listener, ReentrantLock loadFromUriLock) {\r\n\t\tthis.uri = Uri.encode(uri, \"@#&=*+-_.,:!?()/~'%\");\r\n\t\t...\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/comments/78076598","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/179#issuecomment-78076598","issue_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/179","id":78076598,"user":{"login":"nostra13","id":1223348,"avatar_url":"https://avatars.githubusercontent.com/u/1223348?v=3","gravatar_id":"","url":"https://api.github.com/users/nostra13","html_url":"https://github.com/nostra13","followers_url":"https://api.github.com/users/nostra13/followers","following_url":"https://api.github.com/users/nostra13/following{/other_user}","gists_url":"https://api.github.com/users/nostra13/gists{/gist_id}","starred_url":"https://api.github.com/users/nostra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nostra13/subscriptions","organizations_url":"https://api.github.com/users/nostra13/orgs","repos_url":"https://api.github.com/users/nostra13/repos","events_url":"https://api.github.com/users/nostra13/events{/privacy}","received_events_url":"https://api.github.com/users/nostra13/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:22:16Z","updated_at":"2015-03-10T15:22:16Z","body":"You should pass \"/sdcard/Android/data/my.package/files/Pictures/directory containing whitespaces/some_image.jpg\""}}