[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: Sending binary data to a web service



On 10/6/16, 10:46 PM, Thomas Raddatz wrote:

a) You can create a MIME message and send your binary data as an
attachment. Depending on the size of the binary data, it might be
better to use a stream file to prepare the post data aka the MIME
message. That is where http_url_post_stmf() comes into play.

b) You can encode your binary data to Base64 and send the Base64
string as the value of an XML element or (in your case) assign the
Base64 string to a Json attribute.


Ok. Here is what we know, so far:

1. The binary data is in the form of ZIP files, uploaded to the IFS via a proprietary protocol.

2. We now have web services that can accept binary files, but so far, all I've been able to call them from is the Swagger Playground, and unlike every other web service I've tried through it, the Playground shows absolutely nothing about what's really going on. I've passed on the gist of what you said about MIME or Base64 being known ways to do it, and asked the web service developer to let me know what's actually being sent, and in what form, out of the Playground.

--
JHHL
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------