File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
modules/examples/src/main/java Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ public static void main(String[] args) {
39
39
.execute ()
40
40
.getResult ();
41
41
42
+ // Note: for byte response (Output Stream) use:
43
+ //InputStream resultAsInputStream =
44
+ // client.getDocumentAsStream(documentInfoOptions)
45
+ // .execute()
46
+ // .getResult();
47
+
42
48
// Add Bob Smith's address to the document
43
49
document .put ("address" , "19 Front Street, Darlington, DL5 1TY" );
44
50
@@ -51,6 +57,15 @@ public static void main(String[] args) {
51
57
.db (exampleDbName )
52
58
.document (document )
53
59
.build ();
60
+
61
+ //Note: for byte request (Input Stream) use:
62
+ //PostDocumentOptions updateDocumentOptions =
63
+ // new PostDocumentOptions.Builder()
64
+ // .db(exampleDbName)
65
+ // .contentType("application/json")
66
+ // .body(inputStream)
67
+ // .build();
68
+
54
69
DocumentResult updateDocumentResponse = client
55
70
.postDocument (updateDocumentOptions )
56
71
.execute ()
You can’t perform that action at this time.
0 commit comments