I like to access an image from the web/imagesweb/images directory. I like to access this image in the spring controller spring controller, so iI can convert this image to byte[]byte[]. I am creating a chart andand this image is part of the chart display. So , iI am using this byte[]byte[] to construct Graphic2d objectGraphic2d object. Closest iI have got to it is using thethis:
FileSystemResource resource = new FileSystemResource("images/"+imageName); Currently, iI have stored this image in the package structure. I like to do better than this. I like to read directly from web/images dirweb/images directory. Please give me some advice., Thanks.