0

I am using Bing Search API to my applet application and I used this code:

byte[] accountKeyBytes = Base64.encodeBase64((accountKey + ":" + accountKey).getBytes());
String accountKeyEnc = new String(accountKeyBytes);

I used commons-codec-1.7.jar and does not recognized the encodeBase64.

I have try everything, I have place the jar file through the project directory through source file.

Biffen
  • 6,249
  • 6
  • 28
  • 36

1 Answers1

0

Make sure your import statement is the following:

import org.apache.commons.codec.binary.Base64;
jmn
  • 564
  • 5
  • 8