# Store data in files. Where?

**URL:** https://discuss.tryton.org/t/store-data-in-files-where/3063
**Category:** Developer
**Created:** [July 23, 2020, 7:13pm UTC](https://discuss.tryton.org/t/store-data-in-files-where/3063 "2020-07-23T19:13:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![banknote](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/banknote/32/980_2.png) [@banknote](https://discuss.tryton.org/u/banknote)
#### Post date: [July 23, 2020, 7:13pm UTC](https://discuss.tryton.org/t/store-data-in-files-where/3063/1 "2020-07-23T19:13:01Z")

</div>

Where and how you would recommend storing data as files (I will download some, based on field’s data)? What path?  
I don’t want to store 4-5Mb data files in PostgreSQL tables.  
I am developing a web-based Tryton in docker.

Constantine.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 24, 2020, 8:32am UTC](https://discuss.tryton.org/t/store-data-in-files-where/3063/2 "2020-07-24T08:32:53Z")

</div>

You can use the `Binary` field with a [`file_id`](https://docs.tryton.org/projects/server/en/latest/ref/models/fields.html#trytond.model.fields.Binary.file_id). This way the content will be stored in [`[database] path`](https://docs.tryton.org/projects/server/en/latest/topics/configuration.html#path).

---

<div class="post-metadata">

### Author: ![banknote](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/banknote/32/980_2.png) [@banknote](https://discuss.tryton.org/u/banknote)
#### Post date: [July 24, 2020, 2:30pm UTC](https://discuss.tryton.org/t/store-data-in-files-where/3063/3 "2020-07-24T14:30:09Z")

</div>

Thank you,  
will try tonight.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [August 23, 2020, 2:41pm UTC](https://discuss.tryton.org/t/store-data-in-files-where/3063/4 "2020-08-23T14:41:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
