coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

Picking image from onedrive fails #29

Closed Jaymassena closed 10 years ago

Jaymassena commented 10 years ago

I have the onedrive android app installed and onedrive shows as a source on the new kitkat document picker. It shows in the bottom section along with gallery and photos. When I select a jpeg image, image chooser fails with "file not found" as the reason.

Here is the log

04-07 14:51:06.766: W/System.err(6096): java.io.FileNotFoundException: /Dos Figuras.jpeg: open failed: ENOENT (No such file or directory)
04-07 14:51:06.766: W/System.err(6096): at libcore.io.IoBridge.open(IoBridge.java:409)
04-07 14:51:06.766: W/System.err(6096): at java.io.FileInputStream.(FileInputStream.java:78)
04-07 14:51:06.766: W/System.err(6096): at com.kbeanie.imagechooser.threads.MediaProcessorThread.copyFileToDir(MediaProcessorThread.java:209)
04-07 14:51:06.766: W/System.err(6096): at com.kbeanie.imagechooser.threads.MediaProcessorThread.process(MediaProcessorThread.java:95)
04-07 14:51:06.766: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.process(ImageProcessorThread.java:97)
04-07 14:51:06.766: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.processImage(ImageProcessorThread.java:91)
04-07 14:51:06.766: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.run(ImageProcessorThread.java:55)
04-07 14:51:06.766: W/System.err(6096): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
04-07 14:51:06.766: W/System.err(6096): at libcore.io.Posix.open(Native Method)
04-07 14:51:06.766: W/System.err(6096): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
04-07 14:51:06.766: W/System.err(6096): at libcore.io.IoBridge.open(IoBridge.java:393)
04-07 14:51:06.776: W/System.err(6096): ... 6 more
04-07 14:51:06.776: W/System.err(6096): java.lang.Exception: File not found
04-07 14:51:06.776: W/System.err(6096): at com.kbeanie.imagechooser.threads.MediaProcessorThread.copyFileToDir(MediaProcessorThread.java:222)
04-07 14:51:06.776: W/System.err(6096): at com.kbeanie.imagechooser.threads.MediaProcessorThread.process(MediaProcessorThread.java:95)
04-07 14:51:06.776: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.process(ImageProcessorThread.java:97)
04-07 14:51:06.776: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.processImage(ImageProcessorThread.java:91)
04-07 14:51:06.776: W/System.err(6096): at com.kbeanie.imagechooser.threads.ImageProcessorThread.run(ImageProcessorThread.java:55)
coomar2841 commented 10 years ago

Thanks, will look into this problem.

coomar2841 commented 10 years ago

Added a fix for OneDrive. Changes available in the dev branch. Would merge with master after some more testing. Could you please check if it works fine?

Jaymassena commented 10 years ago

Great! I have just been using the .jar to add this to my app. Any chance you could put a private drop up on dropbox and pass along the link?

coomar2841 commented 10 years ago

Here's a DB link to the jar file

https://dl.dropboxusercontent.com/u/6696191/image-chooser-library/v1.3.0/image-chooser-library-test.jar

Jaymassena commented 10 years ago

I was able to test this and images from onedrive now work. Thanks!

coomar2841 commented 10 years ago

Closing this issue.