String pathToOurFile = \"/sdcard/DCIM/Camera/foto.jpg\"; String urlServer = \"http://server/upload.php\"; String lineEnd = \"\\r\\n\"; String two
for each parameter, where paramName=paramData:
outputStream.writeBytes(twoHyphens + boundary + lineEnd); outputStream.writeBytes('Content-Disposition: form-data; name="paramName"' + lineEnd); outputStream.writeBytes(lineEnd); outputStream.writeBytes(paramData);