I am trying to send a base64 image through the url but it keeps giving me “Error 414 Request URL is too Long”.
I implemented sending image through URL in GET and it is working perfectly.
request.open(constants.HTTP_METHOD_POST, "https://api.ocr.space/parse/image?apikey=" + apiKey + "&base64Image=data:image/jpeg;base64," + this.view.camera.base64 + "&filetype=JPG", false); request.setRequestHeader("Content-type","image/jpg");
I am using the image taken from the phone camera as base64. I made sure that the type is JPG.
Please provide help if you can. Thanks in advance.