world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
public static bool IsValidImage(byte[] bytes) { try { using (MemoryStream ms = new MemoryStream(bytes)) System.Drawing.Image.FromStream(ms); } catch (ArgumentException) { return false; } return true; }
No comments:
Post a Comment