|
|
@@ -175,4 +175,14 @@ public class ReportFingerprintService {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ private String readStream(InputStream is) throws IOException {
|
|
|
+ ByteArrayOutputStream buf = new ByteArrayOutputStream();
|
|
|
+ byte[] temp = new byte[1024];
|
|
|
+ int read;
|
|
|
+ while ((read = is.read(temp)) > 0) {
|
|
|
+ buf.write(temp, 0, read);
|
|
|
+ }
|
|
|
+ return buf.toString("UTF-8");
|
|
|
+ }
|
|
|
+}
|