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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -