1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    95
    Vote Rating
    1
    TiloS is on a distinguished road

      0  

    Default Byte array Pdf in browser

    Byte array Pdf in browser


    Hello,

    I have a PDF as byte array from a webservice and I can fetch it with a jsonP request.

    Is it possible to show it in the browser?

    TiloS

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    7,183
    Vote Rating
    194
    scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold

      0  

    Default


    I would suggest saving the stream to a file and then just direct the file to the browser to display. I am not aware of any viewer that will view from stream data.

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    26
    Vote Rating
    0
    pulliags is on a distinguished road

      0  

    Default


    TiloS,

    Would you be able to share any of your code from the webservice. I'm trying to do the exact same thing, but don't know where to begin. I have a webservice, but don't know how to set up the byte array pdf. Thanks!!

    Gregg

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    26
    Vote Rating
    0
    pulliags is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    I would suggest saving the stream to a file and then just direct the file to the browser to display. I am not aware of any viewer that will view from stream data.

    Regards,
    Scott.
    Scott, do you have an example of how to save the stream to a file? Thanks!! Gregg