Click here to Skip to main content
16,007,277 members
Home / Discussions / C#
   

C#

 
AnswerRe: difference between ..... and some help Pin
Harvey Saayman5-Oct-08 22:51
Harvey Saayman5-Oct-08 22:51 
Answerdifference between == and Equals [modified] Pin
DaveyM696-Oct-08 0:36
professionalDaveyM696-Oct-08 0:36 
QuestionDifferent references for Release and Debug Pin
Green Fuze5-Oct-08 10:57
Green Fuze5-Oct-08 10:57 
AnswerRe: Different references for Release and Debug Pin
Thomas Stockwell5-Oct-08 11:46
professionalThomas Stockwell5-Oct-08 11:46 
GeneralRe: Different references for Release and Debug Pin
Green Fuze5-Oct-08 11:54
Green Fuze5-Oct-08 11:54 
GeneralRe: Different references for Release and Debug Pin
Daniel Grunwald5-Oct-08 15:15
Daniel Grunwald5-Oct-08 15:15 
GeneralRe: Different references for Release and Debug Pin
Green Fuze5-Oct-08 22:18
Green Fuze5-Oct-08 22:18 
QuestionHttpWebRequest with addrange from youtube server. Pin
asafbs20045-Oct-08 9:25
asafbs20045-Oct-08 9:25 
hi eveybody, i have a problem, sorry about my english.
when i trying to request for youtube video which i want to download by segments (for that i use addrange), the addrange method doesnt work.
if i try to download from other servers (other downloads) the segments idea work fine, it splits the download with addrange method to parts.
but for some reason from youtube it start from the begining until the file is complete downloaded, and not split the file to segments with "addrange". i think because the server send me an http respone of UDP. but i dont sure. i saw many downloaders who succeed download youtube videos with segments.

maybe someone here knows the problem and can help me.
thnx asaf. =]

my code:
HttpWebRequest REQ = (HttpWebRequest)WebRequest.Create(url);


REQ.AddRange((int)pos, (int)poscount);

HttpWebResponse RES = (HttpWebResponse)REQ.GetResponse();

Stream input = RES.GetResponseStream();

FileStream output = new FileStream(@"c:\temp" + f, FileMode.CreateNew);

byte[] buffer = new byte[RES.ContentLength];

int B;
while ((B = input.Read(buffer, 0, buffer.Length)) > 0)
{
    output.Write(buffer, 0, B);
}


output.Close();

Questionlabel text marquee Pin
Mohammed Elkholy5-Oct-08 8:17
Mohammed Elkholy5-Oct-08 8:17 
AnswerRe: label text marquee Pin
dan!sh 5-Oct-08 8:38
professional dan!sh 5-Oct-08 8:38 
AnswerRe: label text marquee Pin
Perspx5-Oct-08 9:14
Perspx5-Oct-08 9:14 
GeneralRe: label text marquee Pin
Mohammed Elkholy5-Oct-08 9:43
Mohammed Elkholy5-Oct-08 9:43 
QuestionGet Controls Pin
Pedram Behroozi5-Oct-08 4:03
Pedram Behroozi5-Oct-08 4:03 
AnswerRe: Get Controls Pin
PIEBALDconsult5-Oct-08 4:26
mvePIEBALDconsult5-Oct-08 4:26 
GeneralRe: Get Controls Pin
Pedram Behroozi5-Oct-08 4:44
Pedram Behroozi5-Oct-08 4:44 
GeneralRe: Get Controls Pin
#realJSOP5-Oct-08 6:13
professional#realJSOP5-Oct-08 6:13 
AnswerRe: Get Controls Pin
zafersavas5-Oct-08 4:26
zafersavas5-Oct-08 4:26 
GeneralRe: Get Controls Pin
Pedram Behroozi5-Oct-08 4:42
Pedram Behroozi5-Oct-08 4:42 
AnswerRe: Get Controls Pin
dan!sh 5-Oct-08 4:56
professional dan!sh 5-Oct-08 4:56 
GeneralRe: Get Controls Pin
Pedram Behroozi5-Oct-08 5:14
Pedram Behroozi5-Oct-08 5:14 
GeneralRe: Get Controls Pin
dan!sh 5-Oct-08 5:29
professional dan!sh 5-Oct-08 5:29 
GeneralRe: Get Controls Pin
PIEBALDconsult5-Oct-08 5:49
mvePIEBALDconsult5-Oct-08 5:49 
GeneralRe: Get Controls Pin
#realJSOP5-Oct-08 6:14
professional#realJSOP5-Oct-08 6:14 
AnswerRe: Get Controls Pin
Wendelius5-Oct-08 5:52
mentorWendelius5-Oct-08 5:52 
AnswerRe: Get Controls Pin
Giorgi Dalakishvili5-Oct-08 7:10
mentorGiorgi Dalakishvili5-Oct-08 7:10 

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.