Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.3.148])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i3EL8jNx015736
        for <joris.at.lebbeke@skynet.be>; Wed, 14 Apr 2004 23:08:45 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx005.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i3EL8a76017276
        for <joris.at.lebbeke@skynet.be>; Wed, 14 Apr 2004 23:08:37 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i3EL7Un13584;
	Wed, 14 Apr 2004 17:07:30 -0400
Received: from sabre.velocet.net (postfix@sabre.velocet.net [216.138.209.205])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i3EL66n13548
	for <tiff@remotesensing.org>; Wed, 14 Apr 2004 17:06:06 -0400
Received: from pobox.com (H156.C195.tor.velocet.net [216.138.195.156])
	by sabre.velocet.net (Postfix) with ESMTP
	id B0765138D18; Wed, 14 Apr 2004 17:05:57 -0400 (EDT)
Message-ID: <407DA7B8.20702@pobox.com>
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ann Wang <awang@imagehawk.com>
Cc: tiff@remotesensing.org
Subject: Re: [Tiff] Read tiff from memory
References: <200404142001.i3EK1LHq025760@mail.imagehawk.com>
In-Reply-To: <200404142001.i3EK1LHq025760@mail.imagehawk.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Wed, 14 Apr 2004 17:06:00 -0400
X-UIDL: aabbaf63bd4e6f7c1f5f35917bc56cfd

Ann Wang wrote:
> Hi, I am a newbie and want to know if there is a way to read tiff from 
> memory buffer instead of from file. Looking at the documentation, I only 
> see examples reading the tiff using TIFFOpen(tiff filename, mode). Is 
> there a TIFFOpen function that will read from memory buffer instead?

Ann,

The TIFFClientOpen() function allows you to pass in functions to be used
for seeking, reading, writing and so forth.  This can be used to access
in memory datasets.  The contrib/mfs directory contains one example of an
"in memory" access implementation using this mechanism.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
