title: static asset serving from absolute path in play framework 2.3.x
body: <p>I need to serve image files from an absolute path that is not on the classpath. When I use <code>Assets.at(path, file)</code>, it only searches inside <code>/assets</code>. I have mapped the url onto a controller function like the following:</p>
  
  <pre><code>public static Action&lt;AnyContent&gt; getImage(String imageId) {
      String path = PICTURE_UPLOAD_DIR; // here this path is absolute
      String file = imageId + ".png";
      return Assets.at(path, file);
  }
  </code></pre>
  
  <p>How can I make this work?</p>
  
  <p>NOTE: The reason to make images served using <code>Assets</code> is because of the auto etagging feature that make easy to send http 304 not modified. It seems that there is no auto etagging feature that play provides independently from <code>Assets</code> </p>