getting raw file contents as (temp file-) resource