This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
hi all, I have written a JSP/Servlet application in windows environment. This application has to show .bmp images. I wanted to know -is it possible for me to run this application on Linux platform and will .bmp image open properly in JSP/Servlet application running on Linux platform. I am new to LInux,So please be generous to help me . Thanks in advance.
BMP is not one of the image formats supported by all browsers; use PNG instead. If you can't (or don't want to) convert the images outside of the web app, or make copies of them in PNG, have a look at the javax.imageio.ImageIO class. Its read and write methods make reading an image file into memory, and then saving it to a stream (e.g. a servlet's OutputStream), very easy.