dotnet / dotnet/wpf

System.Windows.Media.Imaging 'Cannot write to the stream'

Open
#7,878 1 comment 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/SystemWindowsMediaImaging-Cannot-wri/1030948)._

---
I have a TIF file which measures 28" wide by 170" high at 400dpi with CCITT4 compression. It was created using classes/functions in the System.Windows.Media.Imaging namespace. I'm trying to rotate it by 90 degrees and save the resulting image. The encoder seems to write for a while, then gives the error 'Cannot write to the stream'. It does this for memory stream or file stream. I'm running VS2017 and I have a subscription through my employer, but it is not at all obvious how I would open a support case with Microsoft. It would be helpful to have a link like that in VS. Anyway, the image is of our company's IP so I can't just randomly post the image. Other images seem to have the same problem.

---
### Original Comments

#### Feedback Bot on 5/15/2020, 02:04 PM:

(private comment, text removed)
#### Bryan.Hazel on 5/15/2020, 09:54 PM:

(private comment, text removed)
#### Rui Zhang [MSFT] on 5/20/2020, 07:26 AM:

(private comment, text removed)
#### Feedback Bot on 5/27/2020, 10:08 AM:

(private comment, text removed)
#### Feedback Bot on 6/16/2020, 07:56 AM:

(private comment, text removed)
#### Feedback Bot on 7/3/2020, 11:45 AM:

(private comment, text removed)
#### Fiona Niu [MSFT] on 1/21/2022, 01:01 PM:

(private comment, text removed)
#### Bryan.Hazel on 1/21/2022, 08:35 PM:

(private comment, text removed)
#### Feedback Bot on 2/7/2022, 03:08 PM:

(private comment, text removed)

---
### Original Solutions

#### Feedback Bot solved on 6/11/2020, 07:42 AM, 0 votes:

We are unable to investigate this issue further without the additional information requested.

#### Bryan.Hazel on 6/11/2020, 09:17 PM:

(private comment, text removed)
#### Mila Zhou [MSFT] on 6/12/2020, 07:51 AM:

(private comment, text removed)
#### Bryan.Hazel on 6/16/2020, 01:08 AM:

(private comment, text removed)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.