Pointers on uploading a jpg to a server

I’m having some issues uploading a jpg via a POST to a server (specifically Parse.com). The process seems to succeed, but the upload ends up corrupted. I can successfully do this process by hand using curl. Does Luna and Corona support image uploads using socket? [import]uid: 92150 topic_id: 29582 reply_id: 329582[/import]

I have been trying this exact thing for 3 days. The REST POST works fine and the file shows up on Parse. However, it is corrupted. I am using network.request…and putting the file contents in params.body.

local fileText = fileHandle:read( "\*a" ) params.body = fileText [import]uid: 39506 topic_id: 29582 reply_id: 122175[/import]

I have been trying this exact thing for 3 days. The REST POST works fine and the file shows up on Parse. However, it is corrupted. I am using network.request…and putting the file contents in params.body.

local fileText = fileHandle:read( "\*a" ) params.body = fileText [import]uid: 39506 topic_id: 29582 reply_id: 122175[/import]