diff --git a/java/src/org/openqa/selenium/OutputType.java b/java/src/org/openqa/selenium/OutputType.java index c758996700a4e..9640f5fd74c7b 100644 --- a/java/src/org/openqa/selenium/OutputType.java +++ b/java/src/org/openqa/selenium/OutputType.java @@ -55,7 +55,7 @@ public String toString() { OutputType BYTES = new OutputType() { @Override public byte[] convertFromBase64Png(String base64Png) { - return Base64.getMimeDecoder().decode(base64Png); + return Base64.getDecoder().decode(base64Png); } @Override