# What is the correct solution to show image files

**URL:** <https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360>\
**Category:** General\
**Created:** [8 May 2021 11:14 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360 "2021-05-08T11:14:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpbillund](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tpbillund/32/37410_2.png) [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Post date:** [8 May 2021 11:14 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/1 "2021-05-08T11:14:21Z")

</div>

Hi.

Im trying to show a file:// but can't get it to work.  
If I add this link to my browser app, I see an image  
"file://mynas/docker/frigate/media/clips/foran-1620191711.030997-b2cpcd.jpg"

But if using this flow I can't get the image to show. (My docker folder is added to a SMB with username and password)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e18e2f360f77804cd94dd8283065259db8cb8075.png)

But if I then changes it to use a http from then net, it works

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c0a779fecac4de61d3585aae645b7c0b3547eb12.jpeg)

How can I show the file:// or show the file from my SMB share?  
Say if you need some info 🙂

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 May 2021 11:22 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/2 "2021-05-08T11:22:14Z")

</div>

If you have a mount point in your docker, then try using a normal file path (drop the `file://`)

Also, as a basic test, you could use an intect -\> file in node -\> debug node, to verify the file can be accessed.

---

<div class="post-metadata">

**Author:** ![tpbillund](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tpbillund/32/37410_2.png) [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Post date:** [8 May 2021 11:46 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/3 "2021-05-08T11:46:28Z")

</div>

> [@tpbillund](#):
>
> /media/clips/foran-1620191711.030997-b2cpcd.jpg

Hi @Steve-Mcl  
I do have a mount point in my Node-Red docker to my FriGate docker, and I get the image name, but no visual image is showed..

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/dbacb77a65b534bfbdf5b671d900f9d259a7de6f.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 May 2021 11:47 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/4 "2021-05-08T11:47:35Z")

</div>

Did you set the file node to return a buffer?

---

<div class="post-metadata">

**Author:** ![tpbillund](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tpbillund/32/37410_2.png) [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Post date:** [8 May 2021 14:06 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/5 "2021-05-08T14:06:45Z")

</div>

Hi @Steve-Mcl  
Thx. yes now I have added the "Single buffer object".

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/1998e476433ee3c855e3a97354d9d4352f91191f.png)

Will this mean that I in a "telegram" sender node can add the path to a function like:

```auto
var payload = { 
    chatId: xxxxxxxxx,
    type: "photo",
    content: "/frigate/foran-1620191711.030997-b2cpcd.jpg" };
    
return {payload};

```

UPDATE!!  
Yes it will.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 May 2021 14:07 UTC](https://discourse.nodered.org/t/what-is-the-correct-solution-to-show-image-files/45360/6 "2021-05-22T14:07:25Z")

</div>

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