• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERRest Photo Attachment Uploads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest Photo Attachment Uploads


  • Subject: ERRest Photo Attachment Uploads
  • From: Kevin Hinkson <email@hidden>
  • Date: Fri, 20 Apr 2012 13:05:01 -0400

Hi all,

I have a question about handling photo attachment uploads using ERRest.

I have a Photo object in iOS that I am posting to ERRest using the XML format

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<Photo>
<created type="datetime">2012-04-20T16:42:09Z</created>
<data><![CDATA[--- base 64 encoded string for the photo ---]]></data>
<latitude type="double">0.0</latitude>
<longitude type="double">0.0</longitude>
<modified type="datetime">2012-04-20T16:42:09Z</modified>
<taken type="datetime">2012-04-20T16:41:09Z</taken>
</Photo>

On the server side this object looks the same except I use ERAttachment to store the image data. What I am wondering is 
1. Am I sending the photo data correctly?
2. How can I access the data value and create/update an ERAttachment as required

So far I can tell ERRest to ignore the unknown data attribute. The only other similar question I have seen is here: http://www.mail-archive.com/email@hidden/msg42858.html but I think he is posting the data a little bit differently and I wasn't able to figure out how to post the data correctly and intercept the data value.

Any help would be appreciated.


— K.R.H.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ERRest Photo Attachment Uploads
      • From: Jesse Tayler <email@hidden>
  • Prev by Date: Re: Maven
  • Next by Date: Re: WOUnit
  • Previous by thread: SOLVED: Re: NoClassDefFoundError when initializing Web Services
  • Next by thread: Re: ERRest Photo Attachment Uploads
  • Index(es):
    • Date
    • Thread