Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
psychodelic_drumboy wrote:
I am very pleased to say that changing the file stream code to:
Code:
fsZipFile.Write(buffer, 0, buffer.Length - 1)
Has resolved the issue.
That sounds correct. You need to understand how a method is accessing the buffer. Some methods may access a buffer from 1 to 'x' whereas other methods will access a buffer from 0 to 'x-1'.
Do not assume that all methods will access the buffer the same way whether that is 1 to 'x' or 0 to 'x-1'. You should have the MSDN docs readily available to review the method you are using.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum