viralshah
10/21/2020, 9:11 PMval lines: MutableList<String> = mutableListOf()
// Read in another stream and write a chunk of lines to the above list
val stringToWrite = lines.join { "" }
Now here is where I need help, should I be using stringToWrite.byteInputStream()
or stringToWrite.toByteArrray()
?
I know that I have to use a GZipOutputStream somewhere but I needed a bit of help lining up all the pipes so that I can give it to the Amazon S3 client.
Any ideas? Thanks