From 899ce3e3d3f5ad37430f29330df1e56ebc3fc35f Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer <paul-christian.volkmer@mni.thm.de>
Date: Tue, 3 Jun 2014 20:26:55 +0200
Subject: [PATCH] Use CHUNK_SIZE as static final member of class ImageUtils

No one will find it in method convertFileToByteArray.
---
 src/main/java/de/thm/arsnova/ImageUtils.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/de/thm/arsnova/ImageUtils.java b/src/main/java/de/thm/arsnova/ImageUtils.java
index d28f980e..2bd23ebf 100644
--- a/src/main/java/de/thm/arsnova/ImageUtils.java
+++ b/src/main/java/de/thm/arsnova/ImageUtils.java
@@ -40,6 +40,9 @@ import org.slf4j.LoggerFactory;
  */
 public final class ImageUtils {
 
+	// Or whatever size you want to read in at a time.
+	private final static int CHUNK_SIZE = 4096;
+
 	private ImageUtils() {
 	}
 
@@ -107,8 +110,7 @@ public final class ImageUtils {
 	 * @return The <code>byte[]</code> of the image on success, otherwise <code>null</code>.
 	 */
 	public static byte[] convertFileToByteArray(final String imageUrl) {
-		// Or whatever size you want to read in at a time.
-		final int CHUNK_SIZE = 4096;
+
 
 		try {
 			final URL url = new URL(imageUrl);
-- 
GitLab