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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -