Possible Duplicate:
Decode Base64 data in java
I have a java file which will be downloaded from a location. The files are BinHex encoded. Is there any jar file available which i can use in java code to decode the binhex file?
Please help me.
Possible Duplicate:
Decode Base64 data in java
I have a java file which will be downloaded from a location. The files are BinHex encoded. Is there any jar file available which i can use in java code to decode the binhex file?
Please help me.
Apache commons has a class called BCodec that allows specifying custom character sequence for encoding. Maybe you can adapt it to your needs?
In any case mechanics behind Base64 and BinHex are very similar, you could take this class and update it to your needs. I think modifying char sequence may be enough.
EDIT:
Here's an implementation of BinConverter as a part of BlowfishJ library.