Top "Byte" questions

A unit of information usually corresponding to 8 bits.

How to get byte[] from javafx imageView?

How do i get byte[] from javafx image/imageview class? I want to store my image as a Blob into …

java image javafx byte processing
Convert ushort[] into byte[] and back

I have a ushort array that needs converting into a byte array to be transferred over a network. Once it …

c# arrays byte ushort
How to write byte by byte to socket in PHP?

How to write byte by byte to socket in PHP? For example how can I do something like: socket_write($…

php sockets byte raw-sockets
Java binary literals - Value -128 for byte

Since SE 7 Java allows to specify values as binary literal. The documentation tells me 'byte' is a type that can …

java binary byte literals twos-complement
bitwise-ANDing with 0xff is important?

Doesn't bitwise-ANDing with 0xff essentially mean getting the same value back, for that matter, in this code? byte[] packet = reader.…

java byte bitwise-operators short bitwise-and
Why does the read() in FileInputStream return an integer?

This page shows says that it is so that the method can return -1 when it wants to indicate that …

java byte fileinputstream
Why is the sum of bytes integer?

I have tyo byte variable byte a = 3; byte b = 4; If I sum them, the value of sum is integer. byte …

java type-conversion integer byte type-mismatch
Golang - ToUpper() on a single byte?

I have a []byte, b, and I want to select a single byte, b[pos] and change it too upper …

go byte uppercase lowercase
Java - Convert Human Readable Size to Bytes

I've found lots of information about converting raw byte information into a human-readable format, but I need to do the …

java byte long-integer human-readable
wchar ends with single null byte or two of them?

I just don't understand and can't find much info about wchar end. If it ends with single null byte, how …

c++ string null byte wchar