storing image to byte[] into Mysql using asp.net and c#
问题 I am using Asp.net with C# and back-end MySql to keep Images as byte[] array with using BLOB datatype TABLE : ImageLog ImgID int (auto increment) ImageLogo blob I am using following function to convert image to array... private byte[] ConvertImageToByteArray(FileUpload fuImgToByte) { byte[] ImageByteArray; try { MemoryStream ms = new MemoryStream(fuImgToByte.FileBytes); ImageByteArray = ms.ToArray(); return ImageByteArray; } catch (Exception ex) { return null; } } here is calling method for