Comments (7)
The issue is still there on some mobile phones. Only for downloaded images.
- v1.7.1
- Nokia 2 (Android 9)
Stack trace
E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Download/image-1.jpg (No such file or directory)
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65560, result=-1, data=Intent { dat=file:///storage/emulated/0/Download/image-1.jpg (has extras) }} to activity
Code
ImagePicker.with(this)
.compress(1024)
.start { resultCode, data ->
if (resultCode == Activity.RESULT_OK) {
try {
val file = ImagePicker.getFile(data)
if (file != null) {
val bitmap = BitmapFactory.decodeFile(file.absolutePath)
//Do my work
}
} catch (e: Exception) {
//Show Error
}
} else {
//Show Error
}
}
from imagepicker.
@vkfan Which version you are currently using?
from imagepicker.
@vkfan Which version you are currently using?
support 1.3, the issue is when I try to choose images from downloads folder.
from imagepicker.
@vkfan Can you please try out the latest version.
from imagepicker.
The issue has been resolved on v1.4
from imagepicker.
I am getting the same issue as well on some devices. Only causes issues when picking images from the "Download" folder.
-Samsung A10
-1.7.1
ImagePicker.with(this)
.start { resultCode, data ->
if (resultCode == Activity.RESULT_OK) {
//continued work
} else if (resultCode == ImagePicker.RESULT_ERROR) {
//error
}
}
from imagepicker.
I am also getting the error. Is it solved? I am using version 2.1
from imagepicker.
Related Issues (20)
- Image bytes are compressed a lot
- ImagePicker "import class " is not an option HOT 4
- Can we add support to be able to pick other file types?
- https://jitpack.io/com/github/dhaval2404/imagepicker-support/1.7.1/imagepicker-support-1.7.1.pom'. Received status code 521 from server: HOT 4
- Unable to start activity ComponentInfo{halal.app.dating/com.github.dhaval2404.imagepicker.ImagePickerActivity}:
- Android 13 permissions compatibility HOT 1
- how to delete an image clicked by user which gets saved in scope storage through this dependency. Please help HOT 1
- In Android 13 ImagePicker not working. HOT 7
- How to not move the image during crop
- Image picket
- Wrong extension detection in FileUtil.getImageExtension(). OneDrive can't be used. HOT 2
- Camera not found error for OnePlus 9R device.
- App crash in Arabic Languages HOT 1
- Help me, liblary cant work on android 13 HOT 1
- Edit Photo Text
- Crash - width and height must be > 0
- Not Works On Android 13 And Api 34 HOT 4
- How to get crop position and original image?
- Crash when selecting camera HOT 4
- Access galerie from camera interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagepicker.