I have a multi-page tiff created on TiffBitmapEncoder te= new TiffBitmapEncoder()
; (using CCITT4)
Then I copy this to a memory stream
Say MemoryStream ms = new MemoryStream()
using ts.save(ms);
Now this memory stream has a tiff image of many pages. I just need to write it to to tiff file. I don't want to write it again through Bitmap.Save(location,coded,parameters) as using (long)EncoderValue.CompressionCCITT4
produces error on 2003 windows machines.
I tried resetting ms to position 0 and writing to a Image and save to an imagelocation. But this writes only 1 page tiff.
How can I do this?