Greetings and thanks in advance for your answers.
The case is as follows:
I am sending a form with some information, like this:
NAME: text
IMAGE1: text (result of using the function mime.b64)
MD5B64: text. MD5 hash of IMAGE1
The IMAGE1 field is the result of encoding an image in base64 (I have verified decoding it in corona and it works well)
The problem occurs when I receive the IMAGE1 field on the server. This field arrives well in length but NOT in content. The other fields arrive well.
NAME: Received OK
IMAGE1: not received OK
MD5B64: Received OK
Why IMAGE1 is not well transmitted?
The Code:
local headers = {} headers["Content-Type"] = "application/x-www-form-urlencoded" headers["Accept-Language"] = "en-US" headers["User-Agent"] = "App Corona SDK" local nombre="Peter Piedra" local body = "NAME="..nombre.."&IMAGE1="..myFoto64.."&PHONE=301-555-5555&MD5B64="..myencodedB64md5 local params = {} params.headers = headers params.body = body params.timeout = 35 url="https://-------.php" network.request( url, "POST", callback, params )