I have a MemoryStream object, and i want to write it to a file and pass it as a parameter in the following passFile method. The passFile method currently accepts a FileStream object as a parameter, but is there a way where i could convert the MemoryStream object to a FileStream object? Help
MemoryStream ms = new MemoryStream();
public void passFile (FileStream file){
}