Saving out multi-page TIFF files to a byte array in Java
Saving images to memory on the fly enhances the speed, usability and security of your client-server imaging application by eliminating the necessity of local drive access. Snowbound has expanded this capability in the RasterMaster imaging SDK to allow the saving of multi-page TIFF files to a byte array in Java. Here's an example:
Byte[] saveAs_Tiff_OutputByteArray(String filename)
{
Snowbnd snbd = new Snowbnd();
File input = new File(filename);
int pages = snbd.IMGLOW_get_pages(input.toString());
//Three times the size of the input image
byte imagebytearray[] = new byte[(int)(input.length()*3)];
int outputsize = 0;
for (int pg=0; pg


