Copy file to memory to proceed