A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Opening .gif files
zaeem masood ashar
Joined: Mar 17, 2001
May 25, 2001 12:25:00
Can we open a .gif file using IO. If yes can someone please write a code snippet!!
Joined: Jan 09, 2001
May 25, 2001 13:37:00
If you just want to use it as an image use the following:
Image im = Toolkit.getImage( fileName.gif );
Otherwise you can just use
and read it in as bytes as it is just a binary file anyway!
I agree. Here's the link:
subject: Opening .gif files
what types of image is suported in java
how to store jpg/gif picture in Database
Binary Data in XML
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013