Image Caching Solutions

Happy Holidays! I know that the brain of people is disabled right now, but can you give me solutions or recommendations for caching images in java or j2me. I am trying to download images from a server (input stream) and I want to be able to store them, so I do not need to get them from the server all the time if they need to be displayed again. Thank.

+3
source share
3 answers

The approach you want probably depends on the number of images, as well as their typical file size. For example, if you use only a small number of images or small images, the example provided by trashgod makes a lot of sense.

, . , . , -.

+2

- collection, , , , , , getImage() cache List<ImageIcon>. A Map<String, ImageIcon> .

+1

J2ME - ( , Image.createImage()) - , , JSR75, RMS.

0
source

Source: https://habr.com/ru/post/1782338/


All Articles