问题描述#
This seems to be a bit of an infamous error all over the web. So much so that I have been unable to find an answer to my problem as my scenario doesn't fit. An exception gets thrown when I save the image to the stream.Weirdly this works perfectly with a png but gives the above error with jpg and gif which is rather confusing.Most similar problem out there relate to saving images to files without permissions. Ironically the solution is to use a memory stream as I am doing....More detail to the exception. The reason this causes so many issues is the lack of explanation :(OK things I have tried so far.
提示词#
None