• 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
AW: NSDictionary to NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: NSDictionary to NSData


  • Subject: AW: NSDictionary to NSData
  • From: Helge Staedtler <email@hidden>
  • Date: Thu, 22 Sep 2005 09:23:20 +0200

hi.

it depends on what kind of values you store in the dictionary. if you only
store strings, you could just plain write them as UTF-8 encoded data
one-by-one to a dataoutputstream. if it is something more sophisticated as
e.g. custom objects you will need in a way encode these things e.g. using
XML and then store the XML-string in the DB.

regards,
helge



Am 22.09.2005 8:06 Uhr schrieb "Dave Elsner" unter <email@hidden>:

> Hi,
>
> Does any one know an easy way of converting an NSDictionary to
> NSData   and back again. The reason being I would like to store a
> Dictionary in the DB as a blob.
>
>
> Cheers
> David
>
>
>  _______________________________________________
> 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


 _______________________________________________
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

References: 
 >NSDictionary to NSData (From: Dave Elsner <email@hidden>)

  • Prev by Date: AW: WOFileUpload and Safari
  • Next by Date: Re: NSDictionary to NSData
  • Previous by thread: NSDictionary to NSData
  • Next by thread: Re: NSDictionary to NSData
  • Index(es):
    • Date
    • Thread