javax crypto binary file

Is there a secret to using javax crypto with binary files?
I can get it to work for text files, but with binary files, in this case .an xls file, i get back garbage.
LVL 1
allelopathAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
It should be no different. Make sure you are dealing with the file with a stream and not readers/writers.
0
 
allelopathAuthor Commented:
it had something to do with the buffer size, not exactly sure ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.