Fixed 'access denied' issue by passing file in over pipe.