# CAM Picture in Template node

**URL:** <https://discourse.nodered.org/t/cam-picture-in-template-node/77786>\
**Category:** Dashboard\
**Created:** [21 April 2023 10:01 UTC](https://discourse.nodered.org/t/cam-picture-in-template-node/77786 "2023-04-21T10:01:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![domi](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@domi](https://discourse.nodered.org/u/domi)\
**Post date:** [21 April 2023 10:01 UTC](https://discourse.nodered.org/t/cam-picture-in-template-node/77786/1 "2023-04-21T10:01:59Z")

</div>

Hi  
If i use this URL:  
[http://guest@192.168.1.198/cgi/jpg/image.cgi](http://guest@192.168.1.198/cgi/jpg/image.cgi)  
a picture of mic cam appears in the browser.

If i use  
"\< iframe src="[http://guest@192.168.1.198/cgi/jpg/image.cgi](http://guest@192.168.1.198/cgi/jpg/image.cgi)"\> "  
in the template node, the frame is empty.

I need the HTTP code to have the CAM Picture in the template node.

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [21 April 2023 10:07 UTC](https://discourse.nodered.org/t/cam-picture-in-template-node/77786/2 "2023-04-21T10:07:57Z")

</div>

Open the developer panel of your browser and check for errors in the console. It might be a simple html syntax error or possibly a cors violation.

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [21 April 2023 16:33 UTC](https://discourse.nodered.org/t/cam-picture-in-template-node/77786/3 "2023-04-21T16:33:58Z")

</div>

I am not sure if an iframe can load an image directly. Why not use the img tag instead?

---

<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:** [5 May 2023 16:33 UTC](https://discourse.nodered.org/t/cam-picture-in-template-node/77786/4 "2023-05-05T16:33:59Z")

</div>

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