Top "Byte" questions

A unit of information usually corresponding to 8 bits.

How to convert a byte[] to a BufferedImage in Java?

I'm posting this thread because I have some difficulties to deal with pictures in Java. I would like to be …

arrays byte bufferedimage
Java creating byte array whose size is represented by a long

I'm trying to create a byte array whose size is of type long. For example, think of it as: long …

java arrays byte long-integer
c# - Read specific bytes of an file

Is there any way to read specific bytes from an file? For example, I have the following code to read …

c# byte
Converted SecretKey into bytes, how to convert it back to a SecretKey?

I convert the secretkey into bytes with following code SecretKey key = KeyGenerator.getInstance("DES").generateKey(); byte[] bkey=key.getEncoded(); Now …

java security byte des
Converting byte array values in little endian order to short values

I have a byte array where the data in the array is actually short data. The bytes are ordered in …

java arrays byte endianness
Determine number of Bytes in ByteBuffer

I have a ByteBuffer that can hold a maximum of (4 + size) bytes (that is, an integer followed by size characters). …

java size byte bytebuffer
Does sizeof return the number of bytes or the number of octets of a type in C?

Simply put in C and variants (unlike that wuss java with its virtual machine) the size of primitive types on …

c byte sizeof word-size
Convert 2 bytes to a number

I have a control that has a byte array in it. Every now and then there are two bytes that …

c# binary bytearray byte twos-complement
How to create a bmp file from byte[] in C#

I have a byte[] array received in TCP Client.The array contains a 24-bit RGB Bitmap file.How to create …

c# bitmap byte rgb 24-bit
Joining byte list with python

I'm trying to develop a tool that read a binary file, makes some changes and save it. What I'm trying …

python list join byte