public int calculateImageSize(String filepath) {
and Done...
File file = new File(filepath); double bytes = file.length(); double kilobytes = (bytes / 1024); double megabytes = (kilobytes / 1024); return (int)megabytes; }
and Done...
Comments
Post a Comment
Thanks, I'll respond you soon!