I am trying to use Base64
class in JDK 7 but I am getting the error:
Base64 cannot be resolved
Why does eclipse throw this error?
I am using the code below:
byte[] imageData = Base64.getDecoder().decode(readFile(imagePart.getInputStream()));
even import statement also shows the same error : import java.util.Base64;
Is this class not available in JDK 7?
From the documentation:
Since: 1.8
So no, it is not available in JDK 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With