{"action":"opened","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/1280","repository_url":"https://api.github.com/repos/bumptech/glide","labels_url":"https://api.github.com/repos/bumptech/glide/issues/1280/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/1280/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/1280/events","html_url":"https://github.com/bumptech/glide/issues/1280","id":161658890,"number":1280,"title":"FileNotFoundException when loading from path","user":{"login":"TigranSarkisian","id":6973612,"avatar_url":"https://avatars.githubusercontent.com/u/6973612?v=3","gravatar_id":"","url":"https://api.github.com/users/TigranSarkisian","html_url":"https://github.com/TigranSarkisian","followers_url":"https://api.github.com/users/TigranSarkisian/followers","following_url":"https://api.github.com/users/TigranSarkisian/following{/other_user}","gists_url":"https://api.github.com/users/TigranSarkisian/gists{/gist_id}","starred_url":"https://api.github.com/users/TigranSarkisian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TigranSarkisian/subscriptions","organizations_url":"https://api.github.com/users/TigranSarkisian/orgs","repos_url":"https://api.github.com/users/TigranSarkisian/repos","events_url":"https://api.github.com/users/TigranSarkisian/events{/privacy}","received_events_url":"https://api.github.com/users/TigranSarkisian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T11:37:05Z","updated_at":"2016-06-22T11:37:05Z","closed_at":null,"body":"Here https://github.com/bumptech/glide/issues/867  TWiStErRob writes\r\n\r\n>  Note that you don't have to worry about all this if you pass the original absolute path String directly to load, Glide will load it correctly. The first three loads I quoted above are equivalent.\r\n\r\nbut i am trying to load file:///storage/emulated/0/Android/data/com.gz.template/Util/20160606_154656.jpeg\r\n\r\nand it says FileNotFoundException\r\n\r\ncode\r\n\r\n    ```\r\nGlide.with(this)\r\n                .load(url)\r\n                .asBitmap()\r\n                .placeholder(R.color.custom_orange)\r\n                .error(R.color.custom_orange)\r\n                .diskCacheStrategy(DiskCacheStrategy.ALL)\r\n                .listener(new RequestListener<String, Bitmap>() {\r\n                    @Override\r\n                    public boolean onException(Exception e, String model, Target<Bitmap> target, boolean isFirstResource) {\r\n                        e.printStackTrace();\r\n                        return false;\r\n                    }\r\n\r\n                    @Override\r\n                    public boolean onResourceReady(Bitmap resource, String model, Target<Bitmap> target, boolean isFromMemoryCache, boolean isFirstResource) {\r\n                        return false;\r\n                    }\r\n                })\r\n                .into(mIvGlide);\r\n```\r\n\r\ni tried also \r\ncreate URI and File from this path - FileNotFoundException also"}}
{"actor":{"display_login":"TigranSarkisian"}}