Try to use FileReader instead of File, and come-back with an update. I know for sure that with FileReader should work because I used it recently.

application context