In the code below, imageInByte
is a byte array. I'm receiving the following error:
encodeBase64() is undefined for class rsa1
import org.apache.commons.codec.binary.Base64;
public class rsa1 {
public static void main(String args[]) {
byte[] bigByteArray=new byte[1796];
for (int i=0;i<4;i++)
bigByteArray[i]=imageInByte[i];
for (int i=4;i<=1795;i++)
bigByteArray[i]=cipherData[i-4];
byte[] bigByteArray1 = Base64.encodeBase64(bigByteArray);
}