How to pass string file path as HttpPostedfile to fileupload control?

Posted by rahul on Stack Overflow See other posts from Stack Overflow or by rahul
Published on 2010-04-11T10:53:30Z Indexed on 2010/04/11 11:03 UTC
Read the original article Hit count: 669

Filed under:
|

Hi friends,

I have got little tricky issue i.e I am using API of a product which has few methods for uploading image. The UI part of the product has one file upload control which takes files and convert that into binary and save it to database. In the coding part they are using one method where they send this fileupload.postedfile as one of the input parameter to the method. Now my requirement is, I have a directory where there are hundred of files which i have to send each file one by after another to this method as a input. Now i wish to know how to pass a file name as "HttpPostedFile" to that method as a parameter. I have no other option other than using that API (our clients requirement). Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET