# Get image file size prior to loading?

**URL:** <https://forum.kirupa.com/t/get-image-file-size-prior-to-loading/298333>\
**Category:** Uncategorized\
**Created:** [October 16, 2009, 4:49pm UTC](https://forum.kirupa.com/t/get-image-file-size-prior-to-loading/298333 "2009-10-16T16:49:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cakepizza](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@cakepizza](https://forum.kirupa.com/u/cakepizza)\
**Post date:** [October 16, 2009, 4:49pm UTC](https://forum.kirupa.com/t/get-image-file-size-prior-to-loading/298333/1 "2009-10-16T16:49:11Z")

</div>

Hey! so I am using the MovieClipLoader class to load a bunch of images, and I am trying to build a loader that has a single percentage for the whole batch of images. I need the.bytesTotalof every image prior to loading them, so that I know the total number of bytes I am working with to calculate the total percent of all images that have been downloaded.

My issue is that it seems to be loading the images in a generally linear way (loads all of the first pic, then starts loading the second pic, etc…) and .bytesTotal is returning as 0 for all pics that have not yet started loading.

Anyone know how I can grab the total bytes of each image prior to the actual download of the image?
