- My goal: I want to put base64data from Retool Storage in REST API with type Binary.
- Issue: I don't know what type of data I need to put in the body
- Screenshot:
HI there @yeftanma,
Have you tried with
{
name: storageQuery.data.name,
data: storageQuery.data.base64Data
}
You may want to double-check:
- If Epigeon expects multipart form-data, you may need to switch the body type from
binary
toform-data
and attach the decoded data with the correct content-type header. - If the API directly accepts binary stream, ensure the
Content-Type
header matches (text/csv
orapplication/octet-stream
) and send only the raw binary decoded from base64.
Hope this helps!
Epigeon directly accepts binary stream text/csv
. Anyway, I've tried with your suggestion and it did not work. It said error expected type object but provided value is string.
Hey @yeftanma,
So the linting error may be a bug. However I just remembed also that within API blocks we need to use curly brackets, so try changing it to
{
name: {{ storageQuery.data.name }},
data: {{ storageQuery.data.base64Data }}
}
Try running it even if you see that error.
Working fine. Thanks a lot @MiguelOrtiz!
1 Like