Posting binary data

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Nov 17 14:15:58 EST 2010


Hi Devin,

Before using the post command, execute the following line:

set the httpHeaders to "Content-type: application/binary" & cr & \
"Content-Transfer-Encoding: binary" & cr & \
"Content-Length: <length of your data in bytes>"

Let us know if this works for you.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Follow Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions)

On 17 nov 2010, at 20:04, Devin Asay wrote:

> Hi all,
> 
> One of my students is doing a Rev project in which he needs to post binary data (a .mov file, in this case) to a web server. I've never done this, but I'm told that in a standard web form one sets the enctype attribute of a form input to indicate that the data being posted is binary.
> 
> How would you do this using a Rev--errr--LiveCode post statement?
> 
> Thanks
> 
> Devin




More information about the use-livecode mailing list