Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9213259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:42:16+00:00 2026-06-18T01:42:16+00:00

I mean how to encode the URL so that it can be converted to

  • 0

I mean how to encode the URL so that it can be converted to a string compatible as a file name, and also it can be decoded back to original URL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:42:18+00:00Added an answer on June 18, 2026 at 1:42 am

    First Download base64 encode / decode class
    then use the below Code to encode and Decode.

    For encoding :

    [Base64 initialize];
    
    NSString *str=@"http://www.cogzentappz.com";
    
    NSData *data1 = [str dataUsingEncoding:NSUTF8StringEncoding];
    
    NSString *data2=[Base64 encode:data1];
    
    NSLog(@"data2=%@",data2);
    

    For Decoding below Code :

     NSData * data3 = [Base64 decode:data2]; // data2 is encoded string
    
    NSString * actualString = [[NSString alloc] initWithData:data3 encoding:NSUTF8StringEncoding];
    NSLog(@"actualString=%@",actualString);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have user submitted tags that can be any type of (valid) UTF-8 string.
Can FFmpeg encode video in VP8 codec? (I mean its trunk vercion)
All, I'm using the following jQuery plugin: https://github.com/blueimp/jQuery-File-Upload You can see that in the
I mean I can't type from my laptop keyboard into android emulator anymore. Virtual
I mean something like that: class parentClass { public function method() { echo $this->prop;
I mean things like: FK1 -> 1FK2 -> 2PK Please, note that 1FK2 is
I need to URL encode some periods since I have to pass some document
jQuery-File-Upload Upload script: $('#fileupload').fileupload({ url: 'api/combox_upload.php', type: 'POST', dataType: 'json', dropZone: $dropZone, singleFileUploads: true,
I want to encode the post's title so I can add it to my
I am parsing a huge (I mean really huuuuge) xml file. It contains some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.