Can this question be taken one step further? What to do if image data is incomplete or corrupted from the server? Fully transport work, the MIME type is image / jpeg, UIImage is designed and non-zero, but the rendering detects inconsistencies in the data, and the log may show “Bad Huffman code” or “premature end of data segment”
How can I capture this error before throwing a UIImage into the view context and thereby get a not-so-beautiful screen image?
Gerard cerchio
source share