Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding data in date ranges Pin
nav_saggi20-Oct-08 2:47
nav_saggi20-Oct-08 2:47 
Question.Net passport authentication issue Pin
George_George18-Oct-08 23:02
George_George18-Oct-08 23:02 
QuestionComport Keyer :-) Pin
cyberdave00118-Oct-08 20:56
cyberdave00118-Oct-08 20:56 
QuestionImage in Database [modified] Pin
Hossein Afyuoni18-Oct-08 19:03
Hossein Afyuoni18-Oct-08 19:03 
AnswerRe: Image in Database Pin
Guffa18-Oct-08 20:11
Guffa18-Oct-08 20:11 
GeneralRe: Image in Database Pin
Eslam Afifi19-Oct-08 3:37
Eslam Afifi19-Oct-08 3:37 
GeneralRe: Image in Database Pin
Hossein Afyuoni19-Oct-08 8:34
Hossein Afyuoni19-Oct-08 8:34 
GeneralRe: Image in Database Pin
Guffa19-Oct-08 9:49
Guffa19-Oct-08 9:49 
What do you mean? You open stream2 and close stream1 (which doesn't exist in the code that you posted), that is definitely a problem.

It might not be your only problem, though. On which line do you get the error message?

Edit:

You should name your variables to something more descriptive than stream1 and stream2, that way you are not so likely to mix them up.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Image in Database Pin
Paul Conrad19-Oct-08 10:49
professionalPaul Conrad19-Oct-08 10:49 
GeneralRe: Image in Database Pin
Guffa19-Oct-08 14:52
Guffa19-Oct-08 14:52 
GeneralRe: Image in Database Pin
Hossein Afyuoni20-Oct-08 7:39
Hossein Afyuoni20-Oct-08 7:39 
GeneralRe: Image in Database Pin
nelsonpaixao20-Oct-08 13:10
nelsonpaixao20-Oct-08 13:10 
GeneralRe: Image in Database Pin
Hossein Afyuoni20-Oct-08 18:38
Hossein Afyuoni20-Oct-08 18:38 
QuestionUsing External DLL Pin
Masterhame18-Oct-08 10:45
Masterhame18-Oct-08 10:45 
AnswerRe: Using External DLL Pin
Tony Richards19-Oct-08 0:19
Tony Richards19-Oct-08 0:19 
Questionmulty_threading Pin
chenli051318-Oct-08 6:59
chenli051318-Oct-08 6:59 
AnswerRe: multy_threading Pin
Wendelius18-Oct-08 7:14
mentorWendelius18-Oct-08 7:14 
QuestionTreeView Pin
tonimm18-Oct-08 4:06
tonimm18-Oct-08 4:06 
AnswerRe: TreeView Pin
Paul Conrad18-Oct-08 6:13
professionalPaul Conrad18-Oct-08 6:13 
AnswerRe: TreeView Pin
Wendelius18-Oct-08 7:18
mentorWendelius18-Oct-08 7:18 
Questionsome Questions to Linq2Sql Pin
Mr.PoorEnglish18-Oct-08 2:55
Mr.PoorEnglish18-Oct-08 2:55 
AnswerRe: some Questions to Linq2Sql Pin
Mycroft Holmes18-Oct-08 3:13
professionalMycroft Holmes18-Oct-08 3:13 
GeneralRe: some Questions to Linq2Sql Pin
Mr.PoorEnglish18-Oct-08 4:03
Mr.PoorEnglish18-Oct-08 4:03 
GeneralRe: some Questions to Linq2Sql Pin
Mycroft Holmes18-Oct-08 4:34
professionalMycroft Holmes18-Oct-08 4:34 
AnswerRe: some Questions to Linq2Sql Pin
Rajesh R Subramanian18-Oct-08 3:51
professionalRajesh R Subramanian18-Oct-08 3:51 

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.