# Save images under different names usb camera

**URL:** https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220
**Category:** General
**Created:** [21 February 2019 12:28 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220 "2019-02-21T12:28:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ZenoVD](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@ZenoVD](https://discourse.nodered.org/u/ZenoVD)
#### Post date: [21 February 2019 12:29 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/1 "2019-02-21T12:29:00Z")

</div>

Hello, i am trying so save images my usb camera made under a different name, at the moment when a new image arrives it replaces the image made before that, does anyone know how i can make every picture save under a different name?

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/103ee5ba4c261e6cb47d1515139cd220f3d0e3e1.png)

---

<div class="post-metadata">

### Author: ![ZenoVD](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@ZenoVD](https://discourse.nodered.org/u/ZenoVD)
#### Post date: [21 February 2019 12:29 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/2 "2019-02-21T12:29:40Z")

</div>

This is a screenshot of my usb camera node settings ![Screenshot_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b0e458669587dc36f503f5d1bf99c9308518da5c.png)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [21 February 2019 15:30 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/3 "2019-02-21T15:30:42Z")

</div>

Can you sent the node (what node is it?) the file name? Many nodes allow the ncoming msg to set a variable name - you would have to blank out the `File Name` option in the node.

Also what are the other options the node offers?? (read the info tab for the node)

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [21 February 2019 15:41 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/4 "2019-02-21T15:41:02Z")

</div>

Alternatively if the node outputs the name of the file you could then rename it with an exec node

---

<div class="post-metadata">

### Author: ![ZenoVD](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@ZenoVD](https://discourse.nodered.org/u/ZenoVD)
#### Post date: [21 February 2019 15:51 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/5 "2019-02-21T15:51:33Z")

</div>

This is the node I used: [https://flows.nodered.org/node/node-red-contrib-node-webcam](https://flows.nodered.org/node/node-red-contrib-node-webcam)

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [21 February 2019 15:54 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/6 "2019-02-21T15:54:59Z")

</div>

what are the options under “file mode” if it can output the image as a buffer you could then use the file out node to write it to whatever file name you want

---

<div class="post-metadata">

### Author: ![ZenoVD](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@ZenoVD](https://discourse.nodered.org/u/ZenoVD)
#### Post date: [21 February 2019 16:46 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/7 "2019-02-21T16:46:14Z")

</div>

Yes i can select buffer, how exactly does this file out node work?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [21 February 2019 17:31 UTC](https://discourse.nodered.org/t/save-images-under-different-names-usb-camera/8220/8 "2019-02-21T17:31:01Z")

</div>

The info panel on the Right Hand side gives a very good explanation.
