Hello, I have this code in cs
and this in aspx
now I would like to save a copy of the image on the server, how can I do?
var imagePath = Server.MapPath("myPath"); System.Drawing.Image image = System.Drawing.Image.FromFile(imagePath); using (var stream = new System.IO.MemoryStream()) { image.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
MyRadBinaryImage.Width = 525
MyRadBinaryImage.Height = 613; MyRadBinaryImage.DataValue = stream.ToArray(); }<telerik:radbinaryimage id="MyRadBinaryImage" runat="server" alternatetext="BinaryImage" width="525" height="613" resizemode="Fit" ClientIDMode="Static"></telerik:radbinaryimage>now I would like to save a copy of the image on the server, how can I do?
