Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7861289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:39:13+00:00 2026-06-02T22:39:13+00:00

Working on iPhone app that takes a photo and then uploads it to a

  • 0

Working on iPhone app that takes a photo and then uploads it to a server. The server is in working condition, tested the same by uploading image from android app.

Below is the code snippet

NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@",   FORM_BOUNDARY];

NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
[request setHTTPShouldHandleCookies:NO];

[request setHTTPMethod:@"POST"];

[request setValue:contentType forHTTPHeaderField:@"Content-Type"];

[request setValue:[NSString stringWithFormat:@"%d", [data length]] forHTTPHeaderField:@"Content-Length"]

[request setHTTPBody:data];` 
////

But i get following response from the sever

HTTP Status 600 - java.lang.NullPointerException

type Status report

message java.lang.NullPointerException

description Cannot find message associated with key http.600

Apache Tomcat/6.0.18
////

I suppose error 600 might be user defined.
Is there some tag being missed?
Please suggest.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:39:15+00:00Added an answer on June 2, 2026 at 10:39 pm

    As you wrote it is server error: HTTP Status 600 - java.lang.NullPointerException.

    Moreover http status code >= 400 means that there are now problems in your request but there are problems on server side.

    If you are server admin – try to debug server, for example, print post arguments.

    I don’t see problems in posted obj-C code.

    P.S. I could just advice you to use highly populated ASIHttpRequest framework. It could handle file upload by itself. It is very easy and safe to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an iPhone app that requires a basic client/server interaction model. For
I'm working on an iPhone app that performs some communication with the server to
I'm working on an iPhone App that uses the camera to take pictures, then
I'm working on an iPhone app that gets a number of objects from a
I'm working on an iPhone app that offers the user the opportunity to send
I'm working in a iPhone app that needs to send a array as a
The iPhone app that I am working on requires GET calls to a 3rd
I'm working on a very simple iPhone app, that in the end will have
I've been working on and off with a team that's developing an iPhone app.
I'm working on a navigation-based iPhone-only app that serves two main purposes: One, to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.