0

I want to get blob value return, but it's return nothing but consoling value

canvas.toBlob(
            (blob) => {
                // Handle the compressed image. es. upload or save in local state
                res = new File([blob], file.name, { type: file.type });
                console.log(res)
                return res;
            },
            MIME_TYPE,
            QUALITY
        );
abhijith v
  • 163
  • 4
  • 14

0 Answers0