Hi all,
When using ContentChooser to select an image on phone gallery, Erel said on post : https://www.b4x.com/android/forum/threads/contentchooser-crash.60625/#post-382287
You don't need to copy the file. You can load it from its original location.
Use LoadBitmapSample instead of LoadBitmap.
So i use :
Picture = LoadBitmapSample(Dir,FileName,630dip,630dip)
and the result is an image half displayed like in attached file.
Dir value = ContentDir
Filename value = content://com.android.externalstorage.documents/document/3039-6331%3ADCIM%2FCamera%2F20160907_215250.jpg
If i use the GetPathFromContentResult sub ( https://www.b4x.com/android/forum/t...dia-files-returned-from-contentchooser.39313/ )
to save the file, the file is not found.
Is anyone an idea how to solve this ?
Thanks the team for any help.
Thierry
When using ContentChooser to select an image on phone gallery, Erel said on post : https://www.b4x.com/android/forum/threads/contentchooser-crash.60625/#post-382287
You don't need to copy the file. You can load it from its original location.
Use LoadBitmapSample instead of LoadBitmap.
So i use :
Picture = LoadBitmapSample(Dir,FileName,630dip,630dip)
and the result is an image half displayed like in attached file.
Dir value = ContentDir
Filename value = content://com.android.externalstorage.documents/document/3039-6331%3ADCIM%2FCamera%2F20160907_215250.jpg
If i use the GetPathFromContentResult sub ( https://www.b4x.com/android/forum/t...dia-files-returned-from-contentchooser.39313/ )
to save the file, the file is not found.
Is anyone an idea how to solve this ?
Thanks the team for any help.
Thierry