Construction of a List of byte[] in a MemoryStream: Wrong number of elements C# -


i'm trying create list of byte[], list of bitmapimage, getting bytes using memorystream.

i put image let see debugger, tells me size of array 1,048,576. , want calculations:

enter image description here

but, let me show result of console.writeline:

enter image description here

there are, @ end, 460 arrays of bytes, , none of them have right number of bytes

and later in code, "out of range" exception

am doing wrong? why debugger giving me "right" values ("right" because want) seems wrong ?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -