SlideShare a Scribd company logo
1 of 22
A
                  Industrial Training Project Report
                                  on

       “IMAGE CONVERTER SOFTWARE”



                                       Submitted by :-
                                       NAVIN KUMAR
                                       ROLL : 09EAXEC075
Organization :                         Class : B. Tech (ECE) - 4rd Year.
                                       College : Apex Institute of Engineering
                                                   & Technology, Jaipur.
HCL Infosystems Ltd, Jaipur.                                       Page 1
CONTENTS

 Introduction
 System and Software Required
 Working
 Advantages
 Applications
INTRODUCTION
 Image Converter Software is made in Java Environment which can run on
   any operating system.



 At a time, it can convert large amount of BMP/PNG/GIF images to
   JPG/JPEG image format with same dimension and resolution.



 When bmp images are converted to JPG images, its size extensively
   reduced but dimension and resolution remains unchanged.



 You can convert image to Byte Array & store in Database and whenever
   require, it can be retrieved.
SYSTEM AND SOFTWARE REQUIRED
      Operating System :
      • Windows XP.
      • Windows 7.

      Java Platform :
      • Version 6


      Database :
      • Microsoft SQL Server 2005 or MySQL.


      IDE :
      • Eclipse IDE for Java
Creating Table In Database (MS SQL Server)

To Create a Table :
create table s_pht(
pht_kid int primary key not null identity(10,1),
pht_name varchar(50) not null,                         pht_kid pht_name pht_file
pht_file image not null)                           1    10
                                                   2     11
                                                   3     12
Table Name : s_pht
                                                   4     13
3 Columns : pht_kid, pht_name & pht_file


To See Content of Table :
select *from s_pht
JDBC Connection
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class Abc {
private Statement getstatement(){
String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=apex;";
try {                                                                               Load Driver
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection con = DriverManager.getConnection(connectionUrl,"sa",“pass");
return con.createStatement();
}
catch(Exception e){ e.printStackTrace(); }                  UserID             Password
return null;
}
public static void main(String args[]){
Abc mncls = new Abc();
try {
Statement stmt = mncls.getstatement();
String sql = "insert into btech(sno,name,percentage,semester) " +" values (4,'Ravish',84.01,5)";
stmt.execute(sql);
sql = "select * from btech";                                                  Use ResultSet to iterate
ResultSet rs = stmt.executeQuery(sql);
 while (rs.next()) {                                                            and access the data.
System.out.println(rs.getString(1)); System.out.println(rs.getString(2)); } }
catch(Exception e){ e.printStackTrace(); }
}
}
Creating Java Program
 In order to write a java program in Eclipse IDE, steps may be as follows :

                          Create New Project


                          Create New Package

                                                        Import Package(s)



                        Create New Java Class(s)
                                                             Extend Class(s)
                             [ .java file(s) ]

    JDBC Driver                    R
                                   U                  Implement Interface(s)

  Database Connection
                                   N

                            [ .class file(s) ]
Selecting File/Directory For Old Path
 By clicking on Browse Button which is in front of Old Path, File/Directory
  chooser will open.

 Path of selected file/directory will automatically copy to the corresponding
  Text Field.
Selecting Directory For New Path
 By clicking on Browse Button which is in front of New Path, Directory
  chooser will open.

 Path of selected directory will automatically copy to the corresponding
  Text Field.
Conversion of Images to jpg/jpeg format
 When Button “Convert” is clicked/pressed, all images from source
  directory(Old Path) is converted to JPG/JPEG format and stored at
  destination directory(New Path).
Disruption of Obstruction During
          Image Conversion
 If old path and/or new path are not provided then an error message will be
  generated.
BMP Image Vs. JPEG Image

 A bitmap(BMP) file is one that is made up of pixels in a grid. It is a
  resolution dependent image, so it’s very difficult to increase the size of a
  bitmap graphic without a noticeable decrease in quality.


 Joint Photographic Experts Group (JPEG) or JPG files are a type of
  compressed bitmap file. This lossy compression technique reduces the size
  of an image by discarding details that are typically too insignificant for the
  human eye to detect.


 JPEG file format supports 16 million colours, it does a very good job of
  analysing what data is the most important to a particular image.
Save Image To Database
 When Button “Save To DataBase” is clicked/pressed then all JPG/JPEG
  images at “New Path” is save to the database in byte array format.
Images Stored In Database
   JPG images are stored in database in Byte Array format.

   Each images stored in database with unique id.


Unique ID                               Images in Byte Array Format
Disruption of Obstruction During
      Saving of Images in Database
 If New Path is not provided then an error message will be generated.
Continued…….
 If program is not successfully connected to database due to invalid user,
  password, driver, etc. then an error message will be generated.
Retrieve Images From Database
 When Button “Upload” is clicked/pressed, images from database which is
  stored in Byte Array format is uploaded at Old Path location in JPG
  format.
Disruption of Obstruction During
    Upload of Images From Database
 If Old Path is not provided then an error message will be generated.
Continued…….
 During upload, if program is not successfully connected to database due to
  invalid user, password, driver, etc. then an error message will be generated.
ADVANTAGES
Portable

Java based program which is platform independent.

Image takes less memory space.

Takes very less amount of time in conversion.

No effect on image quality and dimension.

Data stored in database is more secure.

Each images stored in database with unique ID.
CONCLUSION
 If you need to convert one or thousands of images of varying types, this is the
tool.

A BMP image having size 5MB is converted to JPG image then it’s size reduced
up to 700 KB but image quality is unaffected.


Instead of storing the image, you can store the byte array of that image in DB. You
can convert that image to byte array & store in DB. Byte Array (Base 64 string)
which is more secure.


It can be used in various places like Banks, UIDAI (Aadhaar), photography etc.
THANK YOU

More Related Content

What's hot

Spr ch-05-compilers
Spr ch-05-compilersSpr ch-05-compilers
Spr ch-05-compilers
Vasim Pathan
 
Menu bars and menus
Menu bars and menusMenu bars and menus
Menu bars and menus
myrajendra
 

What's hot (20)

Deepfake detection
Deepfake detectionDeepfake detection
Deepfake detection
 
Campus Automation
Campus AutomationCampus Automation
Campus Automation
 
Graphical Password Authentication using Cued click point technique with zero ...
Graphical Password Authentication using Cued click point technique with zero ...Graphical Password Authentication using Cued click point technique with zero ...
Graphical Password Authentication using Cued click point technique with zero ...
 
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحترافالبرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
 
Swing
SwingSwing
Swing
 
Student Management System
Student Management System Student Management System
Student Management System
 
Online reservation of bus
Online reservation of busOnline reservation of bus
Online reservation of bus
 
Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)
 
Spr ch-05-compilers
Spr ch-05-compilersSpr ch-05-compilers
Spr ch-05-compilers
 
Menu bars and menus
Menu bars and menusMenu bars and menus
Menu bars and menus
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
Interface in java
Interface in javaInterface in java
Interface in java
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket Booking
 
Online Bus Reservation
Online Bus ReservationOnline Bus Reservation
Online Bus Reservation
 
Graphical User Interface in JAVA
Graphical User Interface in JAVAGraphical User Interface in JAVA
Graphical User Interface in JAVA
 
Student result management system
Student result management systemStudent result management system
Student result management system
 
Overloading and overriding in vb.net
Overloading and overriding in vb.netOverloading and overriding in vb.net
Overloading and overriding in vb.net
 
Discuss the scrollable result set in jdbc
Discuss the scrollable result set in jdbcDiscuss the scrollable result set in jdbc
Discuss the scrollable result set in jdbc
 
Placement management system
Placement management systemPlacement management system
Placement management system
 
Bus Ticket Management System
Bus Ticket Management SystemBus Ticket Management System
Bus Ticket Management System
 

Viewers also liked

Word Detection & Translation from image on an android device
Word Detection & Translation from image on an android deviceWord Detection & Translation from image on an android device
Word Detection & Translation from image on an android device
Ritwik Kumar
 
Scalable and Cost Effective interconnection of Data-Center Servers Using Dua...
Scalable and Cost Effective interconnection of Data-Center Servers  Using Dua...Scalable and Cost Effective interconnection of Data-Center Servers  Using Dua...
Scalable and Cost Effective interconnection of Data-Center Servers Using Dua...
Nimal Joseph
 
Projectm6 2-2554 kor
Projectm6 2-2554 korProjectm6 2-2554 kor
Projectm6 2-2554 kor
Theyok Tanya
 
Tugas pmp
Tugas pmpTugas pmp
Tugas pmp
Ry_Awan
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
Theyok Tanya
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
Theyok Tanya
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
Theyok Tanya
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
Theyok Tanya
 
Projectm6 2-2554 sakboss
Projectm6 2-2554 sakbossProjectm6 2-2554 sakboss
Projectm6 2-2554 sakboss
Theyok Tanya
 
Pat6 ความถนัดทางศิลปกรรมศาสตร์
Pat6 ความถนัดทางศิลปกรรมศาสตร์Pat6 ความถนัดทางศิลปกรรมศาสตร์
Pat6 ความถนัดทางศิลปกรรมศาสตร์
Theyok Tanya
 
ชาตะไคร้
ชาตะไคร้ชาตะไคร้
ชาตะไคร้
Theyok Tanya
 
Gatความถนัดทั่วไป
Gatความถนัดทั่วไปGatความถนัดทั่วไป
Gatความถนัดทั่วไป
Theyok Tanya
 

Viewers also liked (20)

Image to text Converter
Image to text ConverterImage to text Converter
Image to text Converter
 
Word Detection & Translation from image on an android device
Word Detection & Translation from image on an android deviceWord Detection & Translation from image on an android device
Word Detection & Translation from image on an android device
 
The birth of the crusading movement
The birth of the crusading movementThe birth of the crusading movement
The birth of the crusading movement
 
Prophet
ProphetProphet
Prophet
 
Scalable and Cost Effective interconnection of Data-Center Servers Using Dua...
Scalable and Cost Effective interconnection of Data-Center Servers  Using Dua...Scalable and Cost Effective interconnection of Data-Center Servers  Using Dua...
Scalable and Cost Effective interconnection of Data-Center Servers Using Dua...
 
Projectm6 2-2554 kor
Projectm6 2-2554 korProjectm6 2-2554 kor
Projectm6 2-2554 kor
 
Tugas pmp
Tugas pmpTugas pmp
Tugas pmp
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
 
Project babnana
Project babnanaProject babnana
Project babnana
 
Project babnana
Project babnanaProject babnana
Project babnana
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
 
Catalogue a4
Catalogue a4Catalogue a4
Catalogue a4
 
Ocr revision
Ocr revisionOcr revision
Ocr revision
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
 
MICRO-ELECTROMECHANICAL SYSTEM (MEMS)
MICRO-ELECTROMECHANICAL SYSTEM (MEMS)MICRO-ELECTROMECHANICAL SYSTEM (MEMS)
MICRO-ELECTROMECHANICAL SYSTEM (MEMS)
 
ใบงานท 13-16
ใบงานท  13-16ใบงานท  13-16
ใบงานท 13-16
 
Projectm6 2-2554 sakboss
Projectm6 2-2554 sakbossProjectm6 2-2554 sakboss
Projectm6 2-2554 sakboss
 
Pat6 ความถนัดทางศิลปกรรมศาสตร์
Pat6 ความถนัดทางศิลปกรรมศาสตร์Pat6 ความถนัดทางศิลปกรรมศาสตร์
Pat6 ความถนัดทางศิลปกรรมศาสตร์
 
ชาตะไคร้
ชาตะไคร้ชาตะไคร้
ชาตะไคร้
 
Gatความถนัดทั่วไป
Gatความถนัดทั่วไปGatความถนัดทั่วไป
Gatความถนัดทั่วไป
 

Similar to Image Converter

High Performance Jdbc
High Performance JdbcHigh Performance Jdbc
High Performance Jdbc
Sam Pattsin
 
Introduction to the Java(TM) Advanced Imaging API
Introduction to the Java(TM) Advanced Imaging APIIntroduction to the Java(TM) Advanced Imaging API
Introduction to the Java(TM) Advanced Imaging API
white paper
 

Similar to Image Converter (20)

Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)
 
Tutorial for netbeans
Tutorial for netbeansTutorial for netbeans
Tutorial for netbeans
 
JAVA_STEP_V7
JAVA_STEP_V7JAVA_STEP_V7
JAVA_STEP_V7
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Jdbc
JdbcJdbc
Jdbc
 
High Performance Jdbc
High Performance JdbcHigh Performance Jdbc
High Performance Jdbc
 
Hibernate notes
Hibernate notesHibernate notes
Hibernate notes
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 
Dao example
Dao exampleDao example
Dao example
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLink
 
N1802038292
N1802038292N1802038292
N1802038292
 
Free EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsFree EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggets
 
Introduction to the Java(TM) Advanced Imaging API
Introduction to the Java(TM) Advanced Imaging APIIntroduction to the Java(TM) Advanced Imaging API
Introduction to the Java(TM) Advanced Imaging API
 
SSDT unleashed
SSDT unleashedSSDT unleashed
SSDT unleashed
 
Having Fun with Play
Having Fun with PlayHaving Fun with Play
Having Fun with Play
 
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
Oracle EBS 12.1.3 : Integrate OA Framework BC4J components within java concur...
 
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
Revolutionizing the Data Abstraction Layer with IBM Optim pureQuery and DB2
 
Having Fun Building Web Applications (Day 2 slides)
Having Fun Building Web Applications (Day 2 slides)Having Fun Building Web Applications (Day 2 slides)
Having Fun Building Web Applications (Day 2 slides)
 
Starting with SpagoBI Slide Support
Starting with SpagoBI Slide SupportStarting with SpagoBI Slide Support
Starting with SpagoBI Slide Support
 
Google App Engine for Java
Google App Engine for JavaGoogle App Engine for Java
Google App Engine for Java
 

More from Navin Kumar

More from Navin Kumar (9)

Fat indian wedding
Fat indian weddingFat indian wedding
Fat indian wedding
 
Axis bank
Axis bankAxis bank
Axis bank
 
Biometric Authentication Technology - Report
Biometric Authentication Technology - ReportBiometric Authentication Technology - Report
Biometric Authentication Technology - Report
 
Micro Electromechanical System (MEMS)
Micro Electromechanical System (MEMS)Micro Electromechanical System (MEMS)
Micro Electromechanical System (MEMS)
 
Encoding stored video for stremming applications ieee paper ppt
Encoding stored video for stremming applications ieee paper pptEncoding stored video for stremming applications ieee paper ppt
Encoding stored video for stremming applications ieee paper ppt
 
Nanogenerator
NanogeneratorNanogenerator
Nanogenerator
 
Biometric authentication ppt by navin 6 feb
Biometric authentication ppt by navin 6 febBiometric authentication ppt by navin 6 feb
Biometric authentication ppt by navin 6 feb
 
Sixth Sense Technology
Sixth Sense TechnologySixth Sense Technology
Sixth Sense Technology
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded Systems
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Image Converter

  • 1. A Industrial Training Project Report on “IMAGE CONVERTER SOFTWARE” Submitted by :- NAVIN KUMAR ROLL : 09EAXEC075 Organization : Class : B. Tech (ECE) - 4rd Year. College : Apex Institute of Engineering & Technology, Jaipur. HCL Infosystems Ltd, Jaipur. Page 1
  • 2. CONTENTS  Introduction  System and Software Required  Working  Advantages  Applications
  • 3. INTRODUCTION  Image Converter Software is made in Java Environment which can run on any operating system.  At a time, it can convert large amount of BMP/PNG/GIF images to JPG/JPEG image format with same dimension and resolution.  When bmp images are converted to JPG images, its size extensively reduced but dimension and resolution remains unchanged.  You can convert image to Byte Array & store in Database and whenever require, it can be retrieved.
  • 4. SYSTEM AND SOFTWARE REQUIRED Operating System : • Windows XP. • Windows 7. Java Platform : • Version 6 Database : • Microsoft SQL Server 2005 or MySQL. IDE : • Eclipse IDE for Java
  • 5. Creating Table In Database (MS SQL Server) To Create a Table : create table s_pht( pht_kid int primary key not null identity(10,1), pht_name varchar(50) not null, pht_kid pht_name pht_file pht_file image not null) 1 10 2 11 3 12 Table Name : s_pht 4 13 3 Columns : pht_kid, pht_name & pht_file To See Content of Table : select *from s_pht
  • 6. JDBC Connection import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class Abc { private Statement getstatement(){ String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=apex;"; try { Load Driver Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); Connection con = DriverManager.getConnection(connectionUrl,"sa",“pass"); return con.createStatement(); } catch(Exception e){ e.printStackTrace(); } UserID Password return null; } public static void main(String args[]){ Abc mncls = new Abc(); try { Statement stmt = mncls.getstatement(); String sql = "insert into btech(sno,name,percentage,semester) " +" values (4,'Ravish',84.01,5)"; stmt.execute(sql); sql = "select * from btech"; Use ResultSet to iterate ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { and access the data. System.out.println(rs.getString(1)); System.out.println(rs.getString(2)); } } catch(Exception e){ e.printStackTrace(); } } }
  • 7. Creating Java Program  In order to write a java program in Eclipse IDE, steps may be as follows : Create New Project Create New Package Import Package(s) Create New Java Class(s) Extend Class(s) [ .java file(s) ] JDBC Driver R U Implement Interface(s) Database Connection N [ .class file(s) ]
  • 8. Selecting File/Directory For Old Path  By clicking on Browse Button which is in front of Old Path, File/Directory chooser will open.  Path of selected file/directory will automatically copy to the corresponding Text Field.
  • 9. Selecting Directory For New Path  By clicking on Browse Button which is in front of New Path, Directory chooser will open.  Path of selected directory will automatically copy to the corresponding Text Field.
  • 10. Conversion of Images to jpg/jpeg format  When Button “Convert” is clicked/pressed, all images from source directory(Old Path) is converted to JPG/JPEG format and stored at destination directory(New Path).
  • 11. Disruption of Obstruction During Image Conversion  If old path and/or new path are not provided then an error message will be generated.
  • 12. BMP Image Vs. JPEG Image  A bitmap(BMP) file is one that is made up of pixels in a grid. It is a resolution dependent image, so it’s very difficult to increase the size of a bitmap graphic without a noticeable decrease in quality.  Joint Photographic Experts Group (JPEG) or JPG files are a type of compressed bitmap file. This lossy compression technique reduces the size of an image by discarding details that are typically too insignificant for the human eye to detect.  JPEG file format supports 16 million colours, it does a very good job of analysing what data is the most important to a particular image.
  • 13. Save Image To Database  When Button “Save To DataBase” is clicked/pressed then all JPG/JPEG images at “New Path” is save to the database in byte array format.
  • 14. Images Stored In Database  JPG images are stored in database in Byte Array format.  Each images stored in database with unique id. Unique ID Images in Byte Array Format
  • 15. Disruption of Obstruction During Saving of Images in Database  If New Path is not provided then an error message will be generated.
  • 16. Continued…….  If program is not successfully connected to database due to invalid user, password, driver, etc. then an error message will be generated.
  • 17. Retrieve Images From Database  When Button “Upload” is clicked/pressed, images from database which is stored in Byte Array format is uploaded at Old Path location in JPG format.
  • 18. Disruption of Obstruction During Upload of Images From Database  If Old Path is not provided then an error message will be generated.
  • 19. Continued…….  During upload, if program is not successfully connected to database due to invalid user, password, driver, etc. then an error message will be generated.
  • 20. ADVANTAGES Portable Java based program which is platform independent. Image takes less memory space. Takes very less amount of time in conversion. No effect on image quality and dimension. Data stored in database is more secure. Each images stored in database with unique ID.
  • 21. CONCLUSION  If you need to convert one or thousands of images of varying types, this is the tool. A BMP image having size 5MB is converted to JPG image then it’s size reduced up to 700 KB but image quality is unaffected. Instead of storing the image, you can store the byte array of that image in DB. You can convert that image to byte array & store in DB. Byte Array (Base 64 string) which is more secure. It can be used in various places like Banks, UIDAI (Aadhaar), photography etc.