can http request send an image to server?

i see the normal (non-corona) lua socket has this feature… is it available in corona?

http://w3.impa.br/~diego/software/luasocket/smtp.html

[lua] body = ltn12.source.chain(
ltn12.source.file(io.open(“image.png”, “rb”)),
ltn12.filter.chain(
mime.encode(“base64”),
mime.wrap()
)[/lua]

thanks
j [import]uid: 6645 topic_id: 5489 reply_id: 305489[/import]

(specifically though, i’m not trying to email it, I’m trying to post it to a PHP script on my webserver, where I would then decode it back to an image file) [import]uid: 6645 topic_id: 5489 reply_id: 18539[/import]

All lua socket functionality is included in corona. [import]uid: 3 topic_id: 5489 reply_id: 18662[/import]

great thanks, sean.

just got the windows corona simulator to send me an email with an image attached from my local filesystem. next step is to try it with a screen capture and a real device!!

:slight_smile:

regards
j

[import]uid: 6645 topic_id: 5489 reply_id: 18876[/import]