How do I Upload A MP3 File To A Local HTTP Web Server (C#) -


i wondering how upload mp3 file localhost http web server. tried caused error listener

httplistenercontext context = _httplistener.getcontext(); byte[] _responsearray = file.readallbytes(@"c:/users/user1/desktop/test.mp3"); context.response.outputstream.write(_responsearray, 0, _responsearray.length); context.response.keepalive = false; context.response.close(); console.writeline("respone given request."); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -