VB.NET
if (Img.RawFormat.Equals(System.Drawing.Imaging.ImageFormat.Jpeg)) then
Response.ContentType = 'image/jpeg'
Else
..
End if
C#
if (Img.RawFormat.Equals(System.Drawing.Imaging.ImageFormat.Jpeg))
{
Response.ContentType = 'image/jpeg'
}
else
{
..
}
Share with