title: Http Post both string and binary parameters in Java
body: <p>I wish to post a form in java that has both string and binary parameters e.g.</p>
  
  <p>name=sam&amp;photo=&lt;...binary data...></p>
  
  <p>Unfortunately the available documentation only covers uploading either strings or binary data separately.  How can I combine the two?</p>