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

  • Home
  • SEARCH
  • 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 7582875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:32:38+00:00 2026-05-30T18:32:38+00:00

I am using a synchronous request to send an image as hexa string to

  • 0

I am using a synchronous request to send an image as hexa string to a server. I am not able to hit the server if I send hexa string of images of resolution 200×150 but I am able to get response from server if send the same image at a lower resolution like 100×75.

NSMutableString *urlString = [NSMutableString    stringWithString:@"http://xxxxxx:8080/GeoLocationSave/ReceiveImage"];
UIImage *sample = [UIImage imageNamed:@"ip_addphoto_100x75@2x.png"];
NSData *imgData = UIImagePNGRepresentation(sample);
[urlString appendString:@"?image="];
[urlString appendString:hexImage];
NSError *error;
error=nil;
NSURLResponse *response;
response=nil;
NSURL *url = [NSURL URLWithString:urlString];
NSData *urlData = [NSURLConnection sendSynchronousRequest:[NSURLRequest requestWithURL:url] returningResponse:&response error:&error];

The length of urlData is 0 for a higher resolution image. Log value of imageData for both images are perfect. I don’t see any entry point log in server for higher resolution image.

  • 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-30T18:32:39+00:00Added an answer on May 30, 2026 at 6:32 pm

    Hi guys i found what mistake i was making. I was too ridiculous to push data as large as 8000 bytes through HTTP Get method. I noted that if the url length is greater than 8000 bytes it doesn’t hit the server. So i just moved over to HTTP POST method as in case if image taken through camera (which can can easily get past the 8000 bytes length) is to be sent to server it wouldn’t hit the server.

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

Sidebar

Related Questions

I'm using a synchronous wininet request and calling InternetReadFileEx() with the IRF_NO_WAIT flag, but
I need to make a synchronous request to the last.fm API, but when I
I've got the following synchronous request... var xhr = new XMLHttpRequest(); xhr.open(GET,uri,false); xhr.send(null); I've
I'm trying to send a GET request using HttpWebRequest. I've found a lot of
i am using ajax and jquery to send an * synchonou *s http request
I am using IcmpSendEcho2 to send an ICMP echo request to a host I
I'm trying to add new output column using synchronous custom data flow component(below is
When using a synchronous I/O such as fread which is buffered, the read operations
I'm using super-simple synchronous C# Sockets for an assignment. The assignment is to create
I send asynchronous call using jQuery form plugin and in the case of success

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.