Stream pdf from a webservice.

Discussion in 'ASP .Net Web Services' started by Jan Tielens, Sep 29, 2003.

  1. Jan Tielens

    Jan Tielens Guest

    Hi

    1)
    You could return the memorystream as a Byte Array:
    [WebMethod]
    public byte[] GetPDF()
    {
    System.IO.MemoryStream ms = new
    System.IO.MemoryStream();
    //... do stuff
    return ms.ToArray();
    }

    2) I would use the Acrobat Reader.


    Jan

    >-----Original Message-----
    >Could anyone provice me the vb.net code for the following?
    >
    >1. How to stream a pdf file from a webservice? Do you
    >return a memory stream?
    >
    >2. How to display this streamed pdf in asp.net?
    >
    >I would appreciate actual code samples. Thanks in

    advance.
    >
    >Mike
    >
    >.
    >
     
    Jan Tielens, Sep 29, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rasmusson, Lars
    Replies:
    1
    Views:
    773
    popov
    Apr 30, 2004
  2. Replies:
    9
    Views:
    656
    Alex Buell
    Apr 27, 2006
  3. Alexander Korsunsky

    get stream mode flags from an opened stream

    Alexander Korsunsky, Feb 17, 2007, in forum: C++
    Replies:
    1
    Views:
    464
    John Harrison
    Feb 17, 2007
  4. Ricardo Pog
    Replies:
    1
    Views:
    455
    Austin Ziegler
    Mar 26, 2008
  5. Sean Nakasone
    Replies:
    1
    Views:
    400
    Farrel Lifson
    Apr 14, 2008
Loading...

Share This Page