User1024191908 posted
I have a generic http handler that receives an image posted from KENDO UI editor.
inside the handler I try to save the file:
byte[] buffer = context.Request.BinaryRead(context.Request.TotalBytes);
FileStream fs = new FileStream(newFileName, FileMode.Create);
fs.Write(buffer, 0, buffer.Length);
fs.Close();
but the file that is saved is not an image anymore (it was a jpg) and the file is slightly smaller.
can anyone help please?
thanks in advance.