RE: Can't read JPEG file using JPEGReader
Ok I guess should explain, After much searching the only thing I could find to do what I want if FOP. I want to be able to read in either a gif or a jpeg and check the dimensions of it. AWT has to much overhead because it attempts to renderthe image. Whereas FOP seems just to reader the header information. As I can't guarantee that my application will run using JDK 1.4 I can't rely on JavaImage io classes. attached is a jpeg that wont read, I then went ahead and converted a working gif into a jpeg using Photoshop. It doesn't work either. If anyone has another suggestion to do what I want to do, they're mor than welcome. I know it's only using a small part of fop, and not using it for what fop was designed for, but it does work, If I can get it to read a jpeg. Regards Steve -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 April 2003 12:24 AM To: [EMAIL PROTECTED] Subject: Re: Can't read JPEG file using JPEGReader 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] <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
backgroud position
Hai, I need to specify the backgorund position in co-ordinate like "110,0".It is giving me an error. I believe I am specifying the co-ord wrong.Could you i also do the same for text-align. Thanks Vikram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: several simple-page-master-objects on one page?
I hope you don't mind that I post the answer to the one mail back to fop-user. I'd like everyone to profit from answers. On 08.04.2003 16:07:38 Todtenhaupt, Susann wrote: > What I meant was following: when printing a document you can choose an > option to "put" 2 or 4 etc. pages on one page you want to print. But this is > a feature of the printer-driver. Is there any way to do this with xsl:fo? No, and not with FOP for PDF, PostScript etc. As I explained just recently there is code in FopPrintServlet.java that does something like that but it applies to the AWT renderer only. Maybe you could try to change or subclass StreamRenderer.java to realize a similar effect for the other renderers. See the method processQueue(). On 08.04.2003 14:23:52 Todtenhaupt, Susann wrote: > I know that's a huge effort... I've joined that group not long ago and I've > not so much experience with fop. And so I thought somebody can help me in > this case. Where did you add this comment on cvs? Here's the web view of the raw change: http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/content/xdocs/compliance.xml.diff?r1=1.9&r2=1.10&diff_format=h This probably doesn't help much. If you'd like to help documenting have a look at: http://xml.apache.org/overview.html http://xml.apache.org/cvs.html Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDFRenderer.
Okay, this is good. I am picking up on what you are saying. I have done something similiar when I was building large XML documents with SAX. I had a class implement the SAX ContentHanlder. then parsed and stream all the XML files into the ContentHanlder which created one large XML file. So I need to create my SVG document. Parse it into FOP, that renders this into PDF. I think I got the basic idea. I will think some more on it and then try to put together some classes for testing. Thank you :-) -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: Re: PDFRenderer. Hmm, the PDF transcoder is only for one-page documents as far as I know. I wouldn't fiddle with those Area classes. Do it with XSL-FO as Jörg suggested. Try to come up with an XSL-FO or an XSL-FO generating XSLT that puts together the layout you need. This will be a lot easier than trying to make your current approach work. >From what I think you do I'd do it like this: - Create an XMLReader class (see examples/embedding/java/embedding/model/ProjectTeamXMLReader) that creates a SAX stream with your SVG documents along these lines: - Write an XSLT that transforms this XML format to XSL:FO with embedded fo:instream-foreign-objects. Tip: To convert a DOM to SAX events you can use org.apache.fop.tools.DocumentReader for example. Just get back again if you need more help. Good luck! On 09.04.2003 16:39:02 Leet, Ethan C wrote: > > I have used PDF Transcoder for one page. > > It works very well. > > But what I am trying to do is create mulitple pages from 2D > graphics. > > My test is to create a PDF document with three pages. > > For each page I create a SVG Document per page. > > Render the SVG document onto the PDF page. > > I don't know how to control the pages using the PDF transcoder. > > Also since this is for a print service for supporting 2 graphics, > > I have to be careful about space, cause the document printing could > be 50 pages. > > Any advice ? > > Right now I am still fiddling with the Areas. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pdf file creation
No, not at the moment I'm afraid. This would probably involve adding a proprietary attribute on page-sequence that tells the PDF renderer to start a new PDF file. It may be easier to split the big PDF into smaller ones using some PDF post-processing tool. If your invoices have variable page counts you can use Driver.getFormattingResults() to obtain the number of pages for each page-sequence processed. You say it's very slow. You don't have to restart the JVM for each FOP run, do you? I hope this helps. On 09.04.2003 16:24:32 Partridge, Michael wrote: > I'm running fop .20.5rc2 from the command line, and my xml file has over > 600 elements to process. This job runs very quickly, but after > that I need to create a seperate pdf for each . To do that, I > create an xml file for each and run fop on each seperately, > but this is very slow due to process overhead. Is there any way to avoid > this? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDFRenderer.
Hmm, the PDF transcoder is only for one-page documents as far as I know. I wouldn't fiddle with those Area classes. Do it with XSL-FO as Jörg suggested. Try to come up with an XSL-FO or an XSL-FO generating XSLT that puts together the layout you need. This will be a lot easier than trying to make your current approach work. From what I think you do I'd do it like this: - Create an XMLReader class (see examples/embedding/java/embedding/model/ProjectTeamXMLReader) that creates a SAX stream with your SVG documents along these lines: - Write an XSLT that transforms this XML format to XSL:FO with embedded fo:instream-foreign-objects. Tip: To convert a DOM to SAX events you can use org.apache.fop.tools.DocumentReader for example. Just get back again if you need more help. Good luck! On 09.04.2003 16:39:02 Leet, Ethan C wrote: > > I have used PDF Transcoder for one page. > > It works very well. > > But what I am trying to do is create mulitple pages from 2D > graphics. > > My test is to create a PDF document with three pages. > > For each page I create a SVG Document per page. > > Render the SVG document onto the PDF page. > > I don't know how to control the pages using the PDF transcoder. > > Also since this is for a print service for supporting 2 graphics, > > I have to be careful about space, cause the document printing could > be 50 pages. > > Any advice ? > > Right now I am still fiddling with the Areas. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bug in Xalan2.4.1
This is probably without the bugfix. I was not aware of a severe problem with 2.4.1. Can you point me to a BugZilla entry? By the way, you're free to use a different version of Xalan. FOP uses the JAXP API to do XSL transformations so you're not even bound to Xalan. You may just have to adjust your classpath. On 09.04.2003 11:02:03 Zmitko, Jan wrote: > somebody told me that in the version 2.4.1. Xalan is a Bug with XSLT > Transforming. See > http://cvs.apache.org/viewcvs.cgi/xml-xalan/java/src/org/apache/xalan/xsltc/ > trax/TemplatesHandlerImpl.java > > The Bug is fixed at 10.02.03. My Question is, I use the latest FOP > 0.20.5rc2. In this Distribution included Xalan2.4.1, is without the Bugfix, > or? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDFRenderer.
I have used PDF Transcoder for one page. It works very well. But what I am trying to do is create mulitple pages from 2D graphics. My test is to create a PDF document with three pages. For each page I create a SVG Document per page. Render the SVG document onto the PDF page. I don't know how to control the pages using the PDF transcoder. Also since this is for a print service for supporting 2 graphics, I have to be careful about space, cause the document printing could be 50 pages. Any advice ? Right now I am still fiddling with the Areas. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2003 10:19 AM To: [EMAIL PROTECTED] Subject: Re: PDFRenderer. You just want to convert SVG to PDF? Then it's MUCH easier if you just used FOP's PDF transcoder. The transcoder is a Batik plug-in that adds PDF output support. The URL below is an example Java class I recently added to demonstrate converting SVG to PDF using the PDF transcoder. The PDF transcoder is included in Batik's current distribution (Version 1.5beta4). Just ask again if you need more help. http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ ExampleSVG2PDF.java?rev=1.1&content-type=text/vnd.viewcvs-markup Also look at this: http://xml.apache.org/batik/rasterizerTutorial.html http://xml.apache.org/batik/svgrasterizer.html On 09.04.2003 14:06:17 Leet, Ethan C wrote: > > I am looking for suggestions ? > > I build a SVG DOM Tree. > > I would need to translate the SVG DOM tree into a FOP DOM tree, > before I can run FOP right ? > > Please, any help would be greatful, I don't want to fiddle with > anything if I don't need to. > > Thanks > > > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 08, 2003 5:41 PM > To: [EMAIL PROTECTED] > Subject: Re: PDFRenderer. > > > Leet, Ethan C wrote: > > Page.getBody().getMainReferenceArea().addChild(SVGArea); > > I highly suspect you'll have to add a block area and probably also a > line area and ultimately add the SVG to the latter. > You can check how a working area tree looks like by rendering a simple > FO file with the SVG first to PDF (to check whether it works) and then > as XML output. > > BTW why do you fiddle with areas? Building a DOM tree and running > FOP on it should be much easier. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP HELP HELP PERFORMANCE - there remains blocked on approximately page 100
Writing in uppercase (="Yelling") doesn't award you any plus points. Mostly it's the other way around. First of all, start by reading FOP's FAQ at: http://xml.apache.org/fop/faq.html It contains a lot of information to start from. And please consider providing more information on your problem when asking questions. You didn't even tell us if you got any error messages and if yes what they were. A few tips: - Break down you huge input file to see if there's a part in the big file that triggers the hang. - Comment out certain passages in your XSLT to narrow down the problem. A nice page with links to a wealth of information: http://xml.apache.org/fop/gethelp.html On 09.04.2003 11:11:41 Philippe PITHON wrote: > the problem occurs during render FOP > > there remains blocked on approximately page 100 > > > > if somebody of team FOP could answer... > > > > --- > > > > We start to publish large editions with FOP: countable listing, > ledger... > > and render FOP explodes of everywhere!!! > > > > version FOP 0.20.5 > > xml size : approximately 2Mo. > > Xms : 256Mo > > > > Impossible to make page breaks because they are listings > > > > can you tell us the date of release of your version miracle? > > > > I don't know any more what to make and more what think... > > > > > Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I set the density of a pdf file in dpi?
PDFs don't have a density setting. Density is all about images. FOP currently doesn't do scaling of images. You'd have to do that externally. Have a look into the mailing list archives. There have been several discussions and tips on this topic in the past. On 09.04.2003 08:20:42 Hans Stoessel wrote: > How can I set the density in dpi for a generated pdf file? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pdf file creation
I'm running fop .20.5rc2 from the command line, and my xml file has over 600 elements to process. This job runs very quickly, but after that I need to create a seperate pdf for each . To do that, I create an xml file for each and run fop on each seperately, but this is very slow due to process overhead. Is there any way to avoid this? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't read JPEG file using JPEGReader
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]
Re: PDFRenderer.
You just want to convert SVG to PDF? Then it's MUCH easier if you just used FOP's PDF transcoder. The transcoder is a Batik plug-in that adds PDF output support. The URL below is an example Java class I recently added to demonstrate converting SVG to PDF using the PDF transcoder. The PDF transcoder is included in Batik's current distribution (Version 1.5beta4). Just ask again if you need more help. http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java?rev=1.1&content-type=text/vnd.viewcvs-markup Also look at this: http://xml.apache.org/batik/rasterizerTutorial.html http://xml.apache.org/batik/svgrasterizer.html On 09.04.2003 14:06:17 Leet, Ethan C wrote: > > I am looking for suggestions ? > > I build a SVG DOM Tree. > > I would need to translate the SVG DOM tree into a FOP DOM tree, > before I can run FOP right ? > > Please, any help would be greatful, I don't want to fiddle with > anything if I don't need to. > > Thanks > > > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 08, 2003 5:41 PM > To: [EMAIL PROTECTED] > Subject: Re: PDFRenderer. > > > Leet, Ethan C wrote: > > Page.getBody().getMainReferenceArea().addChild(SVGArea); > > I highly suspect you'll have to add a block area and probably also a > line area and ultimately add the SVG to the latter. > You can check how a working area tree looks like by rendering a simple > FO file with the SVG first to PDF (to check whether it works) and then > as XML output. > > BTW why do you fiddle with areas? Building a DOM tree and running > FOP on it should be much easier. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:block coordinates
That's not so simple. Problem is that the FO elements get loaded into the FO tree. The FO tree is then transformed to the Area tree by FOP's layout engine. Only the Area tree has information on coordinates. So you would have to backtrack an Area to it FO element. What's your use case? Maybe there's another way. On 08.04.2003 18:09:12 Fatih Üstündað wrote: > is it possible to take coordinates of fo:blocks in the pdf file when i am > rendering pdf with my java application using fop? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDFRenderer.
I am looking for suggestions ? I build a SVG DOM Tree. I would need to translate the SVG DOM tree into a FOP DOM tree, before I can run FOP right ? Please, any help would be greatful, I don't want to fiddle with anything if I don't need to. Thanks -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: Re: PDFRenderer. Leet, Ethan C wrote: > Page.getBody().getMainReferenceArea().addChild(SVGArea); I highly suspect you'll have to add a block area and probably also a line area and ultimately add the SVG to the latter. You can check how a working area tree looks like by rendering a simple FO file with the SVG first to PDF (to check whether it works) and then as XML output. BTW why do you fiddle with areas? Building a DOM tree and running FOP on it should be much easier. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDFRenderer.
Leet, Ethan C wrote: Page.getBody().getMainReferenceArea().addChild(SVGArea); I highly suspect you'll have to add a block area and probably also a line area and ultimately add the SVG to the latter. You can check how a working area tree looks like by rendering a simple FO file with the SVG first to PDF (to check whether it works) and then as XML output. BTW why do you fiddle with areas? Building a DOM tree and running FOP on it should be much easier. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP HELP HELP PERFORMANCE - there remains blocked on approximately page 100
the problem occurs during render FOP there remains blocked on approximately page 100 if somebody of team FOP could answer... --- We start to publish large editions with FOP: countable listing, ledger... and render FOP explodes of everywhere!!! version FOP 0.20.5 xml size : approximately 2Mo. Xms : 256Mo Impossible to make page breaks because they are listings can you tell us the date of release of your version miracle? I don’t know any more what to make and more what think...
Bug in Xalan2.4.1
Hello together, somebody told me that in the version 2.4.1. Xalan is a Bug with XSLT Transforming. See http://cvs.apache.org/viewcvs.cgi/xml-xalan/java/src/org/apache/xalan/xsltc/ trax/TemplatesHandlerImpl.java The Bug is fixed at 10.02.03. My Question is, I use the latest FOP 0.20.5rc2. In this Distribution included Xalan2.4.1, is without the Bugfix, or? Thanks Jan Zmitko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: HELP HELP HELP PERFORMANCE !!!!
Hello, we are now using SAXON 6.5.2 to process our XML and it is about 1 and 1/2 times faster than XALAN. Also are you using xsl:key to get faster access to your nodes ? by the way, i don't understand your problem really... greets, mark -Ursprüngliche Nachricht-Von: Philippe PITHON [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 9. April 2003 10:44An: [EMAIL PROTECTED]Betreff: HELP HELP HELP PERFORMANCE We start to publish large editions with FOP: countable listing, ledger... and render FOP explodes of everywhere!!! version FOP 0.20.5 xml size : approximately 2Mo. Xms : 256Mo Impossible to make page breaks because they are listings can you tell us the date of release of your version miracle? I don’t know any more what to make and more what think...
Re: HELP HELP HELP PERFORMANCE !!!!
Have you tried to process your XML file with Xalan before , to know which one from Xallan or Fop crashes ?? Your .fo file may be pretty big.with a 2Mo xml file...depending of your xsl document. Xalan loads all document before processing so maybe it's a good idea to increase jvm heap Extract from Xalan website! You can also increase your jvm heap size with the -Xmx or -mx flag, depending on which JVM you are using (you can include both flags, and the JVM will ignore the one it doesn't understand). For example, to give your JVM 64 meg, try java -Xmx64m -mx64m Class Xavier Philippe PITHON a écrit: We start to publish large editions with FOP: countable listing, ledger... and render FOP explodes of everywhere!!! version FOP 0.20.5 xml size : approximately 2Mo. Xms : 256Mo Impossible to make page breaks because they are listings can you tell us the date of release of your version miracle? I don’t know any more what to make and more what think... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP HELP HELP PERFORMANCE !!!!
We start to publish large editions with FOP: countable listing, ledger... and render FOP explodes of everywhere!!! version FOP 0.20.5 xml size : approximately 2Mo. Xms : 256Mo Impossible to make page breaks because they are listings can you tell us the date of release of your version miracle? I don’t know any more what to make and more what think...
HELP HELP HELP PERFORMANCE !!!!
We commencons to publish large editions with FOP: countable listing, ledger... and render FOP explodes of everywhere!!! version FOP 0.20.5 xml size : approximately 2Mo. Xms : 256Mo Impossible to make page breaks because they are listings can you tell us the date of release of your version miracle? I don’t know any more what to make and more what think...
Re: reference-orientation
Clay Leeds wrote: For clarity's sake, would you be referring to FOP-0.20.5rc3? FOP-0.20.5? FOP-1.0dev? or what... 1.0dev. Will probably (hopefully) get another name before released to the wiled, like 0.30 or something... J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: block child bug
From: Phil Chu <[EMAIL PROTECTED]> When converted to PDF, the "Block1" fragment below appears both before and after "Block2", unless I wrap it within a nested block. This behavior appeared after I upgraded to FOP 0.20.5rc2. Is this a known problem? This is a known bug with 0.20.5rc2. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17472 It has been fixed in CVS _ Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I set the density of a pdf file in dpi?
Hi How can I set the density in dpi for a generated pdf file? Thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
block child bug
When converted to PDF, the "Block1" fragment below appears both before and after "Block2", unless I wrap it within a nested block. This behavior appeared after I upgraded to FOP 0.20.5rc2. Is this a known problem? http://www.w3.org/1999/XSL/Format";> Block1 Block2 -- Phil Chu [EMAIL PROTECTED] http://www.technicat.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't read JPEG file using JPEGReader
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 Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]