# HTML code to transfer images to Node-Red http-request node

**URL:** <https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187>\
**Category:** General\
**Tags:** http-request\
**Created:** [8 August 2022 17:28 UTC](https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187 "2022-08-08T17:28:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 August 2022 22:21 UTC](https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187/5 "2022-08-08T22:21:22Z")

</div>

> [@pcborges](#):
>
> What I am looking for is the client html side of it.

From that post...

> [@HTTP endpoint for image payloads](https://discourse.nodered.org/t/http-endpoint-for-image-payloads/42598/4):
>
> Ok, so since this is all client side, you need to post the data back to your 2nd endpoint. for this I simply used `fetch`. Also, as that P5 library generates its results on a canvas, you need to call `.toDataURL()` on the canvas to get the base64 data

Did you import the flow & look in the template?

---

_[View the full topic](https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187)._
