Search:

Type: Posts; User: Norm

Search: Search took 0.22 seconds.

  1. Replies
    6
    Views
    1,945

    Re: Base64 encoding is not working.

    You need to learn how to do that. We'll try to help you fix your code.

    What is the length of the String that is being called with substring?
    What was the value of base?
  2. Replies
    6
    Views
    1,945

    Re: Base64 encoding is not working.

    From the error message I'd say the String has less than 65 characters and the code is trying to access the 65th char (arrays are 0 based so 64 is index of 65th).

    Add some printlns to show the...
  3. Replies
    6
    Views
    1,945

    Re: Base64 encoding is not working.

    Please post the full text of the error message. It has important info that you left off.
Results 1 to 3 of 3