Source Code

convert-image-to-bytearray-2
convert-image-to-bytearray-2import java.awt.image.BufferedImage;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.IOException;import javax.imageio.ImageIO;import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;  public class SimpleConv…[ More ]
convert-image-to-byte
convert-image-to-byteimport java.awt.Graphics2D;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException; impor…[ More ]
pgmtojpeg
pgm to jpeg codeimport java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; public clas…[ More ]
Make your own Java Download Manager
Make your own Java Download Manager Source Code
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
imp…[ More ]
Download attachments using Java Mail
 Download attachments using Java Mail    List attachments =newArrayList();for(Message message : temp){Multipart multipart =(Multipart) message.getContent();// System.out.println(multipart.getCount());for(int i =0; i < multipart.getCount(); i++){BodyPart bodyPart = multipart.getBodyPart(i);if(!Part.A…[ More ]
Calculator In Java
import java.applet.*;import java.awt.*;import java.awt.event.*;import java.awt.event.KeyEvent;public class Calculator extends Frame implements ActionListener{  Button b[]=new Button[16];   TextField tf;   Panel pi1;   Panel pi2;  String s="";   Font f12 = new Font("Times New Roman",Font.BO…[ More ]