mardi 4 août 2020

How to store and display images from the local file system in a Web Application

I am working on a web application in Java. The purpose of this application is to generate a QR Code form the data which is provided by the user. The application generates the QR Code in an image format and stores that image at location "c:/image/QRCode.png" (QRCode.png is the image generated by the application). I want to display that image (QR Code) to the user on a web page. But the problem is that the web page does not display the image. An error occurs that says: "Not allowed to load local resources." This application is deployed on the GlassFish server. Can anyone help how I resolve this problem?




Aucun commentaire:

Enregistrer un commentaire