I have noticed that loading memory image from serlvet are much slower than loading image from files. Theoretically, I think loading memory image must be faster because a) I call the
servlet directly. b) I load images that have been cached in memory as byte arrays. On the other hand, loading images from a file as
http://localhost:8080/myImage.gif requires to a) redirect my url to servlet. b) search and load myImage.gif file into memory. c) write byte array to response object.
Would you provide some suggestions, comment?
Thanks