everyone! I have compressed lots of pictures to a "pictures.zip" file. I want to load one of these pictures to a WebView like this:
WebView wv = (WebView)findViewById(R.id.WebView01);
wv.loadDataWithBaseURL(null,"<img src=\"abc.jpg\">", "text/html", "UTF-8", null);
Here,"abc.jpg" is a picture that has been compressed to pictures.zip file.
I just want to decompress the picture from the zip file and get the picture's byte stream, and then load the image to the WebView from the byte stream.
I don't want to decompress the picture from the zip file and then save it to sdcard and then load it.
Moreover, I don't want to encode the pitcture's byte to a base64 and then load the image to the WebView either, because these two ways will be very slow.