title: How can I determine if Akka bytestring contains a given substring?
body: <p>Given a sample text file, how can one use Akka ByteStrings and either convert it to plain text or run a "find" on the ByteString itself? </p>
  
  <pre><code>            val file = new File("sample.txt")
              val fileSource = SynchronousFileSource(file, 4096)
              val messageStream = fileSource.map(chunk =&gt; sendMessage(chunk.toString()))
              messageStream.to(Sink.foreach(println(_))).run
  </code></pre>
  
  <p>The "toString()" functionality above literally spits out a string containing the text "ByteString", followed by bytes represented as integers. For example: </p>
  
  <pre><code>            chunk.toString() ==&gt; "ByteString(111, 112, 119, 111)"
  </code></pre>