0

I am doing this way. but i am not getting where is wrong.

NSString *strUrl = [NSString stringWithFormat:@"https://play.google.com/stor/apps/details?id=com.ShiftSharerfree_new&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5TaGlmdFNoYXJlcmZyZWVfbmV3Il"];

NSString *originalString = [NSString stringWithFormat:@"%@", strUrl];
NSData *data = [NSData dataFromBase64String:originalString];
NSString *data = [base64 originalString];
NSLog(@"data:%@", data);//[data base64EncodedString]);

Please guide me in above.

iPhone Programmatically
  • 1,211
  • 2
  • 22
  • 54

2 Answers2

0

the first thing i'd noted is that the NSData and the NSString have the same name. Could this be the error?

Areal-17
  • 406
  • 3
  • 10
0

Perhaps you need a base64 conversion library, as mentioned here:

Convert between UIImage and Base64 string

I had a similar error with code for converting images to base64, using [base64 encode...] calls.

Community
  • 1
  • 1
NoelHunter
  • 996
  • 9
  • 17