Cocoahttpserver Serves Images with iPhone App Bundle

I'm having trouble getting Cocoahttpserver from Duesty Designs (the awesome CocoaAsyncSocket open source library developers) to serve images from my application. Using the iPhone project example, I can serve the html file from the resource directory in my project, but the images link to:

<img src='foo.png' />

not displayed.

Does anyone know why or what I need to do to make this work?

+3
source share
1 answer

The PNG images in your resource catalog are funky-encoded. modmyi has a good article on this.

, , .png_unconverted Cocoahttpserver .png .png_unconverted.

CopyPNGFile , (, , PNG ).

, JPEG. , .

+4

Source: https://habr.com/ru/post/1721040/


All Articles