Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
QuestionHelp reg Syste.diagnostic.EventLog Pin
rashmimansur18-Aug-09 14:04
rashmimansur18-Aug-09 14:04 
QuestionI need a quick fix. I need a way to access the domain's username list from the active directory.... [modified] Pin
JollyMansArt18-Aug-09 11:29
JollyMansArt18-Aug-09 11:29 
AnswerRe: I need a quick fix. I need a way to access the domain's username list from the active directory.... Pin
JollyMansArt18-Aug-09 16:36
JollyMansArt18-Aug-09 16:36 
GeneralRe: I need a quick fix. I need a way to access the domain's username list from the active directory.... Pin
JollyMansArt19-Aug-09 3:02
JollyMansArt19-Aug-09 3:02 
QuestionVS 2005 PropertyGrid do not refresh on ToolStripControlHost inherited items Pin
Xmen Real 18-Aug-09 8:48
professional Xmen Real 18-Aug-09 8:48 
Questionfile sending Pin
Vivek Vijayan18-Aug-09 8:14
Vivek Vijayan18-Aug-09 8:14 
AnswerRe: file sending Pin
Xmen Real 18-Aug-09 8:57
professional Xmen Real 18-Aug-09 8:57 
AnswerRe: file sending Pin
Ian Shlasko18-Aug-09 9:00
Ian Shlasko18-Aug-09 9:00 
I believe the function is called: System.IO.File.GetAllBytes()

Or something like that.

Granted, if it's a big file, you probably want to stream it a chunk at a time, using an algorithm kind of like this:
byte[] buffer = new byte[BUFFER_SIZE];
StreamReader sr = ...open the file...
while (!sr.EndOfStream)
{
  int numBytes = sr.Read(buffer, 0);
  yourNetworkStreamWriter.Write(buffer, 0, numBytes);
}


Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

AnswerRe: file sending Pin
N a v a n e e t h18-Aug-09 15:39
N a v a n e e t h18-Aug-09 15:39 
AnswerRe: file sending Pin
Rajesh R Subramanian18-Aug-09 17:41
professionalRajesh R Subramanian18-Aug-09 17:41 
QuestionDataTable Find Connected Object Pin
I Believe In GOD18-Aug-09 7:21
I Believe In GOD18-Aug-09 7:21 
AnswerRe: DataTable Find Connected Object Pin
Moreno Airoldi18-Aug-09 7:47
Moreno Airoldi18-Aug-09 7:47 
QuestionInvalid Padding when decrypting Pin
musefan18-Aug-09 6:29
musefan18-Aug-09 6:29 
AnswerRe: Invalid Padding when decrypting Pin
DaveyM6918-Aug-09 7:08
professionalDaveyM6918-Aug-09 7:08 
GeneralRe: Invalid Padding when decrypting Pin
Hristo-Bojilov18-Aug-09 7:21
Hristo-Bojilov18-Aug-09 7:21 
GeneralRe: Invalid Padding when decrypting Pin
musefan18-Aug-09 7:23
musefan18-Aug-09 7:23 
AnswerRe: Invalid Padding when decrypting Pin
musefan19-Aug-09 1:29
musefan19-Aug-09 1:29 
QuestionHow to identify the active tab in IE? Pin
Jacobb Michael18-Aug-09 6:22
Jacobb Michael18-Aug-09 6:22 
Questionsort list Pin
nikhil123418-Aug-09 5:13
nikhil123418-Aug-09 5:13 
AnswerRe: sort list Pin
Hristo-Bojilov18-Aug-09 5:46
Hristo-Bojilov18-Aug-09 5:46 
AnswerRe: sort list Pin
Luc Pattyn18-Aug-09 13:19
sitebuilderLuc Pattyn18-Aug-09 13:19 
QuestionGetting Authentication Failure error message. Pin
V K 218-Aug-09 5:10
V K 218-Aug-09 5:10 
AnswerRe: Getting Authentication Failure error message. Pin
Saksida Bojan18-Aug-09 7:12
Saksida Bojan18-Aug-09 7:12 
AnswerRe: Getting Authentication Failure error message. Pin
Luc Pattyn18-Aug-09 13:20
sitebuilderLuc Pattyn18-Aug-09 13:20 
Question[Message Deleted] Pin
VengefulSakhmet18-Aug-09 5:06
VengefulSakhmet18-Aug-09 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.