Showing PDF content

Hi,
I want to show PDF content which is coming from webservices in my flex application. Please suggest any ideas on how to show it.
-Thanks
Vishal Kumar

Hi,
#1
do convertion server-side to format accessible in Flash runtime
#2
open new window (new location) in browser so user can see pdf content in separate window via PDF plugin
#3
depending on content you could be able to extract it all-client side and show in Flash runtime:
http://code.google.com/p/purepdf/
#4
use air runtime or 3rd party solutions for non-web browser based solutions (so you would be able to embed pdf in your application directly).
hth,
regards,
Peter

Similar Messages

  • WD Abap - show pdf content

    hi folks,
    i'm trying to show pdf content (type binary) with wd abap, but how?
    - with interactive forms ADOBE -> i bound pdfsource the type binary value but i always get the message "ugly scripts are running at that url"
    - "normal" interactive froms with a normal interface rather than pdf-data stream work.
    we use NW2004s SP 05
    any ideas?
    kind regards oliver

    hi thomas,
    well i didnot see the url but i got out following acf trace:
    ERROR|20060103160230|WD0284_5376|CAcfControl::ParseParameter|ReadArrayFromUrl failed, Url= http://cat01130.tyrolit.com:8080/sap/bc/webdynpro/tyed/ca_atcp_cre_0001/~wd_key43ACC6054ACC02C8000000000A180A82/acf_control?sap-contextid=SID%3aANON%3acat01130_NY1_01%3aIUyg6v83oBfW_5oMpeaC3BmYWOS9DRej4fSmLpQq-NEW&sap-wd-clientWindowId=2855&sap-wd-resource-id=WD0284&sap-wd-filedownload=X|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::ParsePropertyParameters|ParseParameter failed|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::SendDataFromClientToAcf|SetProperty: ParsePropertyParameters failed for property dataSource|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::invoke|InovkeInternal failed|HRESULT=-2147467259(Unspecified error)

  • File Explorer in Windows 8.1 does not find and show pdf content in Search?

    Have a new computer using Windows 8.1 and I have to search foe file content. I am not able to find my .pdf file content when I use File Explorer

    Sounds like a question for Microsoft...

  • PDFs that cause Digital Editions to crash/PDFS that show no content...

    I've been happily using Digital Editions with lots of my PDFs and have been very pleased with the first version of this product. However, I've run into two issues that I was hoping someone could help me with...
    1) I've found a PDF that causes Digital Editions to just crash when you try to view it. The PDF is InfoQ's free version of "Getting Started with Grails" (downloadable at http://www.infoq.com/resource/minibooks/grails/en/pdf/grails-getting-started.pdf if you register). The PDF is secured so it can't be printed. I loaded this into Acrobat Reader 8, no problem. I loaded it into Digital Editions, opened it, got a blank page. Tried to go to page 2, Digital Editions quits with the Windows standard dialog "Digital Editions has encountered a problem and has closed".
    2) Some older PDFs (such as O'Reilly's free X Windows books) import but show no content at all (every page is blank). They work fine in Reader 8.
    Has anyone else run into this or found a solution? I'm using Digital Editions 1.0.467.
    Mark Davidson

    dang! you're right. It does crash. I have logged a bug and we will fix it for the next release. The blank files may well be JPEG2000 images, which we do not yet support.

  • Concatenated PDF file does not show all content.

    When I concatenate 2 single page pdf file into one pdf file, the concatenated page does not show all the content. It misses the last line on the 2nd page.
    However the thumbnails view shows the missing line correctly.
    Also, if I view the concatenated pdf into another pdf view, it shows the content correctly.

    Upon further research in the merged pdf file, it appears the merged pdf file has 2 references to the same field "UFE_ISSUE_DATE".
    If I edit the pdf file in the text editor and change one of the field name to "UFE_ISSUE_DATE_TEST", then the pdf gets rendered correctly with date value shown correctly!
    So, we decided to use 2 different field names in each of the individual pdf for this field only.
    But, what causes confusion is that we do have several other fields with same field name in each of the individual pdf file, but upon merge they appear correctly. Searching for such field name in the merged pdf file via text editor, I can see only 1 reference. Not sure, why this particular field "UFE_ISSUE_DATE" has 2 references in the merged pdf file.
    Any one has any thoughts?

  • Version of file protected by timestamp signature (3161) alone shows "Unrecognized PDF Content"

    Documents which have been signed with a RFC 3161 timestamp signature alone show "Report Code: 4000" described as "Unrecognized PDF Content" in the PDF Signature Report.  I access this report by selecting the signature in the panel and "Click to view this version", then an option to "View Report" is in the top right corner.
    Documents with digital signatures and attached timestamps from the same TSA verify properly and show no errors in the PDF Signature Report.
    All of the timestamps verify properly, though the TSA root certificate must be downloaded and trusted manually.
    Any ideas as to what's going on here?
    An example called InvoiceTS.pdf can be found here. You may also use the link to StarField below to timestamp any PDF you like; the problem occurs universally.
    Version Info: Problem shows in Acrobat X and XI and Reader X and XI, occurs in files with timstamps attached by both Acrobat X and XI.
    TSAs affected: DigiStamp, StarField
    Explicit Error:
    Unrecognized PDF content: The document contains PDF content or custom content not supported by the current version of Adobe Reader.The document appears to have been produced by a later version of Acrobat.

    I have been on the phone with Adobe support more times than I care to remeber about this issue.  It would be nice if the problem would be addressed so a capability Adobe claims to exist with Adobe X actually functions properly.

  • Showing pdf in Fire fox giving problem

    Hi every body ,
    I have a problem related to PDF showing in the browser , It is working fine in the IE , but in the FF it is not showing .
    Here is my Backing bean code for fetching the PDF .
    The main backing bean name is myBean.
      public void showPDF() throws IOException  
              BufferedInputStream input = null; 
              BufferedOutputStream output = null; 
              InputStream inputStream =null;  
              FacesContext facesContext = FacesContext.getCurrentInstance(); 
              ExternalContext externalContext = facesContext.getExternalContext(); 
              HttpServletResponse response = (HttpServletResponse) externalContext.getResponse(); 
             try  
             //It is a simple POJO , it will return the pdf content 
                     PDF  pdf =  new PDF(); 
                 inputStream = pdf.getPDFContent(); 
                 input = new BufferedInputStream(inputStream, DEFAULT_BUFFER_SIZE); 
                 response.reset(); 
                 response.setContentType("application/pdf"); 
                 response.setHeader("Content-disposition", "inline; filename=\"" + pdf.getFileName() + "\""); 
                 output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE); 
                 byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; 
                 int length; 
                 while ((length = input.read(buffer)) > 0)  
                     output.write(buffer, 0, length); 
                 output.flush(); 
             }catch(Exception ex) 
                 ex.printStackTrace(); 
             finally { 
                output.close();  
                input.close();  
              facesContext.responseComplete(); 
         }  Here is my view JSF
    <h:commandLink  value="Show PDF" action="#{myBean.showPDF}" target="_blank" />  Thanks & regards,
    S

    The problem is
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 7em;
       float: right;
    Change the value back to left.
    The menu bar will now left align itself. To fix that we will go to the container, give it a width and float it to the right as follows.
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: 42em;
        float: right;
    Gramps

  • PDF content disposition on IE

    Hi,
    I am having difficulties in displaying PDF content from JSP. Obviously URL ends with mypdffile.jsp. From the JSP, I set attributes as follows. It works as intended on Firefox. Not on IE;
    response.setContentType("application/pdf;charset=UTF-8");
    response.setHeader("Content-Disposition", "inline;filename=\"Document.pdf\""); Any suggestions how I can fix this mess?

    On IE, it shows nothing! I can see that it reads something then nothing shows up. It is meant to display inside the viewing frame without creating external frames. If I change to "Content-disposition: attachment; filename=ddd.pdf", it comes out with PDF view frame. If you move the frame, you see lots of dirty traces on Windows frame!
    It may IE is not handling extension well.Or size information may be required.
    JSP is convenient to write changeable reports. PDF is generated using iText.
    Regards.

  • I want to open a Illustrator file in Illustrator CS4 but i am getting this message "This is an adobe illustrator file that was saved without PDF content..."

    I want to open a Illustrator file in Illustrator CS4 but i am getting this message "This is an adobe illustrator file that was saved without PDF content..." I tried the save as option with "Create PDF compatible file" option but still same message is showing. PLEASE HELP.
    Thanks in advance.

    I have uploaded the files to my dropbox - Dropbox - AI
    I would really appreciate it if anyone is willing to down-save the version of these files to Illustrator CS4 and send it to me.
    thanks

  • Cannot show PDF contain at Acrobat X standard

    I have a PDF send from external parties, I open it from Acrobat X Standard, it shows a blank page on the screen.
    But it can normally print out the content from Acrobat X Standard and preview at Windows Explorer.
    I did repair and check update.  Everything see work in good condition.
    I use a 3rd parties PDF reader, it shows the PDF content on the screen.
    Anything I can do to solve this issue?
    Thanks in advance.

    Unless the PDF was created by an Adobe product, it might not be fully compliant with the standard set by Adobe and ISO 32000. Open the PDF file properties and look to see what the Producer and PDF Version is for the file.
    It might help if you can post a sample.

  • RoboHelp air help application does not show pdf files

    Hello everyone,
    I hope this is the right place to post my problem.
    I am developing an air help application and I want to embedd some pdf files. I tried two different ways yet:
    1. A direct link to the pdf file (which is located in the project folder)
    2. An iframe
    In the topic preview both ways are working fine. But when I generate the application, it just shows a black page, where the pdf content should be.
    Thanks for your help.
    Holger

    Welcome to the forum.
    It is the right place to ask but it will not be the answer you want.
    Only links to HTML and Microsoft Office files are supported. Although it will not help you short term, the more people who report a bug or request a feature, the more likely it is to be actioned. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    Please take a look at the sticky topic Before You Post as often answers depend on the version of RoboHelp being used.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Question about display PDF content

    Hi,
    I'd like to show the content of a PDF file directly in a page region, without having to open the Acrobat reader in the same window and hide all the tabs, other regions...
    I am not sure whether this is feasible with HTMLDB, so would like to know that to avoid spending lots of time in no avail.
    Thanks in advance.

    I know it will be hard to make a report or other things to be generated to PDF version. However I only need to display the contents of PDF for now.
    As you guys suggested, I've tried to use frameset. After I created a frame page with Frontpage, I copied the HTML into a HTML type region:
    <frameset cols="356,*">
    <frame name="contents" target="main" src="new_page_5.htm">
    <frame name="main" src="new_page_6.htm">
    <noframes>
    <body>
    <p>This page uses frames, but your browser doesn't support them.</p>
    </body>
    </noframes>
    </frameset>
    However it didn't show anything at all. May I have a more elaborated explanation. Sorry I don't have much experiences with HTML.
    Thanks.

  • Showing PDF without using InteractiveForm

    Hi experts,
    I receive PDF content from a RFC in the "XSTRING" format.
    I can show this in an interactive form (by mapping the pdfSource property of my InteractiveForm with the Xstring), but then we need to install ACF on all the PCs of the customer.
    So what I would like to do is display a PDF not included in a Web Dynpro.
    I read in this forum (from Bogdan) that this could be a solution:
    byte[] pdfContent={here document is created};
    IWDCachedWebResource pdfResource=WDWebResource.getWebResource
        (pdfContent,WDWebResourceType.PDF);
    wdComponentAPI.getWindowManager().createExternalWindow(
         pdfResource.getURL(),"Report View",true).open();
    But how can I convert my Xstring format to byte[] ?
    Thanks in advance for your answers.
    Regards,
    Julien

    Hi Julien.
    Yesterday I can solved it.
    I found a solution in a post, and it works.
    I am only coded this in the wddoInit, and I use a FileDownload UI element.
    //segun nota
      /* The FileDownload UI element requires: */
      final IWDAttributeInfo fileAttrInfo = wdContext.nodeOutput().getNodeInfo()
              .getAttribute("Bin_File");   
      final IWDModifiableBinaryType pdfType =
         (IWDModifiableBinaryType)
           fileAttrInfo
            .getModifiableSimpleType();
      /* In addition the FileDownload
    UI element needs for  defined resource types
      pdfType.setFileName( "MyPdfFile.pdf" );
      pdfType.setMimeType( WDWebResourceType.PDF );          
        //@@end
    "bin_file" is the xstring parameters that return my RFC module function.
    Really I don't know the difference with your sample (I am newbbie in Java and webdynpro) but this code is the way that works in my aplication.
    Thanks a lot anyway!
    regards.
    Leandro

  • Quicklook doesn't show PDF files

    OSX 10.10.2
    Quicklook does not show PDF files and Preview doesn't open PDF files. When I select file => open, all PDF files are grey and cannot be selected. In Finder I select a PDF file and press CMD-i. In the information window I select open with Preview, but nothing will changed. PDF files can only be opened with Adobe Acrobat. When I drop a PDF file from finder to safari, the PDF file will be visible in safari. When I select "open in preview" in safari, preview doesn't show the pdf file. I can see an error in the console "CoreSercviceUIAgent Error -60005 creating authorization". qlmanage -r and qlmanage -r chase doesn't help.
    qlmanage -p *.pdf
    2015-04-29 01:02:15.609 qlmanage[11077:2675779] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xab43, name = 'com.apple.tsm.portname'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2015-04-29 01:02:15.612 qlmanage[11077:2675779] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4517, name = 'com.apple.CFPasteboardClient'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2015-04-29 01:02:15.612 qlmanage[11077:2675779] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
    2015-04-29 01:02:15.618 qlmanage[11077:2675779] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8f2f, name = 'com.apple.coredrag'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    qlmanage -t *.pdf
    2015-04-29 01:03:27.386 qlmanage[11085:2681809] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9057, name = 'com.apple.tsm.portname'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2015-04-29 01:03:27.388 qlmanage[11085:2681809] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4437, name = 'com.apple.CFPasteboardClient'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2015-04-29 01:03:27.389 qlmanage[11085:2681809] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

    Problem description:
    QuickLook and Preview doesn’t show PDF files
    EtreCheck version: 2.2 (132)
    Report generated 4/29/15, 10:30 PM
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro Intel Core i7, 15" (Early 2011)
        MacBook Pro - model: MacBookPro8,2
        1 2.3 GHz Intel Core i7 CPU: 4-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1600 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery: Health = Normal - Cycle count = 481 - SN = D86106429R7DGDLAX
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
        AMD Radeon HD 6750M - VRAM: 1024 MB
            Color LCD 1680 x 1050
            PL2779Q 2560 x 1440 @ 59 Hz
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 3:12:3
    Disk Information: ℹ️
        ST2000LM003 HN-M201RAD disk1 : (2 TB)
            EFI (disk1s1) <not mounted> : 210 MB
            Macintosh HD (disk1s2) /Volumes/Macintosh HD : 2.00 TB (951.82 GB free)
        Samsung SSD 840 PRO Series disk0 : (512,11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh SSD (disk2) / : 510.88 GB (222.02 GB free)
                Core Storage: disk0s2 511.25 GB Online
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
        Apple, Inc. Keyboard Hub
            Apple, Inc Apple Keyboard
        Burr-Brown from TI Elgato Thunderbolt 2 Dock Audio
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
            Elgato Systems Thunderbolt 2 Dock
    Configuration files: ℹ️
        /etc/hosts - Count: 1
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Karabiner.app
        [loaded]    org.pqrs.driver.Karabiner (10.6.0 - SDK 10.10) [Click for support]
            /Applications/MacX Video Converter Pro.app
        [not loaded]    com.macxdvd.driver.goodSysAudioCapture (1 - SDK 10.10) [Click for support]
            /Applications/Parallels Access.app
        [loaded]    com.parallels.virtualsound (1.0.27 27 - SDK 10.6) [Click for support]
            /Applications/Parallels Desktop.app
        [not loaded]    com.parallels.kext.hypervisor (10.2.0 28956 - SDK 10.7) [Click for support]
        [not loaded]    com.parallels.kext.netbridge (10.2.0 28956 - SDK 10.7) [Click for support]
        [not loaded]    com.parallels.kext.usbconnect (10.2.0 28956 - SDK 10.7) [Click for support]
        [not loaded]    com.parallels.kext.vnic (10.2.0 28956 - SDK 10.7) [Click for support]
            /Applications/Splashtop Streamer.app
        [not loaded]    com.splashtop.driver.SRXDisplayCard (1.6 - SDK 10.7) [Click for support]
        [not loaded]    com.splashtop.driver.SRXFrameBufferConnector (1.6 - SDK 10.7) [Click for support]
            /Applications/Toast 11 Titanium/Roxio Crunch.app
        [not loaded]    com.roxio.TDIXController (1.6) [Click for support]
            /Applications/Utilities/DiskWarrior.app
        [not loaded]    com.alsoft.Preview (4.2) [Click for support]
            /Library/Extensions
        [not loaded]    com.Elgato.Thunderbolt2DockChargingSupport (1.0.0 - SDK 10.10) [Click for support]
        [not loaded]    com.Elgato.ThunderboltDockChargingSupport (1.0.0 - SDK 10.10) [Click for support]
        [loaded]    com.avatron.AVExFramebuffer (3.0.1 - SDK 10.10) [Click for support]
        [loaded]    com.avatron.AVExVideo (3.0.1 - SDK 10.10) [Click for support]
        [not loaded]    com.elgato.ElgatoThunderboltDockAudioRename (1.0.2 - SDK 10.10) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.3dconnexion.driver (1.6.3) [Click for support]
        [not loaded]    com.AmbrosiaSW.AudioSupport (4.1.2 - SDK 10.6) [Click for support]
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
        [not loaded]    com.elgato.driver.DontMatchAfaTech (1.1) [Click for support]
        [not loaded]    com.elgato.driver.DontMatchCinergy450 (1.1) [Click for support]
        [not loaded]    com.elgato.driver.DontMatchCinergyXS (1.1) [Click for support]
        [not loaded]    com.elgato.driver.DontMatchEmpia (1.1) [Click for support]
        [not loaded]    com.elgato.driver.DontMatchVoyager (1.1) [Click for support]
        [not loaded]    com.hzsystems.driver.CDSDAudioCaptureSupport (1.5) [Click for support]
        [loaded]    com.hzsystems.terminus.driver (4) [Click for support]
        [not loaded]    com.iomega.filesystems.udf (2.5) [Click for support]
        [not loaded]    com.iomega.iokit.IomegaREV (2.5) [Click for support]
        [not loaded]    com.logitech.manager.kernel.driver (2.00 - SDK 10.6) [Click for support]
        [loaded]    com.markspace.driver.Android.RNDIS (1.2) [Click for support]
        [not loaded]    com.roxio.BluRaySupport (1.1.6) [Click for support]
        [not loaded]    com.sony.driver.sxsexpressdrivers (1.0.2d006 - SDK 10.6) [Click for support]
        [not loaded]    com.sony.driver.sxsus10drivers (1.0.2d006 - SDK 10.6) [Click for support]
        [not loaded]    com.sony.filesystems.sxsudf_fs (1.0.2d006 - SDK 10.6) [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [running]    com.adobe.AdobeCreativeCloud.plist [Click for support]
        [failed]    com.adobe.ARMDCHelper.cc24aef4a1b90ed56a...plist [Click for support]
        [running]    com.babylon.activation.plist [Click for support]
        [running]    com.brother.LOGINserver.plist [Click for support]
        [loaded]    com.divx.dms.agent.plist [Click for support]
        [loaded]    com.divx.update.agent.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.logitech.manager.daemon.plist [Click for support]
        [failed]    com.micromat.TechToolProAgent.plist [Click for support] [Click for details]
        [unknown]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    com.parallels.mobile.prl_deskctl_agent.launchagent.plist [Click for support]
        [not loaded]    com.splashtop.streamer-for-root.plist [Click for support]
        [loaded]    com.splashtop.streamer-for-user.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_desktop.plist [Click for support]
        [loaded]    com.xamarin.mtvs.buildserver.plist [Click for support]
        [loaded]    org.gpgtools.gpgmail.enable-bundles.plist [Click for support]
        [loaded]    org.gpgtools.gpgmail.patch-uuid-user.plist [Click for support]
        [loaded]    org.gpgtools.gpgmail.updater.plist [Click for support]
        [running]    org.gpgtools.Libmacgpg.xpc.plist [Click for support]
        [loaded]    org.gpgtools.macgpg2.fix.plist [Click for support]
        [running]    org.gpgtools.macgpg2.shutdown-gpg-agent.plist [Click for support]
        [loaded]    org.gpgtools.macgpg2.updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [running]    com.adobe.adobeupdatedaemon.plist [Click for support]
        [loaded]    com.adobe.ARMDC.Communicator.plist [Click for support]
        [loaded]    com.adobe.ARMDC.SMJobBlessHelper.plist [Click for support]
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist [Click for support]
        [loaded]    com.bombich.ccc.plist [Click for support]
        [loaded]    com.bresink.system.securityagent3.plist [Click for support]
        [running]    com.elgato.EyeConnect.plist [Click for support]
        [failed]    com.filemaker.fms.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [failed]    com.micromat.TechToolProDaemon.plist [Click for support] [Click for details]
        [unknown]    com.oracle.java.Helper-Tool.plist [Click for support]
        [running]    com.paradigmasoft.vserver_x64.plist [Click for support]
        [running]    com.parallels.mobile.dispatcher.launchdaemon.plist [Click for support]
        [loaded]    com.parallels.mobile.kextloader.launchdaemon.plist [Click for support]
        [loaded]    com.rogueamoeba.instanton-agent.plist [Click for support]
        [running]    com.sec.faxdb.plist [Click for support]
        [running]    com.splashtop.streamer-daemon.plist [Click for support]
        [loaded]    com.splashtop.streamer-srioframebuffer.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_service.plist [Click for support]
        [loaded]    com.timesoftware.timemachineeditor.backupd-auto.plist [Click for support]
        [loaded]    com.wuala.WualaFS.KextLoaderHelper.plist [Click for support]
        [loaded]    de.meilenstein.MSTFirstRunInstaller.plist [Click for support]
        [loaded]    de.meilenstein.MSTHostPreferences.plist [Click for support]
        [loaded]    org.cindori.AuthHelper.plist [Click for support]
        [loaded]    org.cindori.TEAuth.plist [Click for support]
        [loaded]    org.gpgtools.gpgmail.patch-uuid.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
        [unknown]    org.virtualbox.startup.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [failed]    com.amazon.cloud-player.plist [Click for support] [Click for details]
        [running]    com.amazon.music.plist [Click for support]
        [loaded]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support]
        [failed]    com.smithmicro.cleaning.schedulermailer.plist [Click for support] [Click for details]
        [loaded]    com.splashtop.streamer-for-user.plist [Click for support]
        [failed]    com.vladalexa.MagicPrefs.plist [Click for support] [Click for details]
        [not loaded]    org.virtualbox.vboxwebsrv.plist [Click for support]
        [running]    ws.agile.1PasswordAgent.plist [Click for support]
    User Login Items: ℹ️
        NeoFinder Global QuickFind    Programm  (/Applications/NeoFinder.app/Contents/Resources/NeoFinder Global QuickFind.app)
        FontExplorerXAutoload    Programm Hidden (/Volumes/Macintosh HD/Users/[redacted]/Library/Application Support/Linotype/FontExplorer X/FontExplorerXAutoload.app)
        iTunesHelper    Programm Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        lingvod    Programm  (/Applications/ABBYY Lingvo.app/Contents/Resources/lingvod.app)
        Air Display Host    Programm  (/Applications/Air Display Host.app)
        FavoriteApps    Programm  (/Applications/FavoriteApps.app)
        Dropbox    Programm  (/Applications/Dropbox.app)
        Rogue Amoeba Schedule Helper    Programm Hidden (/Library/Application Support/Audio Hijack Pro/Rogue Amoeba Schedule Helper.app)
        Wondershare Helper Compact    Programm  (/Volumes/Macintosh HD/Users/[redacted]/Library/Application Support/Helper/Wondershare Helper Compact.app)
        Elgato Thunderbolt Dock Dienstprogramm    Programm  (/Applications/Elgato Thunderbolt Dock Utility.app)
        AdobeResourceSynchronizer    Programm Hidden (/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Helpers/AdobeResourceSynchronizer.app)
        PowerboxInjector    Programm  (/Applications/PowerboxInjector.app)
        Karabiner    Programm  (/Applications/Karabiner.app)
        MEGAsync    Programm  (/Applications/MEGAsync.app)
    Internet Plug-ins: ℹ️
        OVSHelper: Version: 1.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 3.0.0.85 BETA  - SDK 10.7 [Click for support]
        Google Earth Web Plug-in: Version: 6.0 [Click for support]
        Silverlight: Version: 4.0.60531.0 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        DivX Web Player: Version: 3.2.4.1250 - SDK 10.6 [Click for support]
        AmazonMP3DownloaderPlugin101749: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 [Click for support]
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Picasa: Version: 1.0 [Click for support]
    Safari Extensions: ℹ️
        1Password
        AdBlock
        My eBay Manager
        Ultimate Status Bar
        Scroll To Top
    3rd Party Preference Panes: ℹ️
        3Dconnexion  [Click for support]
        ADOView  [Click for support]
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        FUSE for OS X (OSXFUSE)  [Click for support]
        GPGPreferences  [Click for support]
        handyPrint  [Click for support]
        Logitech Preference Manager  [Click for support]
        MagicPrefs  [Click for support]
        Perian  [Click for support]
        Tuxera NTFS  [Click for support]
        Valentina Server  [Click for support]
        xGestures  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh SSD: Disk size: 510.88 GB Disk used: 288.86 GB
        Destinations:
            Data [Network]
            Total size: 3.00 TB
            Total number of backups: 32
            Oldest backup: 2015-01-29 19:13:21 +0000
            Last backup: 2015-04-28 23:34:01 +0000
            Size of backup disk: Excellent
                Backup size 3.00 TB > (Disk size 510.88 GB X 3)
            Backup [Local]
            Total size: 2.00 TB
            Total number of backups: 27
            Oldest backup: 2015-01-31 11:33:00 +0000
            Last backup: 2015-04-12 21:05:25 +0000
            Size of backup disk: Excellent
                Backup size 2.00 TB > (Disk size 510.88 GB X 3)
    Top Processes by CPU: ℹ️
            14%    Adobe CEF Helper
            10%    My Watches.debug
             8%    WindowServer
             8%    backupd
             3%    Creative Cloud
    Top Processes by Memory: ℹ️
        1.34 GB    kernel_task

  • FILE UPLOAD PROBLEM SHOWING THE CONTENTS IN THE SAME BROWSER WINDOW

    Hi,
    This is amit Joshi
    I have uploaded content using input tag of type file and posted to jsp as multipart/form-data type
    in that jsp i am using following code to display the content in browser but only first content is displayed How can i modify it to show all content in the file ..
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
    FileItem fileItemTemp = (FileItem)it.next();
    if (fileItemTemp.isFormField()){
    %>
    <b>Name-value Pair Info:</b>
    Field name: <%= fileItemTemp.getFieldName() %>
    Field value: <%= fileItemTemp.getString() %>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
    optionalFileName = fileItemTemp.getString();
    else
    fileItem = fileItemTemp;
    if (fileItem!=null){
    String fileName = fileItem.getName();
    %>
    <b>Uploaded File Info:</b>
    Content type: <%= fileItem.getContentType() %>
    Field name: <%= fileItem.getFieldName() %>
    File name: <%= fileName %>
    <%
    if(fileItem.getContentType().equals("image/jpeg")) { %>
    File : <p><%
         //response.setContentType("image/gif");
         byte[] bArray=fileItem.get();
         response.setContentType("image/jpeg");
         outputStream=null;
         outputStream= response.getOutputStream();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    else if(fileItem.getContentType().equals("text/plain"))
         %> File : <%= fileItem.getString() %>
    <%
    byte[] bArray=fileItem.get();
    response.setContentType("text/plain");
         outputStream = response.getOutputStream();
         out.println();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    %> </p> <%
    %>
    </body>
    </html>
    Edited by: Amit_Joshi on Nov 13, 2007 10:58 PM

    Well Well Well..
    That would not work...
    What you have to do is save the uploaded file content on to a location and then pass the fileName as a request parameter to a deidicated which displays the contents of that file.
    Just as an example
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
       FileItem fileItemTemp = (FileItem)it.next();
    %>
    Name-value Pair Info:
    Field name: <%= fileItemTemp.getFieldName() %><br/>
    Field value: <%= fileItemTemp.getString() %><br/>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
        optionalFileName = fileItemTemp.getString();
    if(!fileTempItem.isFormFiled()){
       String fileName = fileItem.getName();
       fileItem.write(optionalFileName);
    %>
    Uploaded File Info:
    Content type: <%= fileItem.getContentType() %><br/>
    Field name: <%= fileItem.getFieldName() %><br/>
    File name: <%= fileName %><br/>
    <%
    if(fileItem.getContentType().equals("image/jpeg") || fileItem.getContentType().equals("image/pjeg")) {
    %>
      <img src="FileServlet?fileName=<%=optionalFileName%>"   
    <%
    %>
    </body>
    </html>a sample code snippet for FileServlet.
    String fileName =  request.getParameter(fileName);
      File file = new File(fileName);
       if(!file.exists())
         return;
      // If JSP
      String mimeType = application.getMimeType("fileName");
           If you are using servlet
           String mimeType = this.getServletContext().getMimeType(fileName);
         response.setContentType(mimeType);  
         response.setHeader("Content-Disposition","inline;filename=\\"+fileName+"\\");
      BufferedOutputStream out1 = null;
      InputStream in = null;
      if(mimeType == null)
         mimeType = "application/octet-stream";
      try{
         in = new FileInputStream(f);
         response.setContentLength(in.available());
         BufferedOutputStream out1 = new BufferedOutputStream(response.getOutputStream(),1024);
         int size = 0;
         byte[] b = new byte[1024];
         while ((size = in.read(b, 0, 1024)) > 0)
            out1.write(b, 0, size);
      }catch(Exception exp){
      }finally{
          if(out1 != null){
             try{
                out1.flush();               
                out1.close();
             }catch(Exception e){}
          if(in != null){
            try{in.close();}catch(Exception e){}
      } Hope that might answer your question :)
    However,this is not the recommended way of doing this make use of MVC pattern.Would be a better approach.
    you might think of googling on this and can findout what is the best practise followed for problems of this sort
    REGARDS,
    RaHuL

Maybe you are looking for