AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.01.05 16:18 "Open tiff in memory", by Rocky Pulley
2006.01.05 17:17 "Re: Open tiff in memory", by Bob Friesenhahn
2006.01.05 17:52 "Re: Open tiff in memory", by Edward Lam
2006.01.05 17:18 "Re: Open tiff in memory", by Jeff Breidenbach
2006.01.05 17:38 "Re: Open tiff in memory", by Frank Warmerdam

2006.01.05 17:52 "Re: Open tiff in memory", by Edward Lam

> > Hey, does anyone know how to use something like TIFFOpen from a byte 
> > array?  I already have the TIFF loaded in memory and I'm currently 
> > writing to a temp file to use TIFFOpen.
> 
> Yes.  See the TIFFClientOpen() function.  It allows you to define a set 
> of functions for doing libtiff I/O in an arbitrary fashion.  So you can 
> do I/O to memory by supplying a set of functions to do so.

If you're using C++, then this is already done for you in tif_stream.C. I 
believe it's turned off right now by default in the build system due to ABI 
issues. So if you compile libtiff with it enabled, you can then run create a 
ostrstream our of your buffer which you then pass to TIFFStreamOpen().

-Edward