``` File(file).inputStream().use { stream -> ...
# announcements
y
Copy code
File(file).inputStream().use { stream ->
            tempFile.createNewFile()

            FileOutputStream(tempFile).use { file -> stream.copyTo(file) } // works

             FileOutputStream(tempFile).use(stream::copyTo) // type mismatch
        }