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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:19:53+00:00 2026-05-20T12:19:53+00:00

Given both: NSData *jpegData; NSString *xmlPost: How do I construct an ASIFormDataRequest to post

  • 0

Given both:

NSData *jpegData;
NSString *xmlPost:

How do I construct an ASIFormDataRequest to post both the image/jpeg data and the applicaton/xml data as a multipart/mixed POST request?

  • 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-20T12:19:54+00:00Added an answer on May 20, 2026 at 12:19 pm

    I’m afraid that I’m not actually answering about your question.

    Two facts.

    1. The ASIFormDataRequest class is not designed to support ‘multipart/mixed’. (at least, currently)
    2. XML is just a plain string which can be sent via multipart/form-data too.

    If your situation is forcing you have to use multipart/mixed, just ignore me. (for instance, your client don’t want to modifying server program which support only multipart/mixed.)

    If not, please think again once. Do you really need the multipart/mixed itself? No choice? Never ‘multipart/form-data’? As I know, most server part programmers like ‘multipart/form-data’ more than other rarely used format because it supported by most server frameworks. So it makes their life a lot easier 🙂

    If you really want another ‘regularity’ or ‘efficiency’ or some other specials instead of simplicity, you should consider other than HTTP. The only benefits of HTTP is stability and compatibility. (from it’s well-defined specification and long history) This is most important benefits, but may not suitable for you.

    I didn’t try ‘multipart/mixed’. Maybe it’s possible someone has a simple way to do this.
    But basically this is a kind of hacking job. (enabling feature which absent on original design) This should be painful. It’ll be easier making your own class from the HTTP specification.

    I strongly recommend you to use multipart/form-data instead of. Which is supported on the class by design. You can assume an XML source just like a plain string. Which can be sent via plain POST field value.

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

Sidebar

Related Questions

I'm wondering given both the native js and jquery event handler, which one should
Given two arrays, how to find the maximum element which is common to both
Given a <select> and an <input> element, both specified to be 200px wide: <!doctype
Two general questions I'm wondering about both in the case for a given file(.js,
I have two divs one inside another. I have given some border to both
Given that both of these calls to getQualifiedClassName return the same thing (mx:Label), how
Given that both the client and the server need to know everything about the
One of the tip given by both Google and Yahoo! to speed up webpages
Given a string of text that is both adjacent to a span and inside
given two sequences, how to get all the elements belonging to both the sequences

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.