| Previous | Next |
| WINCODEC_ERR_STREAMWRITE | WINCODEC_ERR_STREAMNOTAVAILABLE |
WINCODEC_ERR_STREAMREAD
WINCODEC_ERR_STREAMREAD means that a WIC codec failed while reading its input stream. Unlike WINCODEC_ERR_BADSTREAMDATA, this indicates an I/O failure rather than merely unrecognized bytes.
What to check
- Inspect the error returned by the source stream, file system, network client, or custom
IStreamimplementation. - Verify that the stream remains open and seekable when the chosen decoder requires additional reads later in the decode process.
- For remote downloads, distinguish a transport failure from a successfully received but malformed image response.
Log both the WIC code and the lower-level I/O status; the latter usually identifies the corrective action.
Microsoft: WIC decoding overview
Looking for a different code? Search another status or error code.