I have the path of a file I would like to upload but the method takes the file input Stream.
Can anyone tell me how I can get the input stream from the path?
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.
public string uploadfile(string token, string filenameP, DateTime modDate, HttpPostedFileBase file)
{
//... code to upload file
}
I would like something like the ClassLoader like in java.
See this question here.