Hi all, I'm a new user!
I'm working with As400 and java using jtopen.
With this code:
PrintObjectTransformedInputStream is = spoolFile.getTransformedInputStream(printParms);
BufferedInputStream bufIn = new BufferedInputStream(is);
BufferedOutputStream bufOut = new BufferedOutputStream(new FileOutputStream("c:/x.tif"));
int c;
while ((c = bufIn.read()) != -1) {
bufOut.write(c);
}
bufIn.close();
bufOut.close();
I'm getting a tiff stream and then write it to a file. The tiff stream is in Big endian format, but I need a tiff in Little endian format.
How can I convert the stream from Big endian to Little endian?
Thanks