LocalFile cast as httppostedfile

284 Views Asked by At

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.

0

There are 0 best solutions below