Article View: borland.public.jbuilder.java.language
Article #14655Re: Help needed with cross platform File types (emergency!)
From: Eric Maziade
Date: Tue, 10 Aug 1999 00:00
Date: Tue, 10 Aug 1999 00:00
36 lines
2055 bytes
2055 bytes
I'll try to come to an understanding with my client (so he will add a .jpg or .jpeg at the end of his files - he's the one that needs to be crossplatform, so...) But nevertheless, I do not know how mac computers store their filetypes... I think there is a mac api call that will return something to identify the file... I half expected to see a crossplatform version of that with java... but then again, I have a hard time figuring how it could really work platform independently in any other fashion than the one you described... Thank you very much for your help! -- --- Eric Maziade Concepteur en technologies de pointe multim�dia http://www.novisoft.com http://www.novisoft.com/maze Steve Schafer (TeamB) <pandeng@telepath.com> wrote in message news:37cc6506.323766979@90.0.0.40... > On Tue, 10 Aug 1999 11:05:58 -0400, "Eric Maziade" > <maze@novisoft.com.nospam> wrote: > > >Anyone knows how to know what type a file is, platform-independently ? > > The only way to really "know" what type a file may be is to open it up > and look inside. For example, JFIF-format JPEG files will contain the > string "JFIF" near the beginning of the file. > > Even so, you have to rely on various heuristics--a file could look > like it conforms to some specification, and you might not be able to > tell that it actually conforms to some other specification until > you've read the first 50 megabytes of it. > > -Steve >
Technical Details
Message-ID:
<7oq0ip$al611@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7opf28$aak1@forums.borland.com> <37cc6506.323766979@90.0.0.40>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,99c37293ba93bd21 X-Google-Attributes: gidf74b3,public From: "Eric Maziade" <maze@novisoft.com.nospam> Subject: Re: Help needed with cross platform File types (emergency!) Date: 1999/08/10 Message-ID: <7oq0ip$al611@forums.borland.com> X-Deja-AN: 511174212 References: <7opf28$aak1@forums.borland.com> <37cc6506.323766979@90.0.0.40> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language