Article View: borland.public.jbuilder.java.language
Article #15211Re: detect picture format
From: Patrick H. Ryan
Date: Tue, 06 Jul 1999 00:00
Date: Tue, 06 Jul 1999 00:00
28 lines
1262 bytes
1262 bytes
Look at the Java Advanced Imaging API. I believe it even has an example program that detects the format of an image. -Patrick. Marcel van den Dungen wrote: > 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:
<3781F4A9.75ED739E@pmifeg.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3780CB44.20B43873@c-content.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8f8198b4d1207345 X-Google-Attributes: gidf74b3,public From: "Patrick H. Ryan" <ryanxpx@pmifeg.com> Subject: Re: detect picture format Date: 1999/07/06 Message-ID: <3781F4A9.75ED739E@pmifeg.com> X-Deja-AN: 497717970 Content-Transfer-Encoding: 7bit References: <3780CB44.20B43873@c-content.nl> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language