This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Bit Input/Output 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 » Java in General
Bookmark "Bit Input/Output" Watch "Bit Input/Output" New topic

Bit Input/Output

Robbie H.

Joined: Nov 20, 2003
Posts: 1
Hi.. Any of you out there know of a bitReader()/bitWriter() class? I think this is where Java is lacking... Bit's... I eventually want to input a graphic file (bitmap), and encrypt it, then output back to a bitmap... If I could get bit input I could theoretically encrypt and then decrypt any data type out there... I want it... The technical aspects of INPUTTING a BITMAP (heh...) is a whole nother problem.. Any help would be appreciated. Or point me to a new programming language.
Joe Ess

Joined: Oct 29, 2001
Posts: 8836

The term "bitmap" refers to the fact that the image isn't compressed. It corresponds bit-for-bit to the data displayed. You don't actually read/write individual bits. You can use the*putStream classes to manipulate the files. Check out:
Javaworld: Saving bitmap files in Java

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: Bit Input/Output
Similar Threads
Getting Bitmap from Canvas and converting it into image file format
String Encryption in javascript and Decryption in java
Extracting Pixel Data From Fonts
Getting what is drawn on the screen.
Bitmap Questions