How is an image internally stored in a byte array? While debugging in Visual Studio, I can see ASCII codes(I guess). But please someone explain it.
Say, we have an image(BLOB) stored in a table. Fetching that BLOB into a dataTable in the code(in .net) as,
byte[] image = new image();
DataTable dt = new DataTable();
dt.Columns.Add("Image", typeof(byte[]));
\\Consider the BLOB from the DB is fetched into DataTable Image column.
image = dt[Row]["Image"];
Now, how is the BLOB internally stored in byte[] image?
I’ve searched in the internet but couldn’t find anything.
Any image is merely a sequence of bytes structured in accordance with whatever underlying format used to represent it, eg color data, layers, dimensions, etc. The significance of any byte(s) you see during debugging is entirely dependent upon the native format of the image, eg PNG, TIFF, JPEG, BMP, etc.
Hope that’s what you were looking for. If you’re needing something more specific, please amend your original post and perhaps someone can give you more detail.