Posting binary data

Devin Asay devin_asay at byu.edu
Wed Nov 17 14:19:42 EST 2010


On Nov 17, 2010, at 12:15 PM, Mark Schonewille wrote:

> 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.

Thanks, Mark. I'll have my student try that and report back.

Devin

> 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the Use-livecode mailing list