About 11,300,000 results
Open links in new tab
  1. .net - What is a byte [] array? - Stack Overflow

    Jun 28, 2015 · 21 In .NET, a byte is basically a number from 0 to 255 (the numbers that can be represented by eight bits). So, a byte array is just an array of the numbers 0 - 255. At a lower …

  2. c# - byte [] to hex string - Stack Overflow

    Mar 8, 2009 · How do I convert a byte[] to a string? Every time I attempt it, I get System.Byte[] instead of the value. Also, how do I get the value in Hex instead of a decimal?

  3. How do I initialize a byte array in Java? - Stack Overflow

    Jun 26, 2012 · I have to store some constant values (UUIDs) in byte array form in java, and I'm wondering what the best way to initialize those static arrays would be. This is how I'm currently …

  4. java - Byte [] to InputStream or OutputStream - Stack Overflow

    Jan 19, 2010 · I have a blob column in my database table, for which I have to use byte[] in my Java program as a mapping and to use this data I have to convert it to InputStream or …

  5. Convert byte to string in Java - Stack Overflow

    Dec 28, 2011 · Because gustafc's answer has a very important point: String (byte []) constructor uses the System default encoding to convert the byte array into String characters. One should …

  6. math - Converting bytes to megabytes - Stack Overflow

    I've seen three ways of doing conversion from bytes to megabytes: megabytes=bytes/1000000 megabytes=bytes/1024/1024 megabytes=bytes/1024/1000 Ok, I think #3 is totally wrong but I …

  7. What are Unicode, UTF-8, and UTF-16? - Stack Overflow

    To compensate, a reserved byte order mark can be placed at the beginning of a data stream which indicates endianness. Thus, if you are reading UTF-16 input, and no endianness is …

  8. How to convert byte[] to Byte[] and the other way around?

    Mar 23, 2020 · How to convert byte[] to Byte[] and also Byte[] to byte[], in the case of not using any 3rd party library? Is there a way to do it fast just using the standard library?

  9. Initialize a byte array to a certain value, other than the default null?

    May 27, 2011 · When the array is set to UserCode = new byte[6] in the constructor the byte array gets automatically initialized to the default null values. Is there no way that I can make it …

  10. Why does a byte only have 0 to 255? - Stack Overflow

    Feb 13, 2011 · 23 Byte ≠ Octet Why does a byte only range from 0 to 255? It doesn’t. An octet has 8 bits, thus allowing for 2 8 possibilities. A byte is ill‐defined. One should not equate the …

Refresh