Downloading byte array from Spring Boot to Vue frontend
问题 I have the following functions, I am trying to read a string from my MongoDB database which is an image decode it and send it to my Vue frontend to be downloaded. @GetMapping(path = "/signature/{signatureId}", produces = MediaType.IMAGE_PNG_VALUE) public byte[] downloadSignature(String signatureId) { Signature signature = routeRepository.findBySignature(signature); byte[] bytes = Base64.getDecoder().decode(signature.getSignature().getBytes(StandardCharsets.UTF_8)); // This try-catch just