NSDataEx.h 465 B

1234567891011121314151617181920
  1. //
  2. // NSDataEx.h
  3. // iX3.0
  4. //
  5. // Created by Feng Huajun on 09-4-16.
  6. // Copyright 2009 Infothinker. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSData (NSDataBase64Additions)
  10. + (NSData *) dataWithBase64EncodedString:(NSString *) string;
  11. - (id) initWithBase64EncodedString:(NSString *) string;
  12. - (NSString *) base64Encoding;
  13. - (NSString *) base64EncodingWithLineLength:(unsigned int) lineLength;
  14. //- (NSString*) urlEncodedString;
  15. @end