Image and document upload/download in Elasticsearch

I've probably found my answer here: Storing images in an index

It looks like it's possible, but inefficient.