How to put HTTP multipart request body together in order to send some string parameters along with image
问题 I'm trying to build http request body which will send image along with some parameters from android device to server. For now sending an image works like it should, and this is the part of the code which bulds http request body for that purpose conn.setDoInput(true); // Allow Inputs conn.setDoOutput(true); // Allow Outputs conn.setUseCaches(false); // Don't use a Cached Copy conn.setRequestMethod("POST"); conn.setRequestProperty("Connection", "Keep-Alive"); conn.setRequestProperty("ENCTYPE",