| Previous | Next |
| WINCODEC_ERR_BADMETADATAHEADER | WINCODEC_ERR_STREAMWRITE |
WINCODEC_ERR_BADSTREAMDATA
WINCODEC_ERR_BADSTREAMDATA means that a WIC codec encountered stream data it could not interpret. It often points to a truncated transfer, an invalid stream position, an incorrectly implemented IStream, or bytes that are not the expected image payload.
Diagnosis
- Record the stream length, current position, read result and source URL or file before retrying.
- For custom streams, verify
Read,Seek, error propagation and lifetime rules under short reads. - For network sources, save the response headers and verify that authentication or proxy content was not passed to the image decoder.
This is different from a generic read failure: the bytes were reached but did not form valid data for the codec.
Microsoft: WIC bitmap decoder and streams
Looking for a different code? Search another status or error code.