Click here to Skip to main content
12,355,575 members (69,166 online)
   

C#

 
Questionhow to send sms in windows application? Pin
kiran murkal16-Jan-13 23:57
memberkiran murkal16-Jan-13 23:57 
AnswerRe: how to send sms in windows application? Pin
Pete O'Hanlon17-Jan-13 0:10
protectorPete O'Hanlon17-Jan-13 0:10 
AnswerRe: how to send sms in windows application? Pin
Simon_Whale17-Jan-13 0:10
memberSimon_Whale17-Jan-13 0:10 
QuestionI need a help Pin
Bire50t16-Jan-13 21:25
memberBire50t16-Jan-13 21:25 
SuggestionRe: I need a help Pin
Eddy Vluggen17-Jan-13 0:32
mvpEddy Vluggen17-Jan-13 0:32 
GeneralRe: I need a help Pin
Pete O'Hanlon17-Jan-13 1:03
protectorPete O'Hanlon17-Jan-13 1:03 
GeneralRe: I need a help Pin
Bire50t17-Jan-13 19:18
memberBire50t17-Jan-13 19:18 
AnswerRe: I need a help Pin
Eddy Vluggen18-Jan-13 1:19
mvpEddy Vluggen18-Jan-13 1:19 
GeneralRe: I need a help Pin
Bire50t17-Jan-13 19:21
memberBire50t17-Jan-13 19:21 
QuestionHi Pin
Bire50t16-Jan-13 21:19
memberBire50t16-Jan-13 21:19 
SuggestionRe: Hi Pin
Richard MacCutchan16-Jan-13 23:38
mvpRichard MacCutchan16-Jan-13 23:38 
GeneralRe: Hi Pin
Bire50t17-Jan-13 19:26
memberBire50t17-Jan-13 19:26 
GeneralRe: Hi Pin
Richard MacCutchan17-Jan-13 22:56
mvpRichard MacCutchan17-Jan-13 22:56 
Questionneed a help Pin
helibell16-Jan-13 20:22
memberhelibell16-Jan-13 20:22 
Can anyone help me on this:

I was trying to access my IP camera and used the following code


string sourceURL = "ipaddress";
byte[] buffer = new byte[100000];
int read, total = 0;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(sourceURL);
req.Credentials = new NetworkCredential("username","password");
WebResponse resp = req.GetResponse();
Stream stream = resp.GetResponseStream();
while ((read = stream.Read(buffer, total, 1000)) != 0)
{
total += read;
}
Bitmap bmp = (Bitmap)Bitmap.FromStream(
new MemoryStream(buffer, 0, total));


but when i compiled the code, the following message will be displayed what can I do to solve this?
"Grab Error: System.Net.WebException:The remote server returned an error:(400)Bad request. at System.Net.HttpWebRequest.GetResponse()"

Thanks for your help.
AnswerRe: need a help Pin
d@nish 16-Jan-13 20:26
member d@nish 16-Jan-13 20:26 
QuestionRe: need a help Pin
helibell16-Jan-13 20:35
memberhelibell16-Jan-13 20:35 
AnswerRe: need a help Pin
d@nish 16-Jan-13 20:47
member d@nish 16-Jan-13 20:47 
QuestionRe: need a help Pin
helibell16-Jan-13 21:08
memberhelibell16-Jan-13 21:08 
AnswerRe: need a help Pin
Bire50t16-Jan-13 21:57
memberBire50t16-Jan-13 21:57 
QuestionC# use linq for on filename Pin
dcof16-Jan-13 19:24
memberdcof16-Jan-13 19:24 
AnswerRe: C# use linq for on filename Pin
d@nish 16-Jan-13 20:08
member d@nish 16-Jan-13 20:08 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 8:19
memberdcof17-Jan-13 8:19 
AnswerRe: C# use linq for on filename Pin
Eddy Vluggen17-Jan-13 0:35
mvpEddy Vluggen17-Jan-13 0:35 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 8:18
memberdcof17-Jan-13 8:18 
QuestionRead every single keyboard press? [solved] Pin
Midnight Ahri16-Jan-13 15:24
memberMidnight Ahri16-Jan-13 15:24 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 15:34
memberPIEBALDconsult16-Jan-13 15:34 
QuestionRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 15:52
memberMidnight Ahri16-Jan-13 15:52 
AnswerRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 15:56
memberPIEBALDconsult16-Jan-13 15:56 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 16:03
memberMidnight Ahri16-Jan-13 16:03 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 17:13
memberPIEBALDconsult16-Jan-13 17:13 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 19:30
memberpt140116-Jan-13 19:30 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 19:43
memberMidnight Ahri16-Jan-13 19:43 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 20:04
memberpt140116-Jan-13 20:04 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 20:27
memberMidnight Ahri16-Jan-13 20:27 
AnswerRe: Read every single keyboard press? Pin
Dave Kreskowiak16-Jan-13 17:32
mvpDave Kreskowiak16-Jan-13 17:32 
AnswerRe: Read every single keyboard press? Pin
Eddy Vluggen17-Jan-13 0:41
mvpEddy Vluggen17-Jan-13 0:41 
GeneralRe: Read every single keyboard press? Pin
jschell17-Jan-13 8:30
memberjschell17-Jan-13 8:30 
AnswerRe: Read every single keyboard press? Pin
Eddy Vluggen17-Jan-13 9:39
mvpEddy Vluggen17-Jan-13 9:39 
AnswerRe: Read every single keyboard press? Pin
Abhinav S16-Jan-13 17:16
mvpAbhinav S16-Jan-13 17:16 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 18:09
memberMidnight Ahri16-Jan-13 18:09 
QuestionJoining 2 DataSets Pin
RickSharp16-Jan-13 7:19
memberRickSharp16-Jan-13 7:19 
SuggestionRe: Joining 2 DataSets Pin
HuorSwords17-Jan-13 2:16
memberHuorSwords17-Jan-13 2:16 
Questionwpf OR windows forms ??? Pin
Mohamad Shahmardan16-Jan-13 3:56
memberMohamad Shahmardan16-Jan-13 3:56 
AnswerRe: wpf OR windows forms ??? Pin
Richard MacCutchan16-Jan-13 4:20
mvpRichard MacCutchan16-Jan-13 4:20 
AnswerRe: wpf OR windows forms ??? Pin
Pete O'Hanlon16-Jan-13 4:26
protectorPete O'Hanlon16-Jan-13 4:26 
AnswerRe: wpf OR windows forms ??? Pin
Dave Kreskowiak16-Jan-13 4:57
mvpDave Kreskowiak16-Jan-13 4:57 
AnswerRe: wpf OR windows forms ??? Pin
ProgramFOX16-Jan-13 5:26
member ProgramFOX16-Jan-13 5:26 
AnswerRe: wpf OR windows forms ??? Pin
Abhinav S16-Jan-13 7:19
mvpAbhinav S16-Jan-13 7:19 
AnswerRe: wpf OR windows forms ??? Pin
Mohamad Shahmardan16-Jan-13 8:26
memberMohamad Shahmardan16-Jan-13 8:26 
AnswerRe: wpf OR windows forms ??? Pin
PIEBALDconsult16-Jan-13 11:16
memberPIEBALDconsult16-Jan-13 11:16 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 29 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid