简体   繁体   中英

How can i cache large image data using HTML5

I am developing an ASP.NET WebAPI which is utilizing the features of HTML5. I need to cache image data for improving performance. The image data is returned in the JSON format from a web service which is hosted in IIS in separate machine. When I click on the thumbnail of an image in UI, it will call a webservice with a seriesID as input. Then the webservice will return imageID and pixel data stream. Then this pixel data stream is binding to a canvas. I need to cache the image which is shown in the canvas. The image is of around 70MB in size. So which feature of HTML5 can I use for caching this huge amount of image data?

I'd give the manifest a go: http://www.w3schools.com/html/html5_app_cache.asp

Worked for me with smaller image sizes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM