(#2577) - fix binary/blob attachments over http

LevelDB is broken and I don't have the patience right now to figure out why.
Also, you should really be looking at this diff with `?w=0`. Most of what I changed was indentation.