By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

Console output mode?!?

P: n/a
Nak
Hi there,

I'm using VB.NET to write CGI apps and I've come across a weird one with
the console. I use the console to output my HTML data, all is fine except
when I output a byte array, for example,

Dim pBytData() As Byte = fileToByteArray(cStrURL)
Dim pStmOutput As Stream = Console.OpenStandardOutput()
Call pStmOutput.Write(pBytData, 0, pBytData.Length)
Call pStmOutput.Close()

The computer beeps continuously once I have done this. I am attempting
to use this for creating a download interface for my web site and I need to
send the files manually. In PHP I would use readfile(). I'm presuming that
I need to set the console to a specific mode before I can do this?

I daren't run it on the server, I don't think they would like me very
much ;-)

Nick.
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.