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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -