GridFS does not play well with AfNetworking or remote downloading of images

I have an app that used GridFS to store the images of a document (references). I am trying to use AfNetworking to download the images when a UITableViewCell is shown. However AFNetworking does not have a method that deals with image data that is stored in binary form i.e. it asks for a physical URL on the server. Please see (https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking) under image downloads. I trealy need to use AFNetworking methods for caching etc.

Any tips?

Answers


GridFS is a filesystem. If you want to serve images over HTTP, which is something AFNetworking can handle, you'll need to set that up to a web server.

Apache and Nginx appear to both have modules to server GridFS, so that'd be a good place to start.


Need Your Help

Which directories are private to specific users by default on UNIX-based systems?

linux unix filesystems

Which directories and files in UNIX-based file systems have default user permissions set? For example, a user's home directory can't be seen by other users on a system without his permission. What ...

How to specify multiple acceptParamNames in Struts2 using annotations (convention plugin)?

jsp struts2 struts2-convention-plugin

I'm trying to set multiple acceptable parameters through the params interceptor like as follows.