Skip to content

Instantly share code, notes, and snippets.

@x5gtrn
Created October 29, 2009 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x5gtrn/221195 to your computer and use it in GitHub Desktop.
Save x5gtrn/221195 to your computer and use it in GitHub Desktop.
imageMap.remove(strUserId);
if (!ImageIO.getUseCache()) {
ImageIO.setUseCache(true);
}
BufferedImage image = null;
try {
imageMap.put(strUserId, ImageIO.read(url));
} catch (IOException e) {
imageMap.put(strUserId, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment