# Ions: respond with file

**URL:** <https://forum.datomic.com/t/ions-respond-with-file/1244>\
**Category:** Datomic Cloud\
**Created:** [November 9, 2019, 12:50pm UTC](https://forum.datomic.com/t/ions-respond-with-file/1244 "2019-11-09T12:50:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tslocke](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/tslocke/32/233_2.png) [@tslocke](https://forum.datomic.com/u/tslocke)\
**Post date:** [November 9, 2019, 12:50pm UTC](https://forum.datomic.com/t/ions-respond-with-file/1244/1 "2019-11-09T12:50:08Z")

</div>

I’m serving a ring app via an ionized handler. One thing that I’ve only just got working was the serving of static assets. I jumped to the (wrong) conclusion that the files were not included in the deployed bundle. It turns out the issue was the ring response map had a java.io.File instead of a string as the `:body`. If I `(update response :body slurp)` all is well.

My question is, is there any way to return a file, or some other stream-like thing, to the next layer up in the stack? I feel like I don’t want to be reading potentially large files fully into memory like that. Maybe the same thing would just happen somewhere else so it’s not really a problem.

Tom

---

<div class="post-metadata">

**Author:** ![stu](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/stu/32/11_2.png) [@stu](https://forum.datomic.com/u/stu)\
**Post date:** [November 13, 2019, 6:24pm UTC](https://forum.datomic.com/t/ions-respond-with-file/1244/2 "2019-11-13T18:24:28Z")

</div>

Hi Tom,

You should be able to return an InputStream, per the [docs](https://docs.datomic.com/cloud/ions/ions-reference.html#web-ion).

Cheers,  
Stu
