java - Spring FileInputStream buffer sporadically contains incorrect characters -
i using fileinputstream in spring mvc read chunk of file byte[] buffer.
i write (using filecopyutils.copy) buffer response stream.
i notice response written stream (what user receives) looks similar file, there blemishes.
- before file data, there '2000' (without quotes) @ top of file.
- this '2000' string sporadically present throughout file
- the file ends '0'
none of these exist in original file being read from. can me rid of these have accurate output stream?
here's example of incorrect ouput looks like:
2000 line of data line of data line of data line of data line of data line of data line o 2000 f data line of data 2000 line of data line of data 0
it should be:
a line of data line of data line of data line of data line of data line of data line of data line of data line of data line of data
thanks!
my guess stream specified chunked transfer encoding , reading is
Comments
Post a Comment