Game Development Community

Getting Byte data from an image

by Pete Michaud · in Torque Game Builder · 11/20/2009 (9:20 am) · 1 replies

I'm trying to figure out a complete solution here -- this is continuing from my question here:

http://www.garagegames.com/community/blogs/view/12262/2#comment-144669

about sending image data via http.

Is there a way to open an image file and encode the bytes so I can send them over http to a web service?

#1
11/20/2009 (11:14 am)
I would expect a simple POST request to work for uploading binary data, but as others have mentioned, TorqueScript *might* mangle the data. POST means you don't have to do any special escaping, though. I'm not sure how you build a multipart request with Torque's HTTPObject, but it might not be hard after all since HTTP is all text :)