<p dir="auto">Image picker version: 0.4.10</p>
<p dir="auto">When image without extension is selected this exception is thrown:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/AndroidRuntime( 8438): FATAL EXCEPTION: main
E/AndroidRuntime( 8438): Process: com.mepigu.mepigu, PID: 8438
E/AndroidRuntime( 8438): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/4461 flg=0x1 }} to activity {com.mepigu.mepigu/com.mepigu.mepigu.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5035)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5078)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.-wrap20(Unknown Source:0)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
E/AndroidRuntime( 8438): 	at android.os.Handler.dispatchMessage(Handler.java:108)
E/AndroidRuntime( 8438): 	at android.os.Looper.loop(Looper.java:166)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.main(ActivityThread.java:7523)
E/AndroidRuntime( 8438): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8438): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/AndroidRuntime( 8438): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
E/AndroidRuntime( 8438): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461
E/AndroidRuntime( 8438): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
E/AndroidRuntime( 8438): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
E/AndroidRuntime( 8438): 	at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:766)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:716)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:667)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime( 8438): 	at android.app.Activity.dispatchActivityResult(Activity.java:7701)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5031)
E/AndroidRuntime( 8438): 	... 9 more
I/Process ( 8438): Sending signal. PID: 8438 SIG: 9
Lost connection to device."><pre class="notranslate"><code class="notranslate">E/AndroidRuntime( 8438): FATAL EXCEPTION: main
E/AndroidRuntime( 8438): Process: com.mepigu.mepigu, PID: 8438
E/AndroidRuntime( 8438): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/4461 flg=0x1 }} to activity {com.mepigu.mepigu/com.mepigu.mepigu.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5035)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5078)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.-wrap20(Unknown Source:0)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
E/AndroidRuntime( 8438): 	at android.os.Handler.dispatchMessage(Handler.java:108)
E/AndroidRuntime( 8438): 	at android.os.Looper.loop(Looper.java:166)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.main(ActivityThread.java:7523)
E/AndroidRuntime( 8438): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8438): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/AndroidRuntime( 8438): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
E/AndroidRuntime( 8438): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461
E/AndroidRuntime( 8438): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
E/AndroidRuntime( 8438): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
E/AndroidRuntime( 8438): 	at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:766)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:716)
E/AndroidRuntime( 8438): 	at android.content.ContentResolver.query(ContentResolver.java:667)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395)
E/AndroidRuntime( 8438): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime( 8438): 	at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime( 8438): 	at android.app.Activity.dispatchActivityResult(Activity.java:7701)
E/AndroidRuntime( 8438): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5031)
E/AndroidRuntime( 8438): 	... 9 more
I/Process ( 8438): Sending signal. PID: 8438 SIG: 9
Lost connection to device.
</code></pre></div>
<p dir="auto">Tested on a real Pixel XL Android 9 (API 28)<br>
image_picker version: 0.4.10</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15"><pre class="notranslate"><code class="notranslate">java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D/AndroidRuntime(13697): Shutting down VM
E/AndroidRuntime(13697): FATAL EXCEPTION: main
E/AndroidRuntime(13697): Process: com.example.test, PID: 13697
E/AndroidRuntime(13697): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/15 flg=0x1 }} to activity {com.example.test/com.example.test.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15
E/AndroidRuntime(13697): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4360)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402)
E/AndroidRuntime(13697): 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
E/AndroidRuntime(13697): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(13697): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(13697): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
E/AndroidRuntime(13697): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(13697): 	at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime(13697): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13697): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(13697): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime(13697): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15
E/AndroidRuntime(13697): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
E/AndroidRuntime(13697): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
E/AndroidRuntime(13697): 	at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:802)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:752)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:710)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(13697): 	at android.app.Activity.dispatchActivityResult(Activity.java:7454)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)
E/AndroidRuntime(13697): 	... 11 more
I/Process (13697): Sending signal. PID: 13697 SIG: 9
Application finished."><pre class="notranslate"><code class="notranslate">D/AndroidRuntime(13697): Shutting down VM
E/AndroidRuntime(13697): FATAL EXCEPTION: main
E/AndroidRuntime(13697): Process: com.example.test, PID: 13697
E/AndroidRuntime(13697): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/15 flg=0x1 }} to activity {com.example.test/com.example.test.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15
E/AndroidRuntime(13697): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4360)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402)
E/AndroidRuntime(13697): 	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
E/AndroidRuntime(13697): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(13697): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(13697): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
E/AndroidRuntime(13697): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(13697): 	at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime(13697): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13697): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(13697): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime(13697): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15
E/AndroidRuntime(13697): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
E/AndroidRuntime(13697): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
E/AndroidRuntime(13697): 	at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:802)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:752)
E/AndroidRuntime(13697): 	at android.content.ContentResolver.query(ContentResolver.java:710)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395)
E/AndroidRuntime(13697): 	at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(13697): 	at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(13697): 	at android.app.Activity.dispatchActivityResult(Activity.java:7454)
E/AndroidRuntime(13697): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)
E/AndroidRuntime(13697): 	... 11 more
I/Process (13697): Sending signal. PID: 13697 SIG: 9
Application finished.
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale de-CH)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[✓] Connected devices (3 available)

• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale de-CH)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[✓] Connected devices (3 available)

• No issues found!
</code></pre></div>