Upload/Download files with ASP.Net using Visual Studio Web Server

Posted by jlnorsworthy on Stack Overflow See other posts from Stack Overflow or by jlnorsworthy
Published on 2010-03-13T07:35:32Z Indexed on 2010/03/13 7:45 UTC
Read the original article Hit count: 225

Filed under:
|

I need to upload image files and store them on the webserver, then be able to display them in html. I'm currently using AppDomain.CurrentDomain.BaseDirectory to get a path to read and write files. Firefox won't display the image as I just get an img tag with "src='C:...'

Is it possible to read/write files like this with Visual Studio web server? I know it'll be possible with IIS, but I don't want to do that if I don't have to (pretty new to web development)

I'm implementing this with ASP.Net MVC 2, but I don't think that is relevant.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio-2008