AW: NSDictionary to NSData
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