Custom stream object

  • Thread starter Thread starter news-server.cfl.rr.com
  • Start date Start date
N

news-server.cfl.rr.com

All,

please help!
I have written a custom stream object that does compression.
I am using the J# libraries to accomplish this, java.util.zip.
For my application I am also using the TripleDES encryptor and decryptor.
Now the problem...
If I use less than 64k of data everything works perfectly.
If I use more than 64k of data I can see the header, in binary, repeating
after 64k.
It's not like the whole beginning of the file repeats either only partial.
Has anyone run into any 64k limitations using stream objects or TripleDES?
I can't really post all the code, there is a bunch of it.

Thanks...
 
news-server.cfl.rr.com said:
please help!
I have written a custom stream object that does compression.
I am using the J# libraries to accomplish this, java.util.zip.
For my application I am also using the TripleDES encryptor and decryptor.
Now the problem...
If I use less than 64k of data everything works perfectly.
If I use more than 64k of data I can see the header, in binary, repeating
after 64k.
It's not like the whole beginning of the file repeats either only partial.
Has anyone run into any 64k limitations using stream objects or TripleDES?
I can't really post all the code, there is a bunch of it.

Well, without the code it's very hard to say what you're doing wrong,
if anything... would you be able to email me the code?
 
All,

I figured this one out today...
If the output buffer java inflater or deflater is too small it starts acting
whacky to no surprise.
I fixed my buffer length problem and it all works as expected.

Thanks

Alan
 
Back
Top