Adler32 question
Hello
I am writing a file to a server using 64kb block sizes and calculating the alder32 as I go.
When I read back the file using anything different to 64kb blocks Adler32 calculates (Intermittently) a different
Adler32 hash.
Is there a known problem with calculating the alder 32 with different block sizes?
Thanks
Nick
[365 byte] By [
welshboy] at [2007-9-30 22:25:55]

The java.util.zip.Adler32 should work. If you do not trust it, write a unit test:
random data, chunked and differently unchunked.
You did not mention whether despite failed hash code, the data received was identical with the data sent. You know of \n - \r\n conversion, or with HTTP you have to set response.setContentType("application/bin"). Protocols like UDP are unsafe. I do not assume you are using shorts for buffer indexes.