Used to convert Image to Stream or byte[] using C#

Using this code, you can able to convert Image to Stream or byte[]. This method is used when you try to upload an Image to the server, You need to convert the image into stream or byte[] to send the image.