Check out example codes for "java dateigröße abfragen". It will help you in understanding the concepts better.

Code Example 1

File f = path.toFile();
double fileSize = f.length;
// double fileSize = f.length / 1024d; (in Kb)

Learn ReactJs, React Native from akashmittal.com