You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(servicedetails, 'Service Details');
const formdata={servicedetails:servicedetails,}
console.log(formdata)
##i can see my image as binary in console log but null in payload
base64ToBinary(base64Data: string): ArrayBuffer {
const binaryString = atob(base64Data);
const len = binaryString.length;
const bytes = new Uint8Array(len);
for (let i = 0; i < len; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return bytes.buffer;
}
The text was updated successfully, but these errors were encountered:
const servicedetails = this.certificationForm.value.serviceCertifications.map((service: any, index: number) => {
const base64String = this.serviceImagePreviews[index]?.image;
let binaryData: ArrayBuffer | null = null;
if (base64String) {
console.log('yes basestring')
const base64Data = base64String.split(',')[1];
binaryData = this.base64ToBinary(base64Data);
console.log(binaryData,'binary')
}
return {
award_image: binaryData,
received_date: service.date,
remarks: service.remarks,
};
}) || [];
console.log(servicedetails, 'Service Details');
const formdata={servicedetails:servicedetails,}
console.log(formdata)
##i can see my image as binary in console log but null in payload
base64ToBinary(base64Data: string): ArrayBuffer {
const binaryString = atob(base64Data);
const len = binaryString.length;
const bytes = new Uint8Array(len);
for (let i = 0; i < len; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return bytes.buffer;
}
The text was updated successfully, but these errors were encountered: