Here is my simple test code to show the problem:

```
URL u = new URL(someURLString);
URLConnection c = u.openConnection();
InputStream is = c.getInputStream();

int amount = c.getContentLength(); //gives 75830, which is correct

int r = 0;
while (is.read() != -1) //count input
    r++;

//r is 65878, what the hell?

```

Obviously there is data missing. Can anyone explain this behaviour?

Thank you in advance