remoting for file transfer

G

Gomez

Can I use remoting for file transfer?
If so is there any limitation on the files being transferred?
Regards
Gomez
 
N

Nicholas Paldino [.NET/C# MVP]

Gomez,

You ^could^ but I don't know that it's a good idea. Basically, you are
going to have to load the contents of the file into a byte array in memory
and then transmit it. I would use WCF instead and a streaming method (along
with an encoding that won't convert to text).
 
A

Arne Vajhøj

Gomez said:
Can I use remoting for file transfer?
Yes.

If so is there any limitation on the files being transferred?

You will need to have the entire file in memory.

And I think you need to take a step back.

Remoting is only creating overhead and restrictions
for you. You are not utilizing any of the advantages
of remoting. Remoting is not the right choice. There
are much better protocols available like HTTP and
plain socket.

Arne
 
A

Arne Vajhøj

Nicholas said:
You ^could^ but I don't know that it's a good idea. Basically, you are
going to have to load the contents of the file into a byte array in memory
and then transmit it. I would use WCF instead and a streaming method (along
with an encoding that won't convert to text).

I can not see the point in WCF either.

Plain socket or simple HTTP is both easy and efficient for
moving a file.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top