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

C#

 
GeneralRe: One code, two different results - C# vs C++ Pin
Nick Seng26-Jun-03 16:49
Nick Seng26-Jun-03 16:49 
GeneralRe: One code, two different results - C# vs C++ Pin
leppie26-Jun-03 18:03
leppie26-Jun-03 18:03 
GeneralRe: One code, two different results - C# vs C++ Pin
Nick Seng26-Jun-03 18:13
Nick Seng26-Jun-03 18:13 
GeneralRe: One code, two different results - C# vs C++ Pin
jspano27-Jun-03 6:23
jspano27-Jun-03 6:23 
GeneralRe: One code, two different results - C# vs C++ Pin
C. Augusto Proiete27-Jun-03 15:23
C. Augusto Proiete27-Jun-03 15:23 
GeneralRe: One code, two different results - C# vs C++ Pin
jspano28-Jun-03 16:26
jspano28-Jun-03 16:26 
GeneralRe: One code, two different results - C# vs C++ Pin
Bo Hunter28-Jun-03 10:54
Bo Hunter28-Jun-03 10:54 
Questionusing Byte[] in a WebService method?? Pin
Uploader26-Jun-03 12:26
Uploader26-Jun-03 12:26 
I receive a NullReference Exception on the entry of this [WebMethod]:


//In constructor:
FileStream fs=new FileStream(@"c:\BHQGUI\temp\Idea.mod",FileMode.Create, FileAccess.Write, FileShare.None);
//

[WebMethod]
public void scrivi(Byte[] byteArray)
{
fs.Write(byteArray,0,256);

}



called by this:


private void ArchiviaServer(object sender, EventArgs arg)
{
FileInfo fileInfo = new FileInfo("c:\\BHQGUI\\temp\\myidea.mod");

FileStream fileReadStream = fileInfo.OpenRead();
Byte[] b = new byte[256];
localhost.db myDb=new localhost.db();
while (fileReadStream.Read(b,0,b.Length) > 0)
{
myDb.scrivi(b);

}
myDb.chiudi();
myDb=null;

}

Anyone could help me? Is Byte[] a wrong type for WebService??
Please help me thanx in advance


Marco
AnswerRe: using Byte[] in a WebService method?? Pin
leppie26-Jun-03 15:12
leppie26-Jun-03 15:12 
GeneralRe: using Byte[] in a WebService method?? Pin
Uploader29-Jun-03 10:13
Uploader29-Jun-03 10:13 
QuestionWhat Other Options Beside System.Data.OleDb? Critical For Me, Please! Pin
Khang Nguyen26-Jun-03 11:55
Khang Nguyen26-Jun-03 11:55 
AnswerRe: What Other Options Beside System.Data.OleDb? Critical For Me, Please! Pin
Anonymous26-Jun-03 14:41
Anonymous26-Jun-03 14:41 
GeneralRe: What Other Options Beside System.Data.OleDb? Critical For Me, Please! Pin
Khang Nguyen27-Jun-03 4:57
Khang Nguyen27-Jun-03 4:57 
GeneralUsing framework version 1.1 Pin
monrobot1326-Jun-03 10:32
monrobot1326-Jun-03 10:32 
GeneralRe: Using framework version 1.1 Pin
Giles26-Jun-03 11:02
Giles26-Jun-03 11:02 
GeneralVolume control in C# Pin
ripsi26-Jun-03 10:17
ripsi26-Jun-03 10:17 
GeneralReading Password from Console Pin
Jarrett Vance26-Jun-03 9:08
Jarrett Vance26-Jun-03 9:08 
GeneralRe: Reading Password from Console Pin
leppie26-Jun-03 9:37
leppie26-Jun-03 9:37 
GeneralRe: Reading Password from Console Pin
Paresh Gheewala26-Jun-03 15:29
Paresh Gheewala26-Jun-03 15:29 
GeneralRemoving legacy app from task bar. Pin
albean26-Jun-03 7:08
albean26-Jun-03 7:08 
GeneralFinalization Pin
Kant26-Jun-03 6:58
Kant26-Jun-03 6:58 
GeneralRe: Finalization Pin
albean26-Jun-03 7:03
albean26-Jun-03 7:03 
GeneralRe: Finalization (Clickety) Pin
Kant26-Jun-03 7:14
Kant26-Jun-03 7:14 
GeneralRe: Finalization Pin
leppie26-Jun-03 7:08
leppie26-Jun-03 7:08 
GeneralRe: Finalization Pin
Kant26-Jun-03 7:18
Kant26-Jun-03 7:18 

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.