troubleshooting Question

Base64 Encoding / Decoding Assistance.

Avatar of Molko
Molko asked on
Programming Languages-OtherJava
11 Comments1 Solution2395 ViewsLast Modified:
I have a String which has already been base64 encoded. Now when this is marshalled in weblogic is get encoded again - which i dont want, So i which to decode the orignal base64 but yet keep it in a String format.

Is this possible ?

How do i do it ?
String image   //already base64'd
    
Base64 imageBase64 = new Base64();
     
//currently
        if (image != null) {
            ImageData.setImageData(image.getBytes());
        }
 
//attempting 
 
        if (image != null) {
 
String newImage = image converted from base64 back to a String
            ImageData.setImageData(newImage.getBytes());
        }
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros