package Controllers;

import java.io.FileNotFoundException;
import java.io.InputStream;

public class Image
{
    private String filename;
    private int length;
    private InputStream content;
    
    public Image(String filename) throws FileNotFoundException
    {
        super();
        this.filename = filename;
    }
    public String getFilename()
    {
        return filename;
    }
    public void setFilename(String filename)
    {
        this.filename = filename;
    }
    public int getLength()
    {
        return length;
    }
    public void setLength(int length)
    {
        this.length = length;
    }
    public InputStream getContent()
    {
        return content;
    }
    public void setContent(InputStream content)
    {
        this.content = content;
    }
    
    
}

package Controllers;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class Image
{
    private String filename;
    private Long length;
    private InputStream content;
    
    public Image(String filename) throws FileNotFoundException
    {
        super();
        this.filename = filename;
    }
    public String getFilename()
    {
        return filename;
    }
    public void setFilename(String filename)
    {
        this.filename = filename;
    }
    public Long getLength()
    {
        return length;
    }
    public void setLength(Long length)
    {
        this.length = length;
    }
    public InputStream getContent()
    {
        return content;
    }
    public void setContent(InputStream content)
    {
        this.content = content;
    }
    
    
}

--- 
+++ 
@@ -1,13 +1,12 @@
 package Controllers;
 
-import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 import java.io.InputStream;
 
 public class Image
 {
     private String filename;
-    private Long length;
+    private int length;
     private InputStream content;
     
     public Image(String filename) throws FileNotFoundException
@@ -23,11 +22,11 @@
     {
         this.filename = filename;
     }
-    public Long getLength()
+    public int getLength()
     {
         return length;
     }
-    public void setLength(Long length)
+    public void setLength(int length)
     {
         this.length = length;
     }
Change the datatype of length to int
