If you simply use JSP, connect directly to DB. . . . . Directly implemented in DAO, read the file information separately, and then insert it into a table with the path of the file attached. In other words, there must be at least the path of the file in that table, and then the information you need to save.