Well this is going to be a bit vague since my situation is a bit specific but basically I am downloading data using AsyncSocket... then I'm saving it directly to the HD... However in like 80% of the cases, the resulting data on disk is slightly bigger (usually around 12 or 13bytes) than it should be (according to the crc32)

I am downloading multiparts email attachments (encoded via either uuencode, yEnc or Base64)... and the corresponding decoder always complains of bad CRC checks when I try to decode the downloaded data...

It's always a *tiny* amount of bytes (but not a constant amount) so for example if I downloaded an Mp3 file, the resulting decoded data will play, but with little glitches every here and there (probably where the parts were joined)....some examples of the decoder's otuput:

Part 1.rar: Decoded size (384012) does not match expected size (384000)
Part 2.rar: Decoded size (384013) does not match expected size (384000)
...

Now as I said, I know this is really vague, but did anyone experience something similar with AsyncSocket or any other sockets? or NSData altogether??



Jean-Nicolas Jolivet
silver...@videotron.ca
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to