-// try (InputStream in = JcrUtils.getFileAsStream(fileNode)) {
-// BufferedImage img = ImageIO.read(in);
-// System.out.println("width=" + img.getWidth() + ", height=" + img.getHeight());
-// } catch (IOException e) {
-// throw new RuntimeException(e);
-// }
+ boolean test = false;
+ if (test) {
+ try (InputStream in = JcrUtils.getFileAsStream(fileNode);
+ OutputStream out = Files.newOutputStream(Paths.get("/home/mbaudier/tmp/" + fileNode.getName()));) {
+// BufferedImage img = ImageIO.read(in);
+// System.out.println(fileNode.getName() + ": width=" + img.getWidth() + ", height=" + img.getHeight());
+ IOUtils.copy(in, out);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }