1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    12
    Vote Rating
    0
    dadaking is on a distinguished road

      0  

    Default Unanswered: How feed PDF panel with binary

    Unanswered: How feed PDF panel with binary


    Hello,
    I have a panel where I put a PDF file. This work with the src parameters:

    Code:
    id: 'pdfFrame',xtype: 'component',
    autoEl: {
        tag: 'iframe',
        style: 'height: 100%; width: 100%; border: none',
        src: 'FILE.PDF'
    }
    But now I receive a ZIP file which contain the PDF file (or much). I must extract the file (I do that) and give the stream to the panel (I can't save the file for use it). How can I give the stream for display it?

    I must perhaps give the data by an other way?

    Thank you in advance for your answers

    Regards,
    David

  2. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    12
    Vote Rating
    0
    dadaking is on a distinguished road

      0  

    Default


    I found the solution!

    It was no hard, I request an url which do the extract and return an http response with the byte[] direct in the src.

    If I can help another poeple.

Tags for this Thread