size = os.stat(fname).st_sizebut I'd have to look more closely to see how that size is actually used. Why do you ask? Are you saying that the file you're trying to stream isn't 1842619 bytes? Could it be that the file is over 4Gb? I've never tested large files, so I'm not sure what would happen. The output looks to be pretty much what I'd expect otherwise.