On Fri, Jun 13, 2008 at 12:14 PM, sebb <[EMAIL PROTECTED]> wrote:
> On 13/06/2008, Stephen J. Butler <[EMAIL PROTECTED]> wrote:
>> On Fri, Jun 13, 2008 at 11:29 AM, Sabarivasan Viswanathan
>>  <[EMAIL PROTECTED]> wrote:
>>  > I will be doing a simple POST request to download a large file (of the 
>> order
>>  > of a few tens of megabytes).
>>  >
>>  > In order to ensure that the file is not corrupted during transmission, I
>>  > want to do a checksum on the client and compare it with the server's.
>>  >
>
> What checksum does the server provide?

Ha! Good question. I hear checksum and always think CRC.

To make a preemptive comment, you can do the same thing with
DigestInputStream that I did with CheckedInputStream. I believe the
standard Inluded MessageDigestSpi includes MD5 and some versions of
SHA.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to