Get File Size Photo gallery
Does anyone know if it is possible to get the selected file size when you choose a Picture or Video from the photo gallery?
4 Answers
-
Anyone have an idea on this?
-
Anyone know if this is even possible? Still trying to find out if I can do it.
-
It seems nobody knows.
-
AFAIK, you can't tell the file size directly. What you can do is grab the media contents, write it to a temporary file, check the length of the temporary file, then delete it. For a photo, chances are that will work fine and relatively quickly. If you happen to select a high definition video that is 10 minutes long, it is another story.