Often it is required to load images into PAS objects and other objects. Here's a simple way to load the image into memory so you don't have to copy it to the hard drive.
Make sure you use DISPOSE to remove the objects created so they do not impact memory
Dim f As DOb.File = C("valve.png")
Dim ms As New io.memoryStream(f.Item.FileData)
Dim img As Image = Image.FromStream(ms)