I am trying to save image to database with Create method. but when try this code, I get this error:
The input is not a valid Base-64 string as it cont
private byte[] ImageToBytes(Image img, ImageFormat format) { MemoryStream mstream = new MemoryStream(); img.Save(mstream, format); mstream.Flush(); return mstream.ToArray(); }