java - Images stored on disk - search by name -
i writing java application (actually struts2 web application) , need store , retrieve images. found out not idea store images in database (can store images in mysql) , preferable write them on disk, in directory.
at point need access images name contains substring. if used database, write query this: select .. name %my_substring%
. how can achieve same functionality using java file system? certainly, don't want load images, , iterate them find proper name.
as marked answer in question linked states:
do not store images in database. store images in directories and store references images in database.
thus, query become select path name %my_substring%
(where path
name of column reference image stored).
once query executed, application access images per result of query.
Comments
Post a Comment