0

I have a multipage TIFF file, and each page of this will be extracted in to memorystream passed to another method as a collection of stream. At the receiving end is it possible to combine these streams and convert it as a TIFF file itself. When I tried to convert the file in to a byte[] array and after compression,when created as a TIFF again, the file gets corrupted. Is there any way to achieve this (combining multiple streams and converting to a file).

smashstar
  • 81
  • 1
  • 16
  • 1
    I think a multipage TIFF file does not exist simply of `[pagedata][pagedata][pagedata]`, but more like `[header describing pages][pagedata][pagedata][pagedata]`. You'll probably need to write a valid container/header, as you can't just concatenate the bitmap data. Can't you use a library? – CodeCaster May 16 '13 at 10:04
  • Thanks for that. Is there any ready to use library available for that? – smashstar May 16 '13 at 16:31
  • 1
    See http://stackoverflow.com/questions/398388/convert-bitmaps-to-one-multipage-tiff-image-in-net-2-0 for example. Don't know of any libraries with this capability, but if they exist they shouldn't be hard to find. – CodeCaster May 16 '13 at 16:51

0 Answers0