I want to edit jpg image file in binary form, so that I can can modify the LSB to make least difference with the original image.
Stenography stuffs...
Please help
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
I want to edit jpg image file in binary form, so that I can can modify the LSB to make least difference with the original image.
Stenography stuffs...
Please help
I'm not sure how you can read and modify the contents of a jpeg file. I think the image has to be read into an Image object which allows access to the bytes defining the pixels.
Also I'm not sure if writing an image to a jpeg file will preserve the pixels. Some writing algorithms compress/change pixels when a jpeg file is written. You'd need to do some research or testing to see if that is the case.
Is this the same topic: http://www.javaprogrammingforums.com...tml#post103369
If you don't understand my answer, don't ignore it, ask a question.
Yes how can I do that?access to the bytes defining the pixels.
Look at the BufferedImage class. It has methods for getting and setting pixels.
If you don't understand my answer, don't ignore it, ask a question.
Alright I succeeded in viewing/printing the jpg file in hex form(actually I converted hex from binary form)
Anyways now I am looking for a way to retrieve the jpg image file back from hex values....
Any idea?
I don't know the internal format of a jpeg file and have no idea how the contents of a jpeg file can be changed without passing the file through special code that does know how to read and write the bytes of jpeg files.
If you don't understand my answer, don't ignore it, ask a question.