🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15172

detect picture format

#15172
From: Marcel van den Dungen
Date: Fri, 02 Jul 1999 00:00
23 lines
1058 bytes
hi,


i would like to know how i can detect the format
of image data, if it can't be derived from the
extension?


( i get a BLOB from a oracle database through a query
  and want to save it to disk with the right extension )


the picture formats i want to detect are:
tiff, gif, bmp, pcx, tga, jpg (and more if possible)

and maybe this is possible for other binary data files?
(like avi's, wav's )

many thanks in advance,

greetz,

vincent
Technical Details
Message-ID: <7li1t3$sfk$1@zonnetje.NL.net>
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: f74b3,8f8198b4d1207345,start
X-Google-Attributes: gidf74b3,public
From: "Marcel van den Dungen" <info@c-content.nl>
Subject: detect picture format
Date: 1999/07/02
Message-ID: <7li1t3$sfk$1@zonnetje.NL.net>
X-Deja-AN: 496358397
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Complaints-To: abuse@nl.uu.net
X-Trace: zonnetje.NL.net 930908899 29172 212.136.244.31 (2 Jul 1999 09:48:19 GMT)
Organization: C-CONTENT b.v.
NNTP-Posting-Date: 2 Jul 1999 09:48:19 GMT
Newsgroups: borland.public.jbuilder.java.language