sun.misc.BASE64Decoder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eyeofsoul
    New Member
    • Sep 2007
    • 31

    #1

    sun.misc.BASE64Decoder

    Hello again..i have a problem on importing sun.misc.BASE64 Decoder, when i type for example

    Code:
    System.out.println("Cipher Text: " + new sun.misc.BASE64Decoder(ciphertext));
    i get an error saying cannot find symbol..i already put

    Code:
    import sun.misc.BASE64Decoder.*;
    but when i type
    Code:
    return new sun.misc.BASE64Encoder().encode(bos.toByteArray());
    i doesn't have any error..

    can somebody help me with this?..
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Rather than answer that, it's better that I you should point you to this note from Sun, entitled Why Developers Should Not Write Programs That Call 'sun' Packages:



    A quick google and I found this implementation, which is part of Apache Commons:

    Comment

    Working...