Press enter to see results or esc to cancel.

How to Create PDF dynamically with Images using JAVA

In this video tutorial I have shown how you can generate PDF using JAVA. This project need the jar itextpdf-5.1.0 jar to be added in Class path Project Structure Code to create simple PDF File Create_PDF.java package com.chillyfacts.com; import java.io.File; import java.io.FileOutputStream; import com.itextpdf.text.*; import com.itextpdf.text.pdf.PdfWriter; public class Create_PDF { public static void main(String[] args) …

Continue reading

Convert Java Object into JSON and JSON into Java Object | Jackson API

In this video I have shown how to parse JSON Object to a JAVA Object using JACKSON API. Project Structure, In this project we use 2 jars, 1. com.fasterxml.jackson.core.jar 2. com.fasterxml.jackson.databind.jar Add these jars to build path of Project For testing we have registered with website http://api.ipinfodb.com. After registering we will get the API Key.This …

Continue reading

Java-Send JSON Request and Read JSON Response

In this video I have shown how to Send a JSON Post request using JAVA and Parse the Response using JAVA. For testing we are using the Open web service from this website https://gurujsonrpc.appspot.com. In this project we are using 2 jars, 1. java-json.jar 2. org.apache.commons.io.jar Post_JSON.java package com.chillyfacts.com; import java.io.BufferedInputStream; import java.io.InputStream; import java.io.OutputStream; …

Continue reading

Generate Barcodes Dynamically Using JAVA

In this video I have shown how to create Barcodes in Image and PDF dynamically using JAVA. Project Structure In this project 3 jars are used, 1. barcode4j.jar 2. itextpdf-5.1.0.jar 3. Mysql connector jar Barcode_Image.java package BARCODE; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import org.krysalis.barcode4j.impl.code128.Code128Bean; import org.krysalis.barcode4j.output.bitmap.BitmapCanvasProvider; public class Barcode_Image { public static void main(String[] …

Continue reading

Java JSP MySql CRUD Project

In this video tutorial series I have shown how to create Create Read Update Delete (CRUD) in Java Server Pages(JSP). Project Structure in Eclipse DB_Connection.java package common; import java.sql.Connection; import java.sql.DriverManager; public class DB_Connection { public static void main(String[] args) { DB_Connection obj_DB_Connection=new DB_Connection(); System.out.println(obj_DB_Connection.get_connection()); } public Connection get_connection(){ Connection connection=null; try { Class.forName(“com.mysql.jdbc.Driver”); connection …

Continue reading