How to load any format of base64 data to webview in Android?

后端 未结 2 1457
一个人的身影
一个人的身影 2021-02-06 11:52

I am implementing an android application related to Webview. I am getting base64 data string from server that data format may be jpg or pdf file or doc file etc

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 12:16

    Just Try it:

    webView.loadData(urlString, "text/html; charset=utf-8", "base64");
    

提交回复
热议问题