Skip to content

Web Service Byte to Image

Vishwajeet Jha

Vishwajeet Jha

Asked Sep 24, 2015, 5:20 AM EDT1 answer
Share
LinkedInX
How to convert bytes into image in web service?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Manoj Bhoir
    +1
    Hi,
     
    You can simply use below code :
     
    Code
    using (MemoryStream mStream = new MemoryStream(byteArray)) 
    {     
          return Image.FromStream(mStream); 
    }
    +1