IMG.fileSize (Property)

The size of the image file.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Number primitive
JavaScript syntax:IEmyIMG.fileSize

This is the exact length of the received HTTP body portion of the image. This does not count any HTTP headers that the web server may have sent prior to the HTTP body.

On the Macintosh operating system, some image editors hide additional resource data in the file. This is not included and on that platform, the fileSize property is a measurement of the data fork of the file and does not include the resource fork.

See also:Document.fileSize

Property attributes:

ReadOnly.