# PDF file with junk characters

**URL:** <https://discourse.nodered.org/t/pdf-file-with-junk-characters/79644>\
**Category:** General\
**Tags:** http-request, pdf, http-in\
**Created:** [8 July 2023 09:06 UTC](https://discourse.nodered.org/t/pdf-file-with-junk-characters/79644 "2023-07-08T09:06:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DineshYamali](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dineshyamali/32/80535_2.png) [@DineshYamali](https://discourse.nodered.org/u/DineshYamali)\
**Post date:** [8 July 2023 09:06 UTC](https://discourse.nodered.org/t/pdf-file-with-junk-characters/79644/1 "2023-07-08T09:06:49Z")

</div>

I have a requirement, where I need to expose an API to receive a PDF and send it to another end user API.

I am able to achieve below

- Able to receive file (PDF) from source and store it locally (in node-red) using http in & a function node.
- Able to send locally stored file to end user API using http request
- Locally stored PDF file in expected format.

Problem:

- PDF file which received at the end user is full of Junk characters.

Am clueless what caused these junk characters and am just beginner to node-red.

Appreciate your response.

---

<div class="post-metadata">

**Author:** ![DineshYamali](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dineshyamali/32/80535_2.png) [@DineshYamali](https://discourse.nodered.org/u/DineshYamali)\
**Post date:** [8 July 2023 17:57 UTC](https://discourse.nodered.org/t/pdf-file-with-junk-characters/79644/2 "2023-07-08T17:57:21Z")

</div>

Able to resolve, solution as below.  
[flows-4.json](https://discourse.nodered.org/uploads/short-url/aZ8jl9sV5Bczkf7oVX4KzLT6YM.json) (641 Bytes)

---

<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 July 2023 17:57 UTC](https://discourse.nodered.org/t/pdf-file-with-junk-characters/79644/3 "2023-07-22T17:57:57Z")

</div>

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