As the question mentioned, I have a memorystream from a Byte[] ByteArr. How can I check if it can convert to a bitmap before using it with Bitmap myImg = new Bitmap(memorystream).
Update Problem: In my situation, I load an Image from Internet through a URL, then if the Img downloaded already I change bitmap to base64string, if not download I change url to base64string. And then I save in xml file. Next time I load from XML and change base64String to byte[], then byte[] can be a string or a bitmap. So I want to detect which type my memorystream from byte[] be (Image or String) before converting it.