# Image (from attachment) in report

**URL:** <https://discuss.tryton.org/t/image-from-attachment-in-report/4714>\
**Category:** User\
**Created:** [October 19, 2021, 5:55pm UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714 "2021-10-19T17:55:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [October 19, 2021, 5:55pm UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714/1 "2021-10-19T17:55:18Z")

</div>

Hello everyone,  
Is it possible to load an image (attached to a shipment) in the shipment report (recalling the image by its name)?

---

<div class="post-metadata">

**Author:** ![hodeinavarro](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/hodeinavarro/32/1185_2.png) [@hodeinavarro](https://discuss.tryton.org/u/hodeinavarro)\
**Post date:** [October 19, 2021, 6:34pm UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714/2 "2021-10-19T18:34:15Z")

</div>

You can check out the example given in [relatorio 0.10.1 documentation](https://relatorio.readthedocs.io/en/latest/indepthexample.html?highlight=frame#a-not-so-real-example).

You have to create a frame and define the field

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [October 21, 2021, 9:35am UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714/3 "2021-10-21T09:35:11Z")

</div>

After some testing, I think it is not possible to see an attachment (of a shipment) in its report …

---

<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:** [October 21, 2021, 9:48am UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714/4 "2021-10-21T09:48:30Z")

</div>

I do not see why. The only difficulty is to get an attachment that is an image. This will probably require to define an function field of type `Many2One` that returns the proper attachment.  
But as attachments are unclassified data, it is often better to add a specific field to the main record to store the qualified data.

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [October 21, 2021, 9:57am UTC](https://discuss.tryton.org/t/image-from-attachment-in-report/4714/5 "2021-10-21T09:57:24Z")

</div>

I agree with you.  
My question is how to insert an image (from an attachment) without editing the Tryton code (via the report only).
