Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to change my file into binary data using java

String getBits(byte b)
{
    String result = "";
    for(int i = 0; i < 8; i++)
        result += (b & (1 << i)) == 0 ? "0" : "1";
    return result;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #file #binary #data #java
ADD COMMENT
Topic
Name
1+7 =