¡@

Home 

2014/10/16 ¤W¤È 08:21:08

android Programming Glossary: pagedata

How to display image with WebView loaddata?

http://stackoverflow.com/questions/5267124/how-to-display-image-with-webview-loaddata

I've got the following String urlStr http example.com my.jpg String mimeType image jpeg String encoding null String pageData This is data read in from an HttpURLConnection webview.loadDataWithBaseURL urlStr pageData mimeType encoding urlStr but.. String encoding null String pageData This is data read in from an HttpURLConnection webview.loadDataWithBaseURL urlStr pageData mimeType encoding urlStr but when I run this all I see is a blue question mark instead of my image. What is the proper way.. the proper way to handle displaying an image in a WebView with loadData Edit Is there a way to do this without passing pageData as img src http example.com my.jpg It seems silly that loadData takes a mime type if it can only handle text html . Especially..