have u used webview.loadData() from a Bitmap instance and displayed the 
bitmap image in webview?


On Wednesday, September 23, 2009 10:23:03 AM UTC+5:30, rukiman wrote:
>
> I have an instance of Bitmap that I want to load into the WebView. How 
> can I do this? I do not want to call webview.loadUrl() as the image is 
> already loaded from the file into memory . I am trying to optimize my 
> code. 
>
> I can see webview.loadData() however, seems like I have to encode 
> Bitmap into UTF-8?? I have two questions: 
>
> 1) How can I use webview.loadData() from a Bitmap instance? 
>
> 2) Is there a way I can tell WebView to load the instance of Bitmap 
> without having to encode the bitmap at all? For optimization purposes? 
>
> Thanks for your help. 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to