Why Spring kills file's encoding during downloading?
I have the following code:
@Throws(IOException::class)
private fun convertInputStreamToString(`is`: InputStream): String? {
val result = ByteArrayOutputStream()
val buffer = ByteArray(DEFAULT_BUFFER_SIZE)
var length: Int
while (