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.
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.
allelopathAuthor Commented:
it had something to do with the buffer size, not exactly sure ...
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.