final URI doc = this.uriHelper.attachmentUri(id, queries, attachmentName);
HttpConnection connection = Http.GET(doc);
if (acceptGzip) {
connection.requestProperties.put("Accept-Encoding", "gzip");
}
<BUG>return executeToInputStreamWithRetry(connection);
</BUG>
}
public void putAttachmentStream(String id, String rev, String attachmentName, String contentType, byte[] attachmentData) {
Misc.checkNotNullOrEmpty(id, "id");

final URI doc = this.uriHelper.attachmentUri(id, queries, attachmentName);
HttpConnection connection = Http.GET(doc);
if (acceptGzip) {
connection.requestProperties.put("Accept-Encoding", "gzip");
}
return executeWithRetry(connection, processor);
}
public void putAttachmentStream(String id, String rev, String attachmentName, String contentType, byte[] attachmentData) {
Misc.checkNotNullOrEmpty(id, "id");
