We have a Windows file share with JPEGs that I'm trying to access from Pivotal Cloud Foundry via a Java Spring Boot REST API. What are the steps needed in both PCF and Java itself to achieve this?
Do I have to mount the drive in PCF first, then I can use the standard java.io libraries somehow to access this file? As of now we are simply wanting to read the JPEG files into a BufferedImage and return them as Base64 after some graphics manipulation (which I know how to do), but I'm stuck on getting my head around what to do for this within the realm of PCF. Obviously, it works just fine on my Windows development machine where my logged-in user also has credentials to the file share and no need to mount it or do anything special.
I keep reading about SMB and a JCIFS library online, but still not sure if this is what I need or how to fully apply this with the technologies at hand.