Use the "temporary://" stream wrapper as "temp://" is not defined.