Reading an uploaded file in a timer?
I'm looking to read one of three files from a timer based on some state in a database, though I can't find any method to actually do this. I'm trying to compose an email with an HTML body and I want to read from a file instead of, say, a database field or a String literal.
I have this code to get the file URL after doing a directory search:
After I get the FileInfo object, I attempt to open a connection to the file like this:
Calling URL#openConnection() throws an exception, though: