Re: Copying files across network

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



A file *is* a byte array. AFAIK there is no limit on how large a byte array
can be.... though there are RAM considerations with such a huge file. You
will probably want to use a filestream instead as it is optimized to buffer
file contents as it reads them.

Is the problem that you need to throttle the file across the network so that
it doesn't swamp the LAN?

In any case, a novel approach that addresses all your problems would be to
set up an internal FTP server (this is built into Windows Server as an
optional component I think). If you need to throttle the transfer, FTP
server has throttle settings so you don't swamp the network with your 200mb
file transfers. You can even have the web service communicate directly with
it as neither has any domain rights (both run as a locked down web user
account)... that would solve your problem no?

Alternatively, I think the FileSystemWatcher is viable... whether you put
the service on the web server and "push" the file across the LAN or put it
on the destination and "pull" the file. If you need to throttle the file
copy, you would read the file in several bytes at a time (perhaps at some
millisecond or second interval). But, in that case, I think the Internal FTP
server solution is way more robust and easier to implement.



"Sue" <iyer_sansid@xxxxxxxxxxx> wrote in message
news:1139324334.780365.238660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Having a shared directory is not an option..(don't ask why, the higher
up's have made that decision) Web service is the last option to
consider...I was asked to look to see if the (200mb) huge file can be
stored in a byte array and streamed across the network...

Also, do you know what is the max limit for a byte array...



.



Relevant Pages

  • Re: Could we send a compressed file (.zip) to server by web service?
    ... I have to transfer dataset to server by web service. ... >> Any file can be sent as a byte array, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Could we send a compressed file (.zip) to server by web service?
    ... Any file can be sent as a byte array, so declare the Web service something ... IO.File.OpenRead) and call the Web service. ... On the server side write the byte array to disk. ... > How could we send this compressed file to server by web service? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Server was unable to process request. --> Array cannot be null. Parameter name: bytes
    ... I am trying to call a simple web service from .net environment. ... gets an array parameter. ... Server was unable to process request. ... --> Array cannot be null. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Web Service Implementation Security Question
    ... Server was unable to process ... CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at ... > As for the security problems regarding on using TypedDAtaset in asp.net ... Web Service Implementation Security Question ...
    (microsoft.public.inetserver.iis.security)
  • Re: Permission Errors
    ... >a domain account so that it can be validated on the win2k server machine. ... However I have discovered that I can deploy the web service to the W2K ... domain server and there it runs with no problems, ... for me to decide that the new XP dev machine is up and usable. ...
    (microsoft.public.dotnet.general)