# HTTP response with images as base64

**URL:** <https://community.appfarm.io/t/http-response-with-images-as-base64/363>\
**Category:** Ask the community\
**Created:** [March 17, 2023, 10:16am UTC](https://community.appfarm.io/t/http-response-with-images-as-base64/363 "2023-03-17T10:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lynfot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/lynfot/32/857_2.png) [@Lynfot](https://community.appfarm.io/u/Lynfot)\
**Post date:** [March 17, 2023, 10:16am UTC](https://community.appfarm.io/t/http-response-with-images-as-base64/363/1 "2023-03-17T10:16:02Z")

</div>

Hi.  
I am sending a web request with a response that contains several base64 images from an external database. I want to display all the images in a table.  
I like to keep these images in runtime. Predominantly to view them in Appfarm and send en web request if i want to delete any. For now my scope does not include to upload new images to above mentioned external database.  
I tried creating an object that has an ID as int and Base64 as string, and in my response I map the properties. As expected it shows “part” of the images, but its cropped as the base64 string only has somewhat 4000 characters and not the roughly 1 000 000 as it has in the database.

Any tips on how to fix this?  
I can if needed perform one web request per image. Further I guess the response have to be binded to a file or similar that can store the content.

Thanks for any help on this  
Regards Torgeir

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [March 20, 2023, 9:46am UTC](https://community.appfarm.io/t/http-response-with-images-as-base64/363/2 "2023-03-20T09:46:34Z")

</div>

Hi!

So, you have a web request, that returns a list of images as base64. But just to clarify: Is the problem that the base64 string property only holds 4000 characters, whereas 1000000 is sent in the web request? Sounds a bit strange, so could you verify that the input to Appfarm (i.e. the number of characters in the base64 property in the response from the web request) is actually different from the number of characters after the response has been mapped to the runtime property?

How is your setup / approach for displaying these base64 strings in the table? Are you creating files in Appfarm (with Create File action node, converting the base64 to arraybuffer etc), or are you using other third party code or libraries?

---

<div class="post-metadata">

**Author:** ![Lynfot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/lynfot/32/857_2.png) [@Lynfot](https://community.appfarm.io/u/Lynfot)\
**Post date:** [March 29, 2023, 8:19am UTC](https://community.appfarm.io/t/http-response-with-images-as-base64/363/3 "2023-03-29T08:19:51Z")

</div>

Hi.  
Never mind this post. Found out that the API did not send all the characters of the base64 string.  
When it was updated we got all the information and where able to display the images in Appfarm.  
Worked like a charm.

Thanks for responding.
