How to get uploaded image to variable

I need to show the uploaded image in a new page. So I’m thinking of assigning image to a variable. Is that possible to do so?

Thanks,
Madhuja

Script injection again.