title: How to replace blocking code for reading bytes in Kotlin
body: <p>I have <code>ktor</code> application which expects file from multipart in code like this:</p>
  
  <pre><code>multipart.forEachPart { part -&gt;
    when (part) {
      is PartData.FileItem -&gt; {
        image = part.streamProvider().readAllBytes()
      }
      else -&gt; // irrelevant
    }
  }    
  </code></pre>
  
  <p>The Intellij IDEA marks <code>readAllBytes()</code> as inappropriate blocking call since ktor operates on top of coroutines. How to replace this blocking call to the appropriate one?</p>