0

I followed this tutorial to show web cam with the help of server.

But , It not done.

error

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");

code

error at line 93

I am using java 14.

How can I solve this error?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • I think you must set the Intellij java to the latest version. [See this](https://stackoverflow.com/questions/18987228/how-do-i-change-the-intellij-idea-default-jdk) – fuggerjaki61 May 21 '20 at 07:49
  • I tried this . But , it not done. –  May 21 '20 at 07:54

0 Answers0