Hello everyone.
If we open the jpg file with notepad, we can see some text or gibberish that doesn't give us any meaning. How do I append some text (ie password hash) to it using Java? I'm attaching a password hash to the jpg file. Hope that anyone reading this will help me. Thank you in advance. :)

Recommended Answers

All 2 Replies

For reading binary data you should consider FileInputStream rather than FileReader, which is optimised for characters in some default character encoding. Thanks anyway. Problem solved!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.