Posts Under ''

Serving Image from Absolute Path in Java/J2EE

import java.io.*; import java.net.URLDecoder; import javax.servlet.*; import javax.servlet.http.*; /** * Serving Image from Absolute Path. */ public class ImageServAbsolutePath extends HttpServlet { private static final long serialVersionUID = 1L; private static final int BUFFER_SIZE = 10240; private String imagePath; public void init() throws ServletException { /*——- Image Base Path ———–*/ this.imagePath = "/images"; } protected […]

Read more »