Exception stating “ Resetting to invalid mark ” comes while marking an inputStream and resetting it, for Large files.?
问题 I am using InputStream object to calculate Md5 of some file. I mark the stream Later I reset the stream. However for large files the following exception comes... inStreamLatestFile.mark(0); checkSumCalculated = MD5CheckSumCalculator.calculateMD5CheckSum(inStreamLatestFile); inStreamLatestFile.reset(); The exception .Md5ValidationAggrStrat ||**Error in calculating checksum:: java.io.IOException: Resetting to invalid mark** ||java.io.IOException: Resetting to invalid mark ||at java.io