🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1068

extracting GIF/JPEG text

#1068
From: kerrydan
Date: Thu, 19 Aug 1999 00:00
22 lines
1435 bytes
I have been trying (unsuccsessfully) to extract the optional text fields
from a GIF or JPG file using JDK1.01 (old but compatible with older
browsers).

Am I completly on the wrong track trying to use:

stringvar = img.getProperties("comment", this);

where img is the image and can be displayed using disply.

This just gives stringvar the value of java@object#237635 or similar.
Definatly NOT the text within the image.

Alternativly, does anyone know how to extract the bytes from an Image
object such that they can be used using InputStream? I can then do a
search for the text data myself.

This sort of thing MUST be done by someone as image files often contain
the original creators email/url and so on in plain text.

Thanks,
Daniel.
Technical Details
Message-ID: <37BBBD12.FF7CD0B1@hunterlink.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,7f1be3a13ec3a55e,start
X-Google-Attributes: gid10d6db,public
From: kerrydan <ddklr@hunterlink.net.au>
Subject: extracting GIF/JPEG text 
Date: 1999/08/19
Message-ID: <37BBBD12.FF7CD0B1@hunterlink.net.au>
X-Deja-AN: 514600856
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 935050621 203.12.6.8 (Thu, 19 Aug 1999 18:17:01 EST)
Organization: DIALix Internet Services
MIME-Version: 1.0
Reply-To: ddklr@hunterlink.net.au
NNTP-Posting-Date: Thu, 19 Aug 1999 18:17:01 EST
Newsgroups: aus.computers.java