Write it to a MemoryStream instead...beware that if the size of the executable exceeds available memory, it might not be a nice idea after all. -.-