I need file size on disk, not file size
File myFile = new File ("C:\\Send\\Capture.png"); System.out.println((int)myFile.length());
^ This code gives the file size. I need the file size on disk. They are always different, as in the figure below, right?

Growinman
source share