Bookmark Topic Watch Topic
  • New Topic

regarding clarification

 
sreelakshmi kolla
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Ulf Dittmer ,

i have tried it out in that way.here is my code:

import java.awt.*;
import java.io.*;
import java.awt.event.*;
import java.awt.image.*;
import java.awt.geom.*;
import java.awt.font.*;

import javax.swing.*;
import javax.imageio.*;


public class ReadGGif{

public static void main(String s[]) throws Exception {
File f=new File("D:/Myapps/read/4843a349.gif");
BufferedImage bufferedImage=ImageIO.read(f);
Raster raster = bufferedImage.getData();
DataBuffer dbuffer = raster.getDataBuffer();
int size = dbuffer.getSize();
System.out.println("Size of the File:"+size);

System.out.println("Data Type:"+dbuffer.getDataType());

System.out.println("Get Element:"+dbuffer.getElem(0, 0));
}


}


but my intention is put that data that is read from the .gif file into .doc file!

can you tell me what can i do inorder to achieve that??--it is some what necessary!

Regards,
sreelakshmi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please stop posting the same question time and again. You received good advice on this subject in this thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!