Not in general. You'd have to have some rules about how the conversion was supposed to work. For example if I had a file containing six binary 00 bytes, what would you expect as the "ASCII equivalent" of that?
Once you have some rules in mind, it may be easier to find products that implement those rules.
Joined: Oct 16, 2006
thanks for the response. I was under the assumption that its a generalized one. Because I see many tools available in the internet for this convertion. So I was wondering whether is there any such tool which can be integrated with a java code?
If you point us to a tool somewhere on the Internet which does this conversion, perhaps we could look at it and thus learn what it is you really want to do. But as Paul said, gently, there is no such thing as a generic binary-to-ASCII conversion -- the concept simply doesn't make any sense.
both binary files and text files contains bytes only.So if you binary file contains valid ascii bytes ,then you try to open the file using any ascii editor. I could not get properly what you mean by converting binary to ascii?