Introducing getResource for file viewer