title: Play-mini: how to return an image
body: <p>I'm trying to serve an image from a <a href="https://github.com/typesafehub/play2-mini" rel="nofollow">play-mini</a> application.</p>
  
  <pre><code>object App extends Application {
    def route = {
      case GET(Path("/image")) =&gt; Action { request =&gt;
        Ok( Source.fromInputStream(getClass.getResourceAsStream("image.gif")).toArray ).as("image/gif")
      }
    }
  }
  </code></pre>
  
  <p>Unfortunately, this does noe work :) I get the following error</p>
  
  <pre><code> Cannot write an instance of Array[Char] to HTTP response. Try to define a Writeable[Array[Char]]
  </code></pre>