Top "Byte" questions

A unit of information usually corresponding to 8 bits.

Base64 String to byte[] in java

I am trying to convert base64 String to byte array but it is throwing following error java.lang.IllegalArgumentException: Illegal …

java string base64 byte encoder-decoder
Convert short to byte[] in Java

How can I convert a short (2 bytes) to a byte array in Java, e.g. short x = 233; byte[] ret = new …

java byte short
Empty elements in C# byte array

Is there any method to empty an Byte array in C#? Byte[] array = new Byte[64]; // contain all 0 // write some value …

c# arrays byte
How to convert byte[] to Byte[] and the other way around?

How to convert byte[] to Byte[] and also Byte[] to byte[], in the case of not using any 3rd party …

java arrays byte boxing
How to know bytes size of python object like arrays and dictionaries? - The simple way

I was looking for a easy way to know bytes size of arrays and dictionaries object, like [ [1,2,3], [4,5,6] ] or { 1:{2:2} } Many topics …

python object memory size byte
C - unsigned int to unsigned char array conversion

I have an unsigned int number (2 byte) and I want to convert it to unsigned char type. From my search, …

c byte unsigned-integer type-conversion unsigned-char
In Go, how can I convert a struct to a byte array?

I have an instance of a struct that I defined and I would like to convert it to an array …

arrays struct go byte
Error "This stream does not support seek operations" in C#

I'm trying to get an image from an url using a byte stream. But i get this error message: This …

c# stream byte
C# how to get Byte[] from IntPtr

I have a .dll(not my own) that has a delegate. This delegate Callback function is: "CallBackFN(ushort opCOde, IntPtr …

c# byte bytearray intptr
Converting a byte to a binary string in c#

In c# I am converting a byte to binary, the actual answer is 00111111 but the result being given is 111111. Now …

c# string binary byte