protected String decrypt(String fileLocation, String key) { } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String image = decrypt("imageEncrypted.txt", "123"); // Now should I write this to the FileSystem? Ideally I would like to avoid that //Then I want to do something like this PrintWriter out = response.getWriter(); // This initializes the writer to write html /* Here write the skeleton of the html <html> <body> etc */ // I know this doesn't work but this is what i want is there any way to do this with out writing the decrypted file to the Filesystem of the Server out.println("<img src=\"" + image + "\" />") // Finish skeleton }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)