title: How to send file content as string in data raw payload using cURL post request
body: <p>Below is my curl query to send the post request</p>
  <p>in the &quot;payload&quot; key of the json data i need to send file that is 1 MB of text data as values. Instead of copy past the whole text as string this should take the text as string from locally saved file in my drive.</p>
  <pre><code>curl --location --request POST 'http://localhost:8080/test' \
  --header 'Content-Type: application/json' \
  --data-raw '{
              &quot;fileFormat&quot;:&quot;csv&quot;,
              &quot;version&quot;:&quot;v1&quot;,
              &quot;payload&quot;:&quot;&lt;local file content should come here&gt;&quot;,
  
  } 
  
  </code></pre>