try { byte[] byteStream; byteStream = ToByteArray(sample); Stream stream = new MemoryStream(byteStream); if (filename != null && filename != "") { string imgCropFileName = "Crop_" + DateTime.Now.Day + filename; MessageBox.Show("FileName" + " " + imgCropFileName); UploadFile(imgCropFileName, stream); } else MessageBox.Show("FileName" + " " + filename); } catch (Exception ex) { MessageBox.Show(ex.Message); }
System.Windows.Media.Imaging.BitmapEncoder
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)