Similar problem here:
Probably you can prefix file:// before the file path after getting file path.
file://