Popular Posts
javax.net.ssl.SSLHandshakeException: Connection closed by peer in Android 5.0 Lollipop Recently, there is a error occurs when access website via ssl connection like below although it worked fine several days ago. // Enable SSL... GridView mischief There was a requirement for append a row after every data row in GridView. In begining I tried to get current row and want to append a new r... Add a event to Outlook calendar dymatically protected void btnAddEventToOutlook_Click(object sender, EventArgs e) {     Response.Clear();     Response.AddHeader("content-dispositi...
Blog Archive
Stats
Create barcode
import java.io.File;
import java.io.FileNotFoundException;

import net.sourceforge.barbecue.Barcode;
import net.sourceforge.barbecue.BarcodeException;
import net.sourceforge.barbecue.BarcodeFactory;
import net.sourceforge.barbecue.BarcodeImageHandler;
import net.sourceforge.barbecue.output.OutputException;

public class Program {

    /**
     * @param args
     * @throws FileNotFoundException
     * @throws BarcodeException
     * @throws OutputException
     */
    public static void main(String[] args) throws FileNotFoundException, BarcodeException, OutputException {
        // TODO Auto-generated method stub

        Barcode code = BarcodeFactory.create3of9("123456789", true);
        BarcodeImageHandler.savePNG(code, new File("barcode.png"));

    }

}
Library : http://barbecue.sourceforge.net/