Server is Unix and client in Windows. While reading am using encoding the file and agin if I encode it with same then the file become old type as in the server rite ?.
After storing that file in windows and then sending it to printer as below.
File pdfFile = new File(arg);
is = new BufferedInputStream(new FileInputStream(pdfFile));
DocAttributeSet das = new HashDocAttributeSet();
Doc doc = new SimpleDoc(is, flavor, das);