Hi all,i am a fresher ...
during the project i have come across one problem
after converting .gif to .doc,the
doc file is not in readable format...
to make it readable what can i do??
my code is like this:
import java.io.*;
import java.util.zip.*;
public class ReadGif{
public static void main(
String args[]) throws Exception{
FileInputStream fis=new FileInputStream("D:/Myapps/read/4843a349.gif") ;
FileOutputStream fos=new FileOutputStream("d:/Myapps/1.doc");
int dt;
while((dt=fis.read())!=-1){
fos.write((char)dt);
}
fis.close();
fos.close();
}
}