Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 2801 invoked from network); 19 Nov 2008 18:14:33 -0000
Received: from jack.telenet-ops.be ([195.130.136.5])
          (envelope-sender <tiff-bounces@lists.maptools.org>)
          by angelia.telenet-ops.be (qmail-ldap-1.03) with SMTP
          for <info@awaresystems.be>; 19 Nov 2008 18:14:33 -0000
Received: from waldo.telenet-ops.be (waldo.telenet-ops.be [195.130.136.10])
	by jack.telenet-ops.be (8.13.1/8.13.1) with ESMTP id mAJIEXtm019066
	for <info@awaresystems.be>; Wed, 19 Nov 2008 19:14:33 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by waldo.telenet-ops.be (Postfix) with SMTP id 278651C00A
	for <info@awaresystems.be>; Wed, 19 Nov 2008 19:14:33 +0100 (CET)
Received: from crotus.telenet-ops.be (crotus.telenet-ops.be [195.130.132.38])
	by waldo.telenet-ops.be (Postfix) with ESMTP id 1666F1C009
	for <info@awaresystems.be>; Wed, 19 Nov 2008 19:14:33 +0100 (CET)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by crotus.telenet-ops.be (Postfix) with ESMTP id A5A3213
	for <info@awaresystems.be>; Wed, 19 Nov 2008 19:14:32 +0100 (CET)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mAJIBMqF006190;
	Wed, 19 Nov 2008 13:12:31 -0500
Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mAJIBJxg006187
	for <tiff@lists.maptools.org>; Wed, 19 Nov 2008 13:11:19 -0500
Received: from isper.nabble.com ([192.168.236.156])
	by kuber.nabble.com with esmtp (Exim 4.63)
	(envelope-from <bounces@nabble.com>) id 1L2rWG-0003RE-VP
	for tiff@lists.maptools.org; Wed, 19 Nov 2008 10:11:16 -0800
Message-ID: <20585830.post@talk.nabble.com>
Date: Wed, 19 Nov 2008 10:11:16 -0800 (PST)
From: Bogdan Cristea <cristeab@gmail.com>
To: tiff@lists.maptools.org
Subject: Re: Re[Tiff] ading class F TIFF file with Java Advanced Imaging
	(JAI) API
In-Reply-To: <e7b7bbdc0811181041x738bdc31h3a25be82ef043a68@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: cristeab@gmail.com
References: <e7b7bbdc0811172119k4a810bf5r3b3342deeb64eba8@mail.gmail.com>
	<e7b7bbdc0811181041x738bdc31h3a25be82ef043a68@mail.gmail.com>
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-SpamCatcher-Score: 30 [X]


I have been able to read and display class F TIFF files using JAI imageIO.
Thanks Simone

regards
Bogdan



Bogdan Cristea wrote:
> 
> On Tue, Nov 18, 2008 at 6:29 PM, Simone Giannecchini <simboss1@gmail.com>
> wrote:
>> Ciao Bogdan ,
>> quick question did you use JAI or ImageIO to read the file. Notice
>> that JAI fileload operation is not recommended.
> 
> I use JAI API for reading the file. I'll try ImageIO and report back.
> 
>>
>> Simone.
>> -------------------------------------------------------
>> Eng. Simone Giannecchini
>> GeoSolutions S.A.S.
>> Owner - Software Engineer
>> Via Carignoni 51
>> 55041  Camaiore (LU)
>> Italy
>>
>> phone: +39 0584983027
>> fax:      +39 0584983027
>> mob:    +39 333 8128928
>>
>>
>> http://www.geo-solutions.it
>> http://simboss.blogspot.com/
>> http://www.linkedin.com/in/simonegiannecchini
>>
>> -------------------------------------------------------
>>
>>
>>
>> On Tue, Nov 18, 2008 at 6:19 AM, Bogdan Cristea <cristeab@gmail.com>
>> wrote:
>>> Does anyone know how a class F TIFF file could be generated in order
>>> to be decoded with JAI?
>>> The TIFF files generated in this way are viewable using ghfaxviewer or
>>> okular, but I get a runtime exception when using JAI.
>>> Any ideas?
>>>
>>> Below is the error I get using my java app:
>>>
>>> java.lang.RuntimeException: Invalid code encountered while decoding 2D
>>> group 4 compressed data.
>>>        at
>>> com.sun.media.jai.codecimpl.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:1096)
>>>        at
>>> com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1075)
>>>        at
>>> com.sun.media.jai.codecimpl.SimpleRenderedImage.copyData(SimpleRenderedImage.java:552)
>>>        at
>>> javax.media.jai.RenderedImageAdapter.copyData(RenderedImageAdapter.java:163)
>>>        at
>>> javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2525)
>>>        at
>>> javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2546)
>>>        at TiffViewer.decodeImage(TiffViewer.java:95)
>>>        at TiffViewer.init(TiffViewer.java:55)
>>>        at TiffViewer.<init>(TiffViewer.java:45)
>>>        at TiffViewer.main(TiffViewer.java:124)
>>> Exception in thread "main" java.lang.NullPointerException
>>>        at javax.swing.ImageIcon.<init>(ImageIcon.java:178)
>>>        at TiffViewer.decodeImage(TiffViewer.java:105)
>>>        at TiffViewer.init(TiffViewer.java:55)
>>>        at TiffViewer.<init>(TiffViewer.java:45)
>>>        at TiffViewer.main(TiffViewer.java:124)
>>>
>>> --
>>> Bogdan Cristea
>>> _______________________________________________
>>> Tiff mailing list: Tiff@lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/tiff
>>> http://www.remotesensing.org/libtiff/
>>>
>>>
>>
> 
> 
> 
> -- 
> Bogdan Cristea
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
> 
> 

-- 
View this message in context: http://www.nabble.com/Reading-class-F-TIFF-file-with-Java-Advanced-Imaging-%28JAI%29-API-tp20553875p20585830.html
Sent from the Tiff / LibTiff mailing list archive at Nabble.com.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
