Ich habe eine Reponsive Bootstrap-Anwendung und beim Versuch, das PDF von Handy zu öffnen bekommen Fehler. Ich bin in der Lage, die pdf von iphone zu öffnen aber von android Chrom heißt es „media not supported exception
“Android Chrome - Kann nicht geöffnet werden PDF
ich meinen Anwendungstyp als „Octet-Stream“ habe
Vielen Dank für Ihre Hilfe.
Ja ich es auf „application/pdf“ und noch nicht das pdf in android Chrom öffnet. Aber es funktioniert in ios Chrome oder Safari oder einem anderen Browser. –
@RequestMapping (value = "/ pdf/{formRefId}", method = RequestMethod.GET erzeugt = "application/pdf") @PreAuthorize ("@ mysiteAuthorizationService.hasPermission ('eacceptance_form_doc_ref', # formRefId)") \t public ResponseEntity downloadFormPdf (@PathVariable ("formRefId") String formRefId, Antwort HttpServletResponse) löst IOException {\t ResponseEntity responsePdf = serviceClient.downloadFormPdf (formRefId); \t AntwortantwortPdf; \t \t} –