🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

detect picture format

#15208
From: Marcel van den Dungen
Date: Mon, 05 Jul 1999 00:00
21 lines
969 bytes
hi,

how can i detect the format of an image file, if it can't be derived
from the extension.
(i get a blob file out of an oracle database).

i want to save the binary data i get from the database through a query,
to a file with the
proper extension (gif, jpg, etc.)

the picture formats i want to detect are:
tiff, gif, pcx, bmp, 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: <3780CB44.20B43873@c-content.nl>
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
X-Google-Attributes: gidf74b3,public
From: Marcel van den Dungen <info@c-content.nl>
Subject: detect picture format
Date: 1999/07/05
Message-ID: <3780CB44.20B43873@c-content.nl>
X-Deja-AN: 497385439
Content-Transfer-Encoding: 7bit
Organization: C-CONTENT b.v.
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language