Challenge: Encode and Compare Lengths of Base32 and Base64 Images
Implement the Base32 and Base64 encoding of an image using Apache Commons-Codec Library in this challenge.
We'll cover the following
Problem statement
Use the Apache commons Codec library to perform a Base32 encoding and compare the length of the Base32 encoded file of an image against the Base64 encoding of the same image.
Given input
You are given the following:
logo.jpeg
Let's try it
Note: Your code will go in the following methods in the below widget:
generateBase32EncodedVersion()
generateBase64EncodedVersion()
transformFile()
Get hands-on with 1400+ tech skills courses.