I use java servlet and ektorp for couchdb). I added image to database but i didn't show it.
AttachmentInputStream data = db.getAttachment("document_id","attachment_id");
I fetched attachment by this way. Problem is that i don't know how to show this fetched image in java servlet.
Thank in advance.
Basically you need to get output stream of HttpServletResponse and do a buffered write.
Copied from link!