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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:37:47+00:00 2026-05-23T02:37:47+00:00

I’m trying to send an archived objective-c object to a php script and then

  • 0

I’m trying to send an archived objective-c object to a php script and then retrieving it from the server and decoding it in the app.

My current workflow:

  1. Archive object
  2. Send archive to PHP by posting raw data
  3. Saving data into mysql blob
  4. Loading raw data from PHP script
  5. Decoding object

Only step 1 and 5 is working currently. I can save the data to the blob, but the contents look far from what I actually sent to the php script. I can load the data from the PHP script, but the resulting data doesn’t look like what’s in the blob when I look at the data in the database.

So my question is:
How should I encode the NSData from the archived object for sending to the PHP script?
How should I handle the data on the PHP side when inserting it into MySQL?
How should PHP send the data back to the app?
and… finally…
How should the app decode the data from the PHP script so that it becomes readable for the decoder?

Answers and ideas for any of these questions would be a tremendous help 🙂 thank you.

  • 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-23T02:37:48+00:00Added an answer on May 23, 2026 at 2:37 am

    If the object lends itself, then think about encoding it as a JSON or YAML. Many libraries both in Objective-C and PHP exist for serializing/marshaling those formats and implementing them is pretty straightforward.

    If you were doing this in JSON, you might:

    1) Encode a JSON string from the Cocoa object
    2) POST that to your PHP app
    3) Have PHP parse the JSON and write something to MySQL
    4) Generate an HTTP response from MySQL’s response, encoding it as JSON and sending it back to the client
    5) Decode the JSON

    And you’re done! If that sounds like what you’re after, I’d be happy to recommend some good libraries.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.