var Products = record.fields.Foto;
// Check if the 'Products' field contains PNG base64 data
if (Products.indexOf("data:image/png;base64,") !== -1) {
// Remove the PNG base64 prefix
Products = Products.replace("data:image/png;base64,", "");
}
// Check if the 'Products' field contains JPEG base64 data
if (Products.indexOf("data:image/jpeg;base64,") !== -1) {
// Remove the JPEG base64 prefix
Products = Products.replace("data:image/jpeg;base64,", "");
}
// Set the modified value to the 'Producten' field (assuming this is the correct field name)
Producten = Products;
Handle Image from JSON
Who is online
Users browsing this forum: No registered users and 0 guests