Image to blob - Blob to image - in Javascript or Typescript mode (Angular 19)

Discussão em 'Angular' iniciado por Stefano Giammori, Março 9, 2025.

  1. This is how i convert an image to a Blob in a javascript script in angular


    let file = item;
    let image = item.split('.');
    console.log(image);
    var blob = new Blob([file], { type: `image/${image[1]}` });
    let imageSrc = URL.createObjectURL(blob);

    This is what i want to store destructured array

    How can i get the image back having saved the 'name.extension' and the url of the 'blob' in javascript or typescript?

    Continue reading...

Compartilhe esta Página