# Sending a BLOB via API as a json field

**URL:** <https://community.appfarm.io/t/sending-a-blob-via-api-as-a-json-field/1475>\
**Category:** Ask the community\
**Created:** [October 28, 2024, 7:52pm UTC](https://community.appfarm.io/t/sending-a-blob-via-api-as-a-json-field/1475 "2024-10-28T19:52:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [October 29, 2024, 7:36am UTC](https://community.appfarm.io/t/sending-a-blob-via-api-as-a-json-field/1475/3 "2024-10-29T07:36:46Z")

</div>

Maybe this one is relavant?

> [@Sending a JSON-file as part of form-data in Web Request](https://community.appfarm.io/t/sending-a-json-file-as-part-of-form-data-in-web-request/1430/4):
>
> Hi! I have done something similar with an XML file once. It was done from a Service, but I believe the same should work in an App. Here are the steps (adjusted for the fact that you are producing a .json instead of a .XML file) Step 1: Create File Object (action node) Data Source: A runtime only data source (File Object Class) with cardinality one Source Type: Custom Custom File Content: a function returning the JSON structure as a string. E.g. return `{name: “Bob”}` File Name: Myfile.json M…

---

_[View the full topic](https://community.appfarm.io/t/sending-a-blob-via-api-as-a-json-field/1475)._
