I am getting a response from the server which starts from %PDF-1.7
. I believe that it is a base64 string(correct if I am wrong). Now while decoding the data using kotlin I am getting an error.What I want to achieve is I want to parse the response and open it into a pdfviewer.Help is appreciated.Thank you.
Convert binary content of pdf file in android (kotlin)
955 views Asked by Chinmaay At
1
To all those who are still stuck in this.I have cracked this in the below way
Summary before I start
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2
and then in your response listener
Happy coding.