今天我们的思路:
通过对数据库中的信息检索,user表中user信息中有用户的人脸信息,然后进行新的对比
这个实现出了点问题,明天还得继续整这方面
今天我们的思路: 通过对数据库中的信息检索,user表中user信息中有用户的人脸信息,然后进行新的对比 这个实现出了点问题,明天还得继续整这方面 public static byte[] readFileStreamByBytes( File file ) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream((int) file.length()); BufferedInputStream in = null; try { in = new BufferedInputStream(new FileInputStream(file)); short bufSize = 1024; byte[] buffer = new byte[bufSize]; int len1; while (-1 != (len1 = in.read(buffer, 0, bufSize))) { bos.write(buffer, 0, len1); } byte[] var7 = bos.toByteArray(); return var7; } finally { try { if (in != null) { in.close(); } } catch (IOException var14) { var14.printStackTrace(); } bos.close(); } }