I am new to GCP/SpringBoot and working on a project where I have a scenario to read a file that is present in the project directory. The below code works fine when I run it with localhost but fails with "File not Found" after deploying the Springboot application to cloudrun.
Can anyone help on how to read the file or what is the location to place the file.
InputStream is = new FileInputStream("Legend.jpg");