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 6808575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:58:23+00:00 2026-05-26T19:58:23+00:00

i have a image to post web service and i need to convert UIImage

  • 0

i have a image to post web service and i need to convert UIImage / NSData to binary string.
how i can do that?

Web service doesn’t accept form data submission.

[urlRequest addData:xdata]

doesn’t work.

Thank you & Best.

  • 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-05-26T19:58:24+00:00Added an answer on May 26, 2026 at 7:58 pm

    You would want to make that HTTP request using POST and append to the body of the request the binary data of your photo.

    To do so:

    NSURL * requestUrl = [NSURL URLWithString:...];
    NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:requestUrl];
    
    request.HTTPMethod = @"POST";
    request.HTTPBody = [NSData dataWithBytes:xData length:xDataLen];    
    [request setValue:[NSString stringWithFormat:@"%d",xDataLen] forHTTPHeaderField:@"Content-Length"];
    [request setValue:@"your/contenttype" forHTTPHeaderField:@"Content-Type"];
    [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
    

    You should change xData, xDataLen and "your/contentype" with your real data.

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

Sidebar

Related Questions

I have a WCF web service called Palladium that is created as a project
http://demo.thethemefoundry.com/traction/#post-183 Which wordpress plugin is this, to have post image on the left side
I have image data and i want to get a sub image of that
I have: image 1:Many imageToTag Many:1 tag I want to issue a query that
I my working on the site that will have image gallery. Designer idea was
I have developed an image uploading application that uses Flash to load an image,
I have written a web service to resize user uploaded images and all works
I have been trying to send .png images from iPhone to web service. I
So the gist is that I need to post XML data query to a
I have a java application that will take the image as an input and

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.