About 50 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 level, …

  2. Can endianness refer to the order of bits in a byte?

    Endianness and byte order When a value larger than byte is stored or serialized into multiple bytes, the choice of the order in which the component bytes are stored is called byte order, or endian, or …

  3. c++ - Including Windows.h is producing errors of: 'byte': ambiguous ...

    Dec 6, 2025 · I'm getting many errors of the following type. Clearly, Microsoft has a definition of byte that clashes with Standard C++'s definition of std::byte (after a using namespace std, that I use in hund...

  4. Converting string to byte array in C# - Stack Overflow

    Apr 18, 2013 · If you already have a byte array then you will need to know what type of encoding was used to make it into that byte array. For example, if the byte array was created like this:

  5. 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 OutputStream. But I …

  6. c# - How to convert UTF-8 byte [] to string - Stack Overflow

    This converts the byte array to a hexadecimal string representing each byte, which is generally not what you want when converting bytes to a string. If you do, then that's another question, see for example …

  7. c# - Creating a byte array from a stream - Stack Overflow

    Oct 21, 2008 · What is the prefered method for creating a byte array from an input stream? Here is my current solution with .NET 3.5. Stream s; byte[] b; using (BinaryReader br = new BinaryReader(s)) { b...

  8. How do I convert a Stream into a byte[] in C#? - Stack Overflow

    Is there a simple way or method to convert a Stream into a byte[] in C#?

  9. How to solve UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff ...

    Apr 7, 2019 · UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte Please see my screenshot here: I don't know either how to save the original data without losing those …

  10. How to fix: "UnicodeDecodeError: 'ascii' codec can't decode byte"

    UnicodeDecodeError: 'ascii' codec can't decode byte generally happens when you try to convert a Python 2.x str that contains non-ASCII to a Unicode string without specifying the encoding of the …