Top "Bytearray" questions

An array is an ordered linear data structure consisting of a collection of elements (values, variables, or references), each identified by one or more indexes.

Postgres bytea column is returning string (char array) instead of byte array

I have been using C# to write a concrete provider implementation for our product for different databases. W/out getting …

c# postgresql bytearray binary-data npgsql
convert a LongBuffer/IntBuffer/ShortBuffer to ByteBuffer

I know a quick way to convert a byte/short/int/long array to ByteBuffer, and then obtain a byte …

java arrays bytearray nio
How do I dump the struct into the byte array without reflection?

I already found encoding/binary package to deal with it, but it depended on reflect package so it didn't work …

struct binary bytearray go structure
Quick way to get the contents of a MemoryStream as an ASCII string

I have a JSON string in a MemoryStream. I am using the following code to get it out as an …

c# string .net-4.0 bytearray memorystream
How to convert ByteBuffer into image in Android

I am receiving jpg image through socket and it is sent as ByteBuffer what I am doing is: ByteBuffer receivedData ; // …

android image bitmap bytearray bytebuffer
Difference between String.getBytes() and IOUtils.toByteArray()?

I'm testing the IOUtils. I have problems to convert an InputStream into a byte array: private static final String LOREM_…

java junit bytearray apache-commons
How do I convert byte array to UInt32 array?

Lets say In C++ I got code like this.. void * target uint32 * decPacket = (uint32 *)target; So in C# it would …

c# arrays bytearray uint32
How can I get the single bytes from a multibyte PHP string variable in a binary-safe way?

Let's say (for simplicity's sake) that I have a multibyte, UTF-8 encoded string variable with 3 letters (consisting of 4 bytes): $original = …

php utf-8 byte bytearray multibyte
ByteArray to BitmapData AS3

I'm using com.adobe.images.PNGEncoder to encode bitmapData to a byteArray. Is there a way to convert the byteArray …

actionscript-3 bytearray bitmapdata
How to compress image byte[] array to JPEG/PNG and return ImageSource object

I have an image (in the form of a byte[] array) and I want to get a compressed version of …

c# wpf image bytearray imagesource