I answered in another ticket that you open about this unexpected behavior but will paste the answer here to share the information with the community.
After reviewing the presented code snippet, it seems that our code snippet is not correct and the exception was caused because read-only FileStream
object is passed to the FileStream.Write
method. We will do our best to fix the documentation article as soon as possible. Please take a look at this article
in Microsoft documentation for reference. You can replace the Write method with Open and use FileMode.OpenOrCreate as a parameter of the method. Please take a look of the code snippet below for example:
(Stream stream = File.Open(
I hope that this helps.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.