I'm having problems with digital encoding (biometrics) in base64
for parameter passing via http
. The problem is that each capture of the same digital are generated different codes, in this way it is not possible to compare with those that are registered in the base that has relation one to one (a user, a digital). Just at the clarification level, I can not use the Base64
class native of Java 8
, since clients should run Java 7
, to avoid bureaucratising for Java 8
security. So for this I only saw two alternatives so far, the first using the method below:
BaseEncoding.base64().encode(digital);
and the second with:
DatatypeConverter.printBase64Binary(digital);
but in neither case do they generate equal codes for the same digital. Thanks for the help you give me.