I am writing an web application where I need to send an image from servlet to client. Image is generated dynamically and is quite big(+-2MB). It might be jpeg, png, or gif.<
Are you sure that the
ImageIO
takes so long - maybe there is another problem, e.g.