I followed this tutorial to show web cam with the help of server.
But , It not done.
Error:(5, 17) java: cannot find symbol
symbol: class Base64
location: package java.util
Error:(93, 45) java: cannot find symbol
symbol: variable Base64
location: class WebcamWebSocketHandler
Why this error occurs?
Error:(5, 17) java: cannot find symbol
symbol: class Base64
location: package java.util
line 5 import java.util.Base64;
Error:(93, 45) java: cannot find symbol
symbol: variable Base64
location: class WebcamWebSocketHandler
Line 93 base64 = new String(Base64.getEncoder().encode(baos.toByteArray()), "UTF8");
I am using java 14.
How can I solve this error?