|
|
|
|
270
|
}),
|
270
|
}),
|
271
|
'Content-Type' : 'application/octet-stream',
|
271
|
'Content-Type' : 'application/octet-stream',
|
272
|
// here's the body you're going to send, should be a BASE64 encoded string
|
272
|
// here's the body you're going to send, should be a BASE64 encoded string
|
273
|
- // (you can use "base64" APIs to make one).
|
|
|
|
|
273
|
+ // (you can use "base64"(refer to the library 'mathiasbynens/base64') APIs to make one).
|
274
|
// The data will be converted to "byte array"(say, blob) before request sent.
|
274
|
// The data will be converted to "byte array"(say, blob) before request sent.
|
275
|
}, base64ImageString)
|
275
|
}, base64ImageString)
|
276
|
.then((res) => {
|
276
|
.then((res) => {
|