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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:46:13+00:00 2026-05-30T15:46:13+00:00

I am using ASIHTTPRequest to upload an image to a webservice . my code

  • 0

I am using ASIHTTPRequest to upload an image to a webservice. my code works fine (i think), but i am not sure how to write the web service so i could retrieve the image and display it (in a web browser).

i don’t know if this is relevant but i’m passing the image data from the iPhone. so the web service now will have to take this image data and convert it to a PNG and display it on the web browser.

I have no clue how to do this. Can someone help me out with a tutorial or sample code to begin with.

note: in ASIHTTPRequest i used the method postData to send the data to the web service
and the web services are supposed to be written in PHP

  • 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-30T15:46:14+00:00Added an answer on May 30, 2026 at 3:46 pm

    Use ASIFormDataRequest, it has a method for file uploads (addFile), then you just work off the $_FILES superglobal in PHP as you would with a regular HTML form upload. On the iPhone side you’re best off saving the image to the Documents or Cache folder for your application and referencing the filepath in the request.

    Something like this:

    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://url/path"]];
    [request setDelegate:self];
    [request addFile:filePath forKey:@"uploaded"];
    [request setDidFinishSelector:@selector(onUploadDone:)];
    [request setDidFailSelector:@selector(onUploadError:)];
    [request startAsynchronous];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ASIHTTPRequest to connect to a web service. I am not getting
I am using ASIHTTPRequest, its working fine for posting dictionaries to the web service
I'm able to upload an image using ASIHTTPRequest. Code is something like this. -
I am using ASIHTTPRequest to fetch some data from a web service. I am
I want to upload images in server using ASIHTTPRequest library in my IPhone app.
I'm using ASIHTTPRequest to upload a photo with PHP. The PHP side is proven
Basically I am trying to upload an image using ASIFormDataRequest. This is my following
I have been using ASIHTTPRequest to do a simple POST upload of a Scores
I'm using ASIHTTPRequest API to get some JSON data from a web side. I'm
I am using ASIHTTPRequest in IOS. I have aloso a wsdl/soap web services. when

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.