Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.Data.NoNullAllowedException Pin
Rob Graham4-Sep-05 5:48
Rob Graham4-Sep-05 5:48 
GeneralRe: System.Data.NoNullAllowedException Pin
rich_wenger4-Sep-05 8:24
rich_wenger4-Sep-05 8:24 
QuestionDatagrid Problem with PreferredColumnWidth Pin
surfman194-Sep-05 2:14
surfman194-Sep-05 2:14 
Question.NET Application books Pin
hcmuns4-Sep-05 1:57
susshcmuns4-Sep-05 1:57 
AnswerRe: .NET Application books Pin
Luis Alonso Ramos4-Sep-05 8:22
Luis Alonso Ramos4-Sep-05 8:22 
QuestionSending Access file through the network Pin
mohammad9293-Sep-05 22:40
mohammad9293-Sep-05 22:40 
QuestionRe: Sending Access file through the network Pin
Guffa3-Sep-05 23:10
Guffa3-Sep-05 23:10 
AnswerRe: Sending Access file through the network Pin
mohammad9293-Sep-05 23:42
mohammad9293-Sep-05 23:42 
// Server Side.

FileInfo file = new FileInfo("Inventory.mdb");

// Send the file lenght to the client.
this.client.Send(Encoding.ASCII.GetBytes(""+file.Length));

// Send only database.
FileStream MyFile = new FileStream("Inventory.mdb", System.IO.FileMode.Open);
byte [] output = new byte[file.Length];

// Reading the file.
MyFile.Read(output, 0, (int)file.Length);
MyFile.Flush();

// Send the file to the client.
this.client.Send(output);
MyFile.Close();



---------------------------------------------------------------------------------------
// Client Side.

// Recieve the file length
input = new byte[1000];
int length = this.server.Receive(input);
length = int.Parse(Encoding.ASCII.GetString(input,0,input.Length));

// Receive the file.
input = new byte[length];
length = this.server.Receive(input);

// Create the Backup file.
FileStream myDataBase = new FileStream("CopyofInventory.mdb",System.IO.FileMode.Create);
myDataBase.Write(input,0,input.Length);
myDataBase.Close();


Thanks,
Mohammad
AnswerRe: Sending Access file through the network Pin
Guffa4-Sep-05 0:17
Guffa4-Sep-05 0:17 
QuestionHow can I compile *.lib in VC++ to dll? Pin
uumeme3-Sep-05 22:16
uumeme3-Sep-05 22:16 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
if_mel_yes_else_no4-Sep-05 5:18
if_mel_yes_else_no4-Sep-05 5:18 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
Luis Alonso Ramos4-Sep-05 8:16
Luis Alonso Ramos4-Sep-05 8:16 
QuestionXML Serializer: circular reference due to public attribute? Pin
peterchen3-Sep-05 21:16
peterchen3-Sep-05 21:16 
AnswerRe: XML Serializer: circular reference due to public attribute? Pin
Mathew Hall3-Sep-05 21:35
Mathew Hall3-Sep-05 21:35 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
peterchen3-Sep-05 21:47
peterchen3-Sep-05 21:47 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
Judah Gabriel Himango4-Sep-05 11:47
sponsorJudah Gabriel Himango4-Sep-05 11:47 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
peterchen4-Sep-05 12:12
peterchen4-Sep-05 12:12 
GeneralRe: XML Serializer: circular reference due to public attribute? Pin
Judah Gabriel Himango4-Sep-05 14:59
sponsorJudah Gabriel Himango4-Sep-05 14:59 
QuestionVS7: No Exception Info under Debugger? Pin
peterchen3-Sep-05 21:02
peterchen3-Sep-05 21:02 
QuestionVS7 Forms designer - 2 questions Pin
peterchen3-Sep-05 20:43
peterchen3-Sep-05 20:43 
AnswerRe: VS7 Forms designer - 2 questions Pin
Mathew Hall3-Sep-05 21:25
Mathew Hall3-Sep-05 21:25 
AnswerAhhhh! Pin
peterchen3-Sep-05 22:02
peterchen3-Sep-05 22:02 
GeneralRe: Ahhhh! Pin
Mathew Hall3-Sep-05 22:14
Mathew Hall3-Sep-05 22:14 
QuestionHow to add Binary Resources Pin
Heinz_3-Sep-05 20:33
Heinz_3-Sep-05 20:33 
AnswerRe: How to add Binary Resources Pin
turbochimp4-Sep-05 16:34
turbochimp4-Sep-05 16:34 

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.