send/download file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amy

    #1

    send/download file

    what is the method to send a binary file to a client from
    a webservice ?
    what is the method to receive/download this binary file
    and save it
    to the local machine in a client application ?
    THANKS!
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: send/download file

    Amy,

    If you set a parameter as a byte array, then you should be able to pass
    that to your web service (the web service should encode the byte array for
    you). The same thing for returning values. You can return a byte array as
    well.

    However, this can be inefficient. What you probably want to do is look
    into the DIME specification and then the extensions for web methods that are
    provided for .NET.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "amy" <achen@comverge .com> wrote in message
    news:005a01c357 6f$c802d100$a10 1280a@phx.gbl.. .[color=blue]
    > what is the method to send a binary file to a client from
    > a webservice ?
    > what is the method to receive/download this binary file
    > and save it
    > to the local machine in a client application ?
    > THANKS![/color]


    Comment

    Working...