|
|
@@ -60,6 +60,7 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResultCode compareFace(CompareImageDomain compareImageDomain) {
|
|
|
+
|
|
|
String base64 = "";
|
|
|
if (compareImageDomain.getBase64().startsWith("data:image/png;base64,")){
|
|
|
base64 = compareImageDomain.getBase64().replace("data:image/png;base64,","");
|
|
|
@@ -97,7 +98,7 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
//将base64转成图片
|
|
|
File base = null;
|
|
|
try {
|
|
|
- base = File.createTempFile("compare", ".jpeg");
|
|
|
+ base = File.createTempFile("compare", ".JPEG");
|
|
|
base.deleteOnExit();
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|