Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-59

Add methods to Base64 which work with String instead of byte[]

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • None

    Description

      It would be great if the Base64 class had String encode(byte[]) and byte[] decode(String) methods. The RFC is stated in terms of "characters" for the encoding, so there should be no problem with unwarranted assumptions with this. Currently everyone is having to convert to and from Strings themselves.

      Attachments

        1. codec59-2009-07-28.patch
          11 kB
          Julius Davies

        Activity

          People

            Unassigned Unassigned
            pepijn schmitz Pepijn Schmitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: