How could I show a PDF in a WebView if the PDF is in a BitMap?
What I have is this:
- I get a String that arrives in a WebService, it arrives in a format of this type: yMDcgMCBSIDIwOSAwIFIgMjExIDAgUiAyMTMgMCBSI
This is a very long string is just an example, then I pass it to a BitMap to be able to pass it in an Intent to another activity.
byte[] arrDocumento = Base64.decode(catalogoSeleccionado.getDocto(),
Base64.DEFAULT);
Bitmap bm = BitmapFactory.decodeByteArray(arrDocumento,
0, arrDocumento.length);
After passing it to the activity I want to show it in a WebView, it is a PDF document, but I still can not make it visualize and I have only found examples of how to show them if the pdf is in a URL.