Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: Garbage collection & nested objects? Pin
harold aptroot6-Feb-12 11:41
harold aptroot6-Feb-12 11:41 
AnswerRe: Garbage collection & nested objects? Pin
Luc Pattyn6-Feb-12 11:51
sitebuilderLuc Pattyn6-Feb-12 11:51 
GeneralRe: Garbage collection & nested objects? Pin
SledgeHammer016-Feb-12 11:55
SledgeHammer016-Feb-12 11:55 
QuestionHow to implement multi-part FTP Pin
Michael J. Eber6-Feb-12 8:35
Michael J. Eber6-Feb-12 8:35 
AnswerRe: How to implement multi-part FTP Pin
Luc Pattyn6-Feb-12 8:40
sitebuilderLuc Pattyn6-Feb-12 8:40 
GeneralRe: How to implement multi-part FTP Pin
Michael J. Eber6-Feb-12 15:05
Michael J. Eber6-Feb-12 15:05 
AnswerRe: How to implement multi-part FTP Pin
Luc Pattyn6-Feb-12 15:34
sitebuilderLuc Pattyn6-Feb-12 15:34 
AnswerRe: How to implement multi-part FTP Pin
BobJanova6-Feb-12 22:16
BobJanova6-Feb-12 22:16 
You just mean chunking the file? I've not heard of 'multi-part FTP'. If that is what you mean, it's a very common pattern; roughly speaking:

Stream inStream = GetInputStream(); // e.g. new FileStream() etc
Stream outStream = request.GetRequestStream();

// Anything up to a few meg is okay, but making this similar to the TCP packet
// size makes sense
const int blocksize = 8192;
byte[] buf = new byte[blocksize];

int read = 0;
while(0 < (read = inStream.ReadBytes(buf, blocksize)))
 outStream.WriteBytes(buf, read);

Question[Posted in ASP.Net forum] Bug Tracking for ASP.Net Website Pin
Ed Nutting6-Feb-12 2:23
Ed Nutting6-Feb-12 2:23 
AnswerRe: Bug Tracking for ASP.Net Website Pin
Richard MacCutchan6-Feb-12 3:06
mveRichard MacCutchan6-Feb-12 3:06 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Ed Nutting6-Feb-12 3:16
Ed Nutting6-Feb-12 3:16 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Richard MacCutchan6-Feb-12 4:07
mveRichard MacCutchan6-Feb-12 4:07 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Ed Nutting6-Feb-12 5:14
Ed Nutting6-Feb-12 5:14 
AnswerRe: Bug Tracking for ASP.Net Website Pin
Eddy Vluggen6-Feb-12 5:06
professionalEddy Vluggen6-Feb-12 5:06 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Ed Nutting6-Feb-12 5:13
Ed Nutting6-Feb-12 5:13 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Eddy Vluggen6-Feb-12 5:33
professionalEddy Vluggen6-Feb-12 5:33 
GeneralRe: Bug Tracking for ASP.Net Website Pin
Ed Nutting6-Feb-12 5:47
Ed Nutting6-Feb-12 5:47 
AnswerRe: Bug Tracking for ASP.Net Website Pin
Eddy Vluggen6-Feb-12 7:14
professionalEddy Vluggen6-Feb-12 7:14 
Questionwebsite performance Pin
IMQ6-Feb-12 1:15
IMQ6-Feb-12 1:15 
AnswerRe: website performance Pin
J4amieC6-Feb-12 1:51
J4amieC6-Feb-12 1:51 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 
AnswerRe: website performance Pin
Abhinav S6-Feb-12 2:38
Abhinav S6-Feb-12 2:38 
GeneralRe: website performance Pin
J4amieC6-Feb-12 3:27
J4amieC6-Feb-12 3:27 
AnswerRe: website performance Pin
OriginalGriff6-Feb-12 3:15
mveOriginalGriff6-Feb-12 3:15 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 

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.