I am trying to extract images from a dat file that contains more then one image. So far I am successful at getting the first image but that is all. My question is how can you loop through the bytes and tell where the current image ends and the next image begins. I am using MemoryStream to load the bytes and Image.FromStream to get the image.