p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   File transfer between servers. (http://p2p.wrox.com/showthread.php?t=62016)

vskalyan September 12th, 2007 02:48 PM

File transfer between servers.
 
I know that cross server communication is possible by using Remoting, that a remoting client can access the objects on another server which will be a remoting host.

My question is, can this functionality be extended to actually transfer files between the two servers? Kinda like an alternative to using FTP.

Does anybody have any working knowledge of this?

Thanks,


planoie September 12th, 2007 08:25 PM

It certainly can. Read your file into a stream which you can then convert into a byte array. Pass this byte array to a method on the remote class and then change the bytes back into a file stream on the remote system. You could also consider using the gzip compression to optimize the call across the wire.

-Peter


All times are GMT -4. The time now is 06:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.