Hi ,
I am succesfully using your
I am succesfully using your
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage
to save on teh client machine a FrameworkElement.
Now I would like to send this image also to the server
To do so my idea is to cerate a new MemoryStream :
var stream = new MemoryStream();
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage( element, stream,new PngBitmapEncoder())
and then put the memoryStream to a string and send teh string to the server using
WebClient.UploadStringAsync
the problem I have in this solution is that the MemoryStream returned by the ExportToImage is very short (81 bytes) while I expect an image of around 24kb
have you faced this probolem before? do you have a solution?