Store pictures as files or in the database for a web app?

后端 未结 10 1941
孤城傲影
孤城傲影 2020-11-22 06:32

My question is fairly generic and I know there might not be an 100% answer to it. I\'m building an ASP .NET web solution that will include a lot of pictures and hopefully a

10条回答
  •  甜味超标
    2020-11-22 07:22

    1. Here is a step-by-step example (general approach, Spring implementation, Eclipse) of storing images in file system and holding their metadata in DB -- http://www.devmanuals.com/tutorials/java/spring/spring3/mvc/Spring3MVCImageUpload.html
    2. Here is an example too -- http://www.journaldev.com/2573/spring-mvc-file-upload-example-tutorial-single-and-multiple-files
    3. Also you can investigate a codebase of this project -- https://github.com/jdmr/fileUpload . Pay attention to this controller.

提交回复
热议问题