Can you please start by telling us what you're trying to do? Have you tried a different JPEG image? There are JPEG's that won't work. Maybe you just got something that's not supported. Can you post a little (!) JPEG that doesn't work? Anyway, I'm wondering why you're working with ImageReaderFactory and friends at all.
On 09.04.2003 03:16:29 Steve Vanspall wrote: > Hi there, > > I was wondering if anybody else has this problem. > > If I use either > > ImageReaderFactory.Make(null, inputstream) > > and actually give it the input stream of a file that I know is a JPEG, > > it return null. > > If I try > > reader = new JPEGReader() > reader.verifySignature(null, new BufferedInputStream(FileInputStream)); > > it returns false, indicating that the input doesn't match the epected input > of a JPEG File > > If I try the same with the GIFReader adn a GIF File, ti works fine > > ImageReaderFactory.Make(null, inputstream) where inputstream is that of a > gif file > > return a GIfReader > > reader = new GIFReader() > reader.verifiySignature(null, new BufferedInputStream(new > FileInputStream(gifFile))); > > return true > > I can then procedd to get the dimensions of the image > > Can anyone suggest what I might be doing wrong, or a workaroudn for this > problem Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
