# Can a preloader read bytes from a .jpg file?

**URL:** https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174
**Category:** flash
**Created:** [December 6, 2002, 10:46am UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174 "2002-12-06T10:46:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Hex](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@Hex](https://forum.kirupa.com/u/Hex)
#### Post date: [December 6, 2002, 10:46am UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/1 "2002-12-06T10:46:08Z")

</div>

I have a .swf file that loads a .jpg file into it and I want a preloader that reads the total bytes and total bytes loaded of the .jpg file. Can that be done?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 1:36pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/2 "2002-12-06T13:36:19Z")

</div>

load the jpg first and then preload the movie.  
For example in the first frame put the jpg-loading action and in the second(or the second and third) frame put the preloader.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 1:39pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/3 "2002-12-06T13:39:37Z")

</div>

does flash know how big the .jpg file is while it is loading it?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 1:52pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/4 "2002-12-06T13:52:29Z")

</div>

heh… come to think of it… I dunno 😛  
try it out somehow! that should work… I think… :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 1:59pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/5 "2002-12-06T13:59:55Z")

</div>

you on a dailup or anything slow?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 2:36pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/6 "2002-12-06T14:36:08Z")

</div>

nah… adsl 512bps  
try putting a real big pic. or maybe sumbdoy else has a slower one.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 6, 2002, 3:26pm UTC](https://forum.kirupa.com/t/can-a-preloader-read-bytes-from-a-jpg-file/9174/7 "2002-12-06T15:26:07Z")

</div>

I tried that but the darn proxy stored the old pic, but I think it works, will know for sure tomorrow
