jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Convert the .Tiff file to .png and insert into the database. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Convert the .Tiff file to .png and insert into the database." Watch "Convert the .Tiff file to .png and insert into the database." New topic
Author

Convert the .Tiff file to .png and insert into the database.

tahir ahmed
Greenhorn

Joined: Dec 20, 2011
Posts: 7
Hi,
I am new to java, I am trying to convert the .tiff file to .png and then insert it into the oracle database. can anyhow help me how to do as I have done some coding to pick the file and dispaly it into the item field but I don't how to convet the insert it into the database.
Any help will be higly appreciated.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
The javax.imageio.ImageIO class can handle both file formats. TIFF requires a bit of setup; it's not hard, though. Search these forums for "tiff enabling imageio" or some such term.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Convert the .Tiff file to .png and insert into the database.
 
It's not a secret anymore!