wood burning stoves*
The moose likes Beginning Java and the fly likes Encryption-decryption loosing bytes in operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Encryption-decryption loosing bytes in operation" Watch "Encryption-decryption loosing bytes in operation" New topic
Author

Encryption-decryption loosing bytes in operation

mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Here is my encryption/decrypt code. But after decrypting file, it is some bytes bigger or smaller, i dont know how to get the exact bytes.


Simple use of it
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You aren't closing your output stream after you finish writing to it.
mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Yeha it worked like charm .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encryption-decryption loosing bytes in operation
 
Similar Threads
Problem Urgent: Crypto using jsp - javabean
Encryption: Runtime Exception when run as JavaBean
Encryption-decryption file problem
InvalidKeyException
encrypt data in database