Could somebody help me and create a small library that opens an URI (e.g. Content://xxxx) and returns the content as Bitmap? The Content URI Provides the Bitmap directly, not as table data.
The Lib contains just something like this: Function getBmp(Parameter: URI) Return BMP
The Lib contains just something like this: Function getBmp(Parameter: URI) Return BMP
B4X:
InputStream istr = contentResolver.openInputStream(uri);
BufferedInputStream buf_istr = new BufferedInputStream(istr, 8192);
Bitmap bm = BitmapFactory.decodeStream(buf_istr);