It's not possible to send binary data with the HttpSend activity
See original GitHub issueGithub issues should be used for bugs and feature requests. Use Stack Overflow for general “how-to” questions.
Version
Latest
Describe the bug
It’s not possible to send binary data with the HttpSend activity
To Reproduce
Steps to reproduce the behavior:
- Add a property to assign a binary value using an expression. You can use
base64ToBinary
as an example=base64ToBinary("<base 64 string>")
- Add a http send activity, try to use the above property in the body (using an expression) e.g.
=dialog.myBinaryData
- Observe the output, you will see that it just posts the value
Byte[]
.
Its because its converting the data to string content before posting here
Expected behavior
It should allow you to post binary content.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Sending binary data over http
HTTP is perfectly capable of handling binary data: images are sent over HTTP all the time, and they're binary. People upload and download...
Read more >POST a binary data file to 3rd party application
Hi, I am new to the REST API in Salesforce. I have to POST a binary csv file to the 3rd party application...
Read more >Sending and Receiving Binary Data - Web APIs | MDN
Sending binary data The send method of the XMLHttpRequest has been extended to enable easy transmission of binary data by accepting an ......
Read more >Failure to send binary data greather than 64KB using ...
I'm trying to send an image to an Azure vision endpoint. The data stored in the DB ... httpPost to send arbitrary data...
Read more >curl.1 the man page
Name. curl - transfer a URL. Synopsis. curl [options / URLs]. Description. curl is a tool for transferring data from or to a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jamesemann - Thank you for your patience. I was able to repro the issue you are encountering. I’ve been testing the above and have found that the values do appear to be in the created object. If you pass in an index value like
dialog.myBinaryData[0]
, it will return a value for that index location. You could convertmyBinaryData
to an array using something likesubArray
, which works, but then it is no longer a binary array which I’m guessing you want for theHttpSend
action.In the meantime, I need to test a few more scenarios and then connect with one of the devs on this. I will keep you posted when I know more. Based on the above info, if you should find a workaround, please let me know.
@jamesemann - Thank you for reporting this. I’ll investigate and let you know what I find.