Re: remoting for file transfer

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



Nicholas Paldino [.NET/C# MVP] wrote:
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

.



Relevant Pages

  • Re: fast stable sort
    ... For fastest load, at expense of slower sort, you ask the operating ... and you memory-map the file directly into that array. ... memory of your big array. ... possible to assure locality of reference and thus avoid thrashing ...
    (comp.programming)
  • Re: dealing with a time series piece wise (with gaps)
    ... You do not mention the size of the text file, if its small enough to fit in memory, using LOAD and then working off the data in memory might be faster than: ... However, since you will not know how much data to expect in a segment you will not be able to pre-allocate, this might slow your code. ... store this piece of triplet array (time, ...
    (comp.soft-sys.matlab)
  • Re: seeking thru a file
    ... Mag Gam wrote: ... I want to load the first 100 lines into an array. ... from memory ...
    (comp.lang.python)
  • Re: Save an array to memory for another program to read it
    ... I need the program to store into memory this array, end itself and when immediately runs again to load this array again from the memory. ...
    (comp.lang.fortran)
  • Re: cant read large files - help
    ... MULTIPLY YOUR MEMORY TEMPORARILY (10X LARGER SHOULD *DEFINITELY* BE ... think of to do), however, requirements stipulate that files that are ... an array by not using filebut by using my function above, bigfile, ... load the whole thing into memory first. ...
    (comp.lang.php)