I have a dll to which I have no source code. This has a method that accepts httppostedfile as an input. I wanted to pass a local file stream to this method.
Is it possible somehow to convert the local file stream or bytes to httppostedfile format? An explicit castings does not work.