Some time ago I used this line for getting byteArray:
val data = FileUtils.readFileToByteArray(file)
But right now I see this error:
Unresolved reference: readFileToByteArray
I saw this question but maybe we have some another comfort solution without adding sctrict conditions?