Relying on -description would almost certainly be a bad idea as it might change in the future. Also, it will take up a lot of room. I'd recommend:

http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/

Mike.

On 3 Mar 2008, at 18:08, Ben Einstein wrote:

What's the best way to archive/unarchive an NSData object created from NSArchiver to a MySQL (or any other) database?

I was thinking:
[archivedData description] for archiving and
[archivedString dataUsingEncoding:someEncoding] for unarchiving. Not sure if that will work.

Maybe [NSString stringWithCharacters:[archivedData byes] length: [archivedData length]] would be better? Am I heading down a completely flawed path? Speed issues?

Any help would be greatly appreciated.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to