1997.02.19 10:17 "Can libtiff handle data in memory instead of file?", by Miyata Yasuhiko

1997.02.19 10:17 "Can libtiff handle data in memory instead of file?", by Miyata Yasuhiko

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