Could anyone who has the following error or knows how to fix the error can help?
When i using this code blog :
decodedString = Base64.decode(data.value, Base64.DEFAULT) mBinding.pdfView.fromBytes(decodedString).load() , i get this error E/PDFView: load pdf error java.io.IOException: cannot create document: File not in PDF format or corrupted.
Hi,
Could anyone who has the following error or knows how to fix the error can help?
When i using this code blog :
decodedString = Base64.decode(data.value, Base64.DEFAULT) mBinding.pdfView.fromBytes(decodedString).load()
, i get this errorE/PDFView: load pdf error java.io.IOException: cannot create document: File not in PDF format or corrupted.