How to upload captured image from camera plugin with some form data in Ionic 3?
0
I know this question was asked many times but no solution is working for me. So I am posting this again. I want to upload captured image from camera plugin with some form data like product name and product description to the Java web service. html file code: <ion-content padding> <button ion-button (click)="capture_image()">Capture Image</button> <button ion-button (click)="upload_image()">Upload Image</button> <img [src]="sanatizeBase64Image(myphoto)" onError="this.onError=null;"> </ion-content> ts file code: capture_image(){ const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.DATA_URL, encodingType: this.camera.EncodingType.JPEG, mediaType: t