title: How to upload image to server from gallery as JSON on iOS
body: <p>How can I upload an image to a server from the gallery on iPhone as JSON? I tried the following:</p>
  
  <pre><code>[Loading startLoading:YES];
  NSString *urlString = [NSString stringWithFormat:@"http://railsboxtech.com/singing/jsn_song/register_response.php?accesstoken=%@",Access_Token];
  //username, password, name, email, country
  NSString *parameter = [NSString stringWithFormat:@"username=%@&amp;password=%@&amp;fname=%@&amp;email=%@&amp;lname=%@&amp;btnImage4=%@",userField.text,passField.text,fnameField.text,emailField.text,lnameField.text,btnImage4];
  NSConnection *conn = [[NSConnection alloc] initWithDelegate:self];
  [conn sendRequest:urlString withParaMeter:parameter withMethod:@"POST" withTag:1];
  [conn startAsynchronousRequest];
  </code></pre>