Thursday, 28 February 2013

Image Conversion From PNG to JPG Using Java.ImageIO

Leave a Comment
import java.io.*; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; public class GIFToJPG { public static void main(String a[]){ try{ System.out.println("Enter image name\n"); BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); String imageName=bf.readLine(); File input = new File(imageName); BufferedImage image = ImageIO.read(input); System.out.println("Enter the output image name(.jpg):\n"); String imageName1=bf.readLine(); File output = new File(imageName1); ImageIO.write(image,...
Read More...

Tuesday, 26 February 2013

Pagination In Jsp Using JavaScript

Leave a Comment
Overview You can use this with any programming language. You can use this with .jsp, .php etc. Here we have given one simple web application using Servlet and JSP. Pre-Requisites: Browser which supports JavaScript Pre-Requisites for running the below program: Browser which supports JavaScript jdk1.6.0_11 ( works with previous versions of JDK) Note: for previous versions of JDK. All the .java files should be compiled once again. Make sure that all the supporing files are in classpath....
Read More...