I have a camel route having SFTP location as the input endpoint. I have put streamDownload=true in the input url. The files in my input location are gzipped.
I am using the following code to create a bufferedReader from the inputStream that I get from the exchange. (If I do a getClass() of the inputStream, it gives a ChannelSftp$2). Reader decoder = null; BufferedReader bufferedReader; try { GzipInputStream zis = new GZIPInputStream(is); decoder = new InputStreamReader(zis, ASCII_ENCODING_CHARSET); bufferedReader = new BufferedReader(decoder); } catch (Exception encodingEx) { logger.info("Exception: "+e); } Using this bufferedReader I read some part of the file. Now I again want to read the file from the top. Mark and reset does not seem to work properly, so I want to close and reopen this bufferedReader. But if I try to execute the above code again, it throws EOFException. Can you please help me with this issue? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SFTP-stream-download-tp5740106.html Sent from the Camel - Users mailing list archive at Nabble.com.