![Wd dx 4000 startup failed 0xd9 Wd dx 4000 startup failed 0xd9](/uploads/1/2/4/7/124791182/124453038.png)
How can the answer be improved? Jan 03, 2019 I also couldn't find a port 8080 that was running. I changed the port in data.systems to port 81 and it is still showing up as port 8080 is used by other programs. Download free Unifi Port 8080 Is Used By Other Programs Startup Failed. 8080 Is Used By Other Programs Startup Failed 0xd9 Unifi Port 8080 Is Used By Other.
I am writing a .jpg file to my app's Documents directory like this:
Later, I load that image back into a UIImage using:
I know it works because I can draw the image in a table cell and it is fine. Now if I try to use UIImageJPEGRepresentation(myImage, 1.0), the debugger prints out these lines:
And the function returns nil. Does anybody have an idea why this would happen? I haven't done anything to manipulate the UIImage data after it was loaded. I just provided the UIImage to an image view in a cell. I set the image view properties such that all the images in the cells line up and are the same size, but I don't think that should have anything to do with being able to convert the UIImage to NSData.
viperacr99viperacr9932822 gold badges44 silver badges1010 bronze badges
1 Answer
The images were not corrupt, I was able to display them correctly. The issue is possibly a bug in UIImage, or perhaps the documentation should be more clear about using imageWithContentsOfFile:.
I was able to eliminate the error message by changing
to
viperacr99viperacr9932822 gold badges44 silver badges1010 bronze badges