• 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
Re: base64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: base64


  • Subject: Re: base64
  • From: Sascha Kuehn <email@hidden>
  • Date: Tue, 10 Feb 2004 21:20:03 +0100

i know it's a litte bit abnormal :)
but i only need to encode a string to base64 and decode back to a string. there is no other data need to encode.
i will use this for database entries because the database don't allow some characters i need in the entry.
i thought that base64 encoding is the best workaround.

sascha


On 10. Feb 2004, at 21:13 Uhr, Shawn Erickson wrote:

So write what you need...

Note that Base64 is normally used to encode binary data into a 7bit printable ASCII string (of a nonwrapping length for mailers). So your methods outlined below are a little abnormal for that type of flow (NSData<->NSString makes a little more sense).

Base64 is not that hard to implement especially given Kyle's code as basis. Also the category on NSData that Kyle listed is a sensible way to work with Base64.

-Shawn

On Feb 10, 2004, at 11:21 AM, Sascha Kuehn wrote:

i know your code but how don't how to use is.
i need this to methods.

+ (NSString *) encode: (NSString *) string ;
+ (NSString *) decode: (NSString *) string ;

sascha
On 10. Feb 2004, at 19:19 Uhr, Kyle Hammond wrote:

Hi,

Check out my Base64 Cocoa code at
<http://www.cpinternet.com/~em002400/CocoaProgramming.html>

Kyle

On Feb 10, 2004, at 11:54 AM, Sascha Kuehn <email@hidden> wrote:

i'm not too familiar with cocoa and obj-c yet.
can someone please write me two methods to en- / decode a string with
base64?
something like this:

+ (NSString *) encode: (NSString *) string ;
+ (NSString *) decode: (NSString *) string ;

this would be very nice of you.

sascha
---------------------
Kyle Hammond
email@hidden

<http://www.snowmintcs.com/> - personal productivity software
<http://www.codeblazer.com/> - multimedia software solutions
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: base64
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: base64 (From: Kyle Hammond <email@hidden>)
 >Re: base64 (From: Sascha Kuehn <email@hidden>)
 >Re: base64 (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: base64
  • Next by Date: Re: Making the correct button the default button?
  • Previous by thread: Re: base64
  • Next by thread: Re: base64
  • Index(es):
    • Date
    • Thread