Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I display 2 forms, one after the other? Pin
arik_a19-Jul-04 22:47
arik_a19-Jul-04 22:47 
QuestionHow to realize Web control's context menu by c# Pin
nakey_yang19-Jul-04 17:18
nakey_yang19-Jul-04 17:18 
AnswerRe: How to realize Web control's context menu by c# Pin
Nick Parker19-Jul-04 17:29
protectorNick Parker19-Jul-04 17:29 
GeneralVery Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Member 112523619-Jul-04 17:12
Member 112523619-Jul-04 17:12 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Javier Lozano19-Jul-04 18:06
Javier Lozano19-Jul-04 18:06 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Heath Stewart20-Jul-04 10:04
protectorHeath Stewart20-Jul-04 10:04 
GeneralBinary Data over network Pin
joelwwk19-Jul-04 17:11
joelwwk19-Jul-04 17:11 
GeneralRe: Binary Data over network Pin
Heath Stewart20-Jul-04 10:19
protectorHeath Stewart20-Jul-04 10:19 
joelwu wrote:
1. What is the best way to transfer a binary file over a network not using ASP and web service?

Whatever works for you in a given situation is best. If you use .NET Remoting (or Web Services, but you said you weren't wanting that), you could use DIME - and industry startard for efficiently sending binary data without encoding it (like base64 encoding) using SOAP, part of the Web Services Enhancements 2.0[^] for Web Services (works also with .NET Remoting with a little extra work). You could also just use a TcpClient and TcpListener (depending on whether you need to write a client, server, or both - respectively) to establish a connection and send byte[] arrays using the NetworkStream. If both are .NET clients, you can use runtime serialization (see the System.Runtime.Serialization namespace members) so long as both the client and server have access to the same types being serialized (so shared assemblies) - but this is essentially .NET Remoting so I'd recommend going with that infrastructure instead of defining your own (much more extensible, well though-out, and heavily tested).

joelwu wrote:
2. If I have a program that are 3 tier app have many data communication. like dataset, primitive data, binary files etc.... What is the communication protocol I should use? socket? remoting? webservice? what is their advantage and disadcantage?

This information is widely available on the web. I recommend doing a google search, picking up a good book (like "Advanced .NET Remoting" from Ingo Rammer[^]), or checking out some of the Microsoft resources like http://msdn.microsoft.com/webservices/[^] as well as key topics in the .NET Framework SDK[^]. Many, many articles have been written comparing the two and such a discussion would be extremely length (and redundant) in a forum such as this.

 

Microsoft MVP, Visual C#
My Articles
GeneralMissing Authorization http header Pin
darma_m19-Jul-04 15:37
darma_m19-Jul-04 15:37 
GeneralResizing help Pin
Wjousts19-Jul-04 15:18
Wjousts19-Jul-04 15:18 
GeneralRe: Resizing help Pin
Heath Stewart20-Jul-04 10:25
protectorHeath Stewart20-Jul-04 10:25 
Questionhow to get the system imagelist Pin
noosword19-Jul-04 14:46
noosword19-Jul-04 14:46 
AnswerRe: how to get the system imagelist Pin
Heath Stewart20-Jul-04 4:29
protectorHeath Stewart20-Jul-04 4:29 
GeneralRe: how to get the system imagelist Pin
noosword20-Jul-04 19:02
noosword20-Jul-04 19:02 
GeneralRe: how to get the system imagelist Pin
Heath Stewart21-Jul-04 3:59
protectorHeath Stewart21-Jul-04 3:59 
GeneralCapturing the desktop Pin
Salman Taseer`19-Jul-04 13:15
Salman Taseer`19-Jul-04 13:15 
GeneralRe: Capturing the desktop Pin
Nick Parker19-Jul-04 17:16
protectorNick Parker19-Jul-04 17:16 
GeneralTag name of the root element of the XML data file Pin
Flack19-Jul-04 13:04
Flack19-Jul-04 13:04 
GeneralRe: Tag name of the root element of the XML data file Pin
Dave Kreskowiak19-Jul-04 15:32
mveDave Kreskowiak19-Jul-04 15:32 
GeneralRe: Tag name of the root element of the XML data file Pin
Flack19-Jul-04 16:05
Flack19-Jul-04 16:05 
GeneralRe: Tag name of the root element of the XML data file Pin
Nick Parker19-Jul-04 17:11
protectorNick Parker19-Jul-04 17:11 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:01
protectorHeath Stewart20-Jul-04 4:01 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:04
protectorHeath Stewart20-Jul-04 4:04 
GeneralAccessing Parallel Port Pin
ahmedadelfarid19-Jul-04 11:32
ahmedadelfarid19-Jul-04 11:32 
GeneralRe: Accessing Parallel Port Pin
Dave Kreskowiak19-Jul-04 15:31
mveDave Kreskowiak19-Jul-04 15:31 

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.