How would i get a file input stream from its path?
<p>I have the path of a file i would like to upload but the method takes the file input Stream.</p>

<p>Can anyone tell me how i can get the input stream from the path?</p>

<p>I have upload files before when using a open file dialog and that takes the file in as a file input Stream, but the new section of my webpage the user does not select the file, i have to go grab it with code, but i know its file path.</p>

<pre><code>public string uploadfile(string token, string filenameP, DateTime modDate, HttpPostedFileBase file)
{
    //... code to upload file
}
</code></pre>

<p>I would like something like the ClassLoader like in java.</p>

<p>See this question here.</p>

<p><a href="http://stackoverflow.com/a/793216/1479146">http://stackoverflow.com/a/793216/1479146</a></p>
