Received: from sgi.sgi.com (192.48.153.1) by cerious.com
 with SMTP (Apple Internet Mail Server 1.1.1); Wed, 19 Feb 1997 06:33:01 -0500
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id DAA16495; Wed, 19 Feb 1997 03:23:59 -0800
Received: (from daemon@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id KAA16102 for tiff-list; Wed, 19 Feb 1997 10:17:53 GMT
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id CAA16097 for <tiff-relay@relay.engr.sgi.com>; Wed, 19 Feb 1997 02:17:51 -0800
Received: from iijgw.fujixerox.co.jp (iijgw.fujixerox.co.jp [202.32.191.4]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id CAA06918 for <tiff@sgi.com>; Wed, 19 Feb 1997 02:17:45 -0800
Received: by iijgw.fujixerox.co.jp; id TAA03484; Wed, 19 Feb 1997 19:17:40 +0900 (JST)
Received: from x.fujixerox.co.jp(129.249.118.101) by iijgw.fujixerox.co.jp via smap (V3.1)
	id xma003414; Wed, 19 Feb 97 19:17:15 +0900
Received: from mamimume.cps.iwa.fujixerox.co.jp (mamimume.cps.iwa.fujixerox.co.jp [129.249.42.8]) by ns1.fujixerox.co.jp (8.8.5/3.5W) with SMTP id TAA15551 for <tiff@sgi.com>; Wed, 19 Feb 1997 19:12:44 +0900 (JST)
Received: from augustus.cps.iwa.fujixerox.co.jp (augustus.cps.iwa.fujixerox.co.jp [129.249.42.162]) by mamimume.cps.iwa.fujixerox.co.jp (8.6.9+2.4Wb/3.5Wpl1-12/06/96-cps-mx) with ESMTP id TAA04700; Wed, 19 Feb 1997 19:16:23 +0900
Received: from ymiyata by augustus.cps.iwa.fujixerox.co.jp (SMI-8.6/3.3Wb-CPSnomx-1.1)
	id TAA28192; Wed, 19 Feb 1997 19:17:11 +0900
Date: Wed, 19 Feb 1997 19:17:11 +0900
Message-Id: <199702191017.TAA28192@augustus.cps.iwa.fujixerox.co.jp>
X-Sender: miyata@po.cps.iwa.fujixerox.co.jp
X-Mailer: Windows Eudora Pro Version 2.2-Jr2 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
To: tiff@sgi.com
From: MIYATA Yasuhiko <MIYATA.Yasuhiko@fujixerox.co.jp>
Subject: Can libtiff handle data in memory instead of file?
Cc: miyata@cps.iwa.fujixerox.co.jp
Sender: owner-tiff@relay.engr.SGI.COM
Precedence: bulk
Status: R

ALL, 
  I would like to ask you how to handle data in memory instead of file. I
understood about "Basic File Handling" thanks to good manual, "Using The
TIFF Library". However, in my project, I want to write a routine which
receive the pointer to the memory, in which the whole of a TIFF File has
been entered. That is, the routine itself has no way to know the name and
place of the file.
  Example code is below:


OutPutBitMapStructure *Read_Image_from_TIFF_File_on_memory(
			void*	TIFF_File_on_memory
			)
{

/* Ah! Can't use TIFFOpen */
/* TIFF* tif = TIFFOpen("I_Dont_know_the_name.tif", "r"); */

}


  Does anyone have a solution? Thank you for your kindness.

  If you feel shortage of information (and poverty of my English ability
:-), please tell me.



                                                             宮田 泰彦
                                                     (MIYATA Yasuhiko)
======================================================================

Fuji Xerox Co., Ltd.
HEP Development Department

Phone: +81-48-798-5111(ext.3413)

E-mail: Office: miyata@cps.iwa.fujixerox.co.jp (via Internet)
                MIYATA.Yasuhiko@fujixerox.co.jp (via Internet)
		Yasuhiko Miyata:PSD-IWA:Fuji Xerox (via XNS)
        Home:   GBA01635@niftyserve.or.jp


