我在我的applet应用程序中使用了Bing Search API,并且我使用了以下代码:
byte[] accountKeyBytes = Base64.encodeBase64((accountKey + ":" + accountKey).getBytes());
String accountKeyEnc = new String(accountKeyBytes);我使用的是commons-codec-1.7.jar,无法识别encodeBase64。
我已经尝试了所有的方法,我已经通过源文件将jar文件放在项目目录中。
发布于 2014-12-08 21:21:22
确保您的import语句如下所示:
import org.apache.commons.codec.binary.Base64;https://stackoverflow.com/questions/27356920
复制相似问题