Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just uploaded FEDORA ISO image to S3 via Visual Studio AWS Explorer (not using encryption).

After upload completed status shows:

1,004,232,704 / 999,292,928 Bytes

Actual file size on local disc is 999,292,928 Bytes.

Why is the first number larger than second?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Each packet of data has metadata sent with it, which increases the amount of data sent. The first number includes the size of your file plus the size of the metadata and is the number of bytes actually sent. The second only counts the number of data bytes.

For example, say the protocol used to send the file was HTTP. An HTTP request might look like this:

POST /file/upload
Content-Type: application/octate-stream
Authorization: abcxyz==
Content-Length: 5514587
User-Agent:  AWS uploader

<binary data here>

The top lines are HTTP headers, the metadata I referred to required for HTTP to work. Your file would have been made up of a number of requests containing a chunk of the file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.