How to send Base64 code to webservice webservice?
问题 I try to send my base64 code to my webservice : this is my base64 : I send like this : let collection= {}; collection.base64 = this.state.data; fetch('url', { method: 'POST', headers: new Headers({ Accept: 'application/json', 'Content-Type': 'application/json', // <-- Specifying the Content-Type }), body: JSON.stringify({'JsonWithImage': collection.base64 }), // data can be `string` or {object}! }) However, as you see it gives error message which is in image. I think because of size of image