const imgUrl = ref(''); const { data, headers } = await axios({ method: "get", responseType: "arraybuffer", url: "https://admiraltyapi.azure-api.net/avcso-disco/notes?file=Ch9fJSLkId@K1T7VT=nhI0O5Hw3QJbBJ447f52<dpj`ce:RQjVAbVvO?KmI>2 6@t '5mafwhjqml0&f =text/plain", headers: {" ocp-apim-subscription ": "XXXX ",}, params: {// Few parameters description file: "Ch9fJSLkId@K1T7VT=nhI0O5Hw3QJbBJ447f52< DPJ 'CE :RQjVAbVvO?KmI>26@t' 5MAfwhjQMl0", f: "text/plain", }, }); Tiff. Initialize ({// this Tiff is a plugin TOTAL_MEMORY: 200000000,}); var tiff = new Tiff({ buffer: data }); imgUrl.value = tiff.toDataURL(); // Is the API for converting to Base64Copy the code
  • Tiff plugin github address