The application of Base64 encoding that I have read was to convert binary data or some string in to Base64 format. But I came to know of files (example: PDF, Excel) themselves Base64 encoded which can't be even opened/supported by respective software.
My questions are:
- Can we encode whole files in to Base64.
- What is the application scenario of this.
- Can we know by looking at the content which decoder to use.
(FYI: I have read wiki Base64 )
Base64 decoding in Java and i think encoding also can done with some classes in this package
package is
and the logic is