Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

regarding clarification  RSS feed

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 is my code:

import java.awt.*;
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");
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!

Ulf Dittmer
Posts: 42970
  • 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!