Streaming byte array - WeOnlyDo Discussion board

Streaming byte array (wodHttpDLX)

by Jasmine, Thursday, August 24, 2017, 21:59 (91 days ago) @ AtlantaGator

Hi.

This should be pretty much straightforward, there's no stream of data, you can fill Request.Body with contents of stream. I assume stream isn't too large (in terms of megabytes) anyway.

So, something like this should do

Http1.Request.Headers.Add("Content-type: application/x-www-form-urlencoded")
Http1.Request.Body = "...put everything from the stream here"..
Http1.Post(URL)...

I think you don't need anything else. By default wodHttpDLX uses UTF8, but you can also specify it in Http1.Request.Charset if you wish, or you can write directly to Http1.Request.Filename (since Body actually internally reads/writes to it).

Can you try above?

Jasmine.


Complete thread: