diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 095f9816c..7606f2839 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -7094,6 +7094,7 @@ public class PApplet implements PConstants { return null; } + /** * @nowebref */ @@ -7102,7 +7103,7 @@ public class PApplet implements PConstants { throw new IllegalArgumentException("File passed to createInput() was null"); } try { - InputStream input = new FileInputStream(file); + InputStream input = new BufferedInputStream(new FileInputStream(file)); if (file.getName().toLowerCase().endsWith(".gz")) { return new GZIPInputStream(input); }