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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -