Class ImageInfoBLOB

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ConnectionProvider

    public class ImageInfoBLOB
    extends HttpSecureAppServlet
    Image upload process. This class is in charge of storing image files in AD_IMAGE table for columns with reference ImageBLOB. This class also checks the mime type of the file uploaded to verify only supported images are uploaded and also resizes the image following the column configuration options.
    Author:
    Openbravo
    See Also:
    Serialized Form
    • Constructor Detail

      • ImageInfoBLOB

        public ImageInfoBLOB()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
        Description copied from class: HttpBaseServlet
        Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class HttpSecureAppServlet
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException