"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
John de Michele wrote:Carl,
Packages in the sun.* hierarchy should be expressly avoided. Those are private to Sun, and there is no guarantee that they will work from one build to the next.
John.
Carl,
Packages in the sun.* hierarchy should be expressly avoided. Those are private to Sun, and there is no guarantee that they will work from one build to the next.
John.
1. String value= "Wyk+HjAxHTAyNzg3MDUdODQwHTAxOR0wMDAwMDAwMDAwMDAwMD
AdRkRFQh0wMDAwMDAwHTA0MB0dMS8xHTUwLjVMQh1OHVcgMzR0aCBTdHJlZXQdQXVzdGluHV
RYHSAeMDYdMTBaR0QwMDQdMTFaUmVjaXBpZW50IENvbXBhbnkgTmFtZR0xMlo5MDEyNjM3OTA
2HTE0WioqVEVTVCBMQUJFTCAtIERPIE5PVCBTSElQKiodMjNaTh0yMlocWR0yMFogHDAdMjZaNjEzMxwdHgQ=";
2. Base64 decoder = new Base64();
3. byte[] imgBytes = decoder.decode(value);
4. FileOutputStream osf = new FileOutputStream(new File("yourImage.png"););
5. osf.write(imgBytes);
6. osf.flush();
http://commons.apache.org/codec/apidocs/org/apache...mmons/codec/binary/Base64.html
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Henry Wong wrote:
Agreed. Its not a PNG file. Just ran the program and examined the saved file.
Its a text file. With something related to a company in Austin Texas.
Henry
Don't get me started about those stupid light bulbs. |