src/main/java/org/lightcouch/CouchDbClientBase.java
public Response saveAttachment(InputStream in, String name, String contentType) {
		assertNotEmpty(in, "in");
		assertNotEmpty(name, "name");
		assertNotEmpty(contentType, "ContentType");
		final URI uri = buildUri(getDBUri()).path(generateUUID()).path("/").path(name).build();
		return put(uri, in, contentType);
	}
public Response saveAttachment(InputStream in, String name, String contentType) {
		assertNotEmpty(in, "in");
		assertNotEmpty(name, "name");
		assertNotEmpty(contentType, "ContentType");
		final URI uri = buildUri(getDBUri()).path(generateUUID()).path("/").path(name).build();
		return put(uri, in, contentType);
	}
public Response saveAttachment ( InputStream in , String name , String contentType ) { assertNotEmpty ( in , "in" ) ; assertNotEmpty ( name , "name" ) ; assertNotEmpty ( contentType , "ContentType" ) ; final URI uri = buildUri ( getDBUri ( ) ) . path ( generateUUID ( ) ) . path ( "/" ) . path ( name ) . build ( ) ; return put ( uri , in , contentType ) ; }
Saves an attachment to a new document with a generated <tt>UUID</tt> as the document id.
<p>To retrieve an attachment, see {@link #find(String)}.
@param in The {@link InputStream} holding the binary data.
@param name The attachment name.
@param contentType The attachment "Content-Type".
@return {@link Response}
Saves an attachment to a new document with a generated <tt > UUID< / tt > as the document id . <p > To retrieve an attachment see {