How to access PDF file in Browser

Hi All,
I am using Oracle Application 11.5.10.2 and i want to display a pdf file in the output of browser which is stored in the location "/USR/TMP" of Application server.
This is default path of "UTL_FILE_DIR" which is set.
In this path a pdf file is there ie; abc.pdf
So i want to display this pdf file in Output front end.
what i have done is Written a sql script embedded html in that
code is as follows:
DECLARE
str varchar2(1000);
BEGIN
/*********** Determines the mime type for the document to be displayed***********/
select '<html>
     <body leftmargin=0 topmargin=0 scroll=no>
     <embed width=100% height=100% fullscreen=yes
     src="/usr/tmp/abc.pdf">
     </body>
     </html>'
into str
from dual;
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,str);
EXCEPTION
when others then
FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM);
END;
But if in (src="/usr/tmp/abc.pdf">) if i am giving local path
ie;(src="file:///C:/Documents%20and%20Settings/Desktop/abc.pdf">
the pdf is displayed in output.
Can anyone help me out for the best possible solution for this.
Thanks!!

Can you open the pdf file in the reader without downloading it?
ie is the file form.pdf a valid pdf file?
How big a PDF are we talking about here? Rather than reading the whole thing into memory, I would suggest you stream things a little.
You are doing this in a servlet right? Not a JSP?
JSPs can add extra carriage returns, and thus corrupt the file you are sending.

Similar Messages

  • How to access pdf files on icloud with iphone

    Does anyone know how to access pdf files on icloud when saved to icloud on a mac?

    At the moment, you can't.  A favourite complaint.  Hopefully, the situation will change in the near future, but only Apple knows when or if.

  • How to open pdf files in browser using flex

    hi,
    my project is having a Document explorer wchich contains pdf
    files,iwant to open it in the browser.can any one tell me how to
    open pdf documents using flex programming(i tried with different
    thing like swf's but my client wants only pdf formatt).

    Another option is by calling a JSP page. This example will
    open a pdf file into a new browser without displaying the download
    "save" prompt.
    Function to call the JSP:
    private function downloadFlyer(event:Event):void {
    var jspLink:URLRequest = new
    URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
    navigateToURL( jspLink, "_blank" );
    JSP code:
    <%@ page errorPage="error.jsp" %>
    <%@ page import="java.io.*" %>
    <%
    //Get the parameters
    String downloadFileName=request.getParameter("fileName");
    String fileName = application.getRealPath("/downloads/" +
    downloadFileName);
    File file = new File(fileName);
    if (!file.exists()) {
    throw new IOException("File does not exist.");
    // Get the size of the file
    long length = file.length();
    // You cannot create an array using a long type.
    // It needs to be an int type.
    // Before converting to an int type, check
    // to ensure that file is not larger than Integer.MAX_VALUE.
    if (length > Integer.MAX_VALUE) {
    throw new IOException("File too big.");
    response.reset();
    response.resetBuffer();
    response.setContentType( "application/pdf" );
    response.setHeader ("Content-Disposition", "filename=" +
    downloadFileName);
    //Prevent the Java error: "getOutputStream() has already
    been called for this response"
    out.clear();
    out = pageContext.pushBody();
    InputStream in = new FileInputStream(file);
    OutputStream output = response.getOutputStream();
    try {
    int curByte=-1;
    while( (curByte=in.read()) !=-1){
    output.write(curByte);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    } finally{
    output.flush();
    in.close();
    response.flushBuffer();
    %>

  • HOW TO ACCESS pdf files? where did they go?

    i have purchased intructional PDF FILES and did view them when i downloaded them. now i want to see them again and dont know how to access them. im rather stupid when it come s to computers. was i supposed to do something after i downloaded them? place them somewhere? i dont know how to do that. are the files i paid for lost? i can find free things i downloaded but these others that i paid for arent there!

    At the moment, you can't.  A favourite complaint.  Hopefully, the situation will change in the near future, but only Apple knows when or if.

  • How to avoid the pdf file in browser cache

    i am opening pdf files through browser. After that same pdf changed their contents . after i open the pdf but it will not updated. Bcoz this file in cache . so how to avoid the cache store for pdf files.
    plz help me!!!

    the code is as bellow
    File fBlob = new File ("test.pdf");
    FileInputStream fIS = new FileInputStream(fBlob);
    pstUpdate= con.prepareStatement("UPDATE table set file = ? where id = ?");
    pstUpdate.setBinaryStream(1, fIS, (int) fBlob.length());
    pstUpdate.setString(2, rs.getString("id"));
    pstUpdate.execute();
    con.commit();

  • How to open *.pdf files in BOXI r2 inbox

    I am scheduling as  *.pdf file for deski report.After scheduling i am getting *.pdf in my inbox.if the report is deski or webi we can use FC_REPORT_ENGINE or WI_REPORT_ENGINE to open the report's using java code.In same way how to open *.PDF file in Inbox?
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM

    Hi Ram,
    Following information might help you to resolve the issue.
    After logging into Desktop Intelligence, you may be presented with a message stating:
    u201CYou have received 1 document from users"
    Examining the Inbox from within the Desktop Intelligence client shows no objects visible in your Inbox.
    The object in your Inbox is in a format other than Desktop Intelligence format such as, PDF, XLS or other format. Therefore the object is not recognized by the Desktop Intelligence client inbox browser.
    Log in to Info View or the Central Management Console, browse to your Inbox and verify the file name and format that has been sent to your Inbox. The object may be saved, copied, moved or deleted as necessary.
    Regards,
    Sarbhjeet Kaur

  • Cant open pdf files in browser

    Cannot open pdf files in browser but can open from hard drive. Using Adobe 11.0.02 with Windows 8. Have uninstalled Reader and reinstalled and then restarted PC; Checked for updates; used the Repair selection on the menu. Frustrated. Suggestions?

    Hi adityabhargava01-
    My first suggestion is to upgrade to the most recent version of Firefox by going to this link:
    http://www.mozilla.org/en-US/firefox/new/
    My second suggestion is to read this article on how to many your preferences on how Firefox deals with PDFs and all other file types:
    [[Options window - Applications panel]]
    I hope that helps!

  • Displaying *.pdf file on browser with servlet

    hi all
    this RAMESH,struggling to display a pdf file on browser from a remote mechine
    earlier i tried with servlet
    response.setContentenType("application/pdf")
    out.println();
    by this i am getting only some data as below
    endobj
    4 0 obj
    <<
    /ProcSet [ /PDF /Text /ImageB ]
    /Font << /Fo0 21 0 R /Fo12 24 0 R /Fo13 27 0 R /Fo16 30 0 R /Fo18 33 0 R /Fo19 36 0 R >>
    >>
    endobj
    For this purpose i have gone thru www.lowagie.com
    and gone thru all examples but i am not getting how to display on browser or at least awt frame
    please requesting all for suggest me some way
    tanks all
    -Ramesh

    are you trying to
    a) create a PDF dynamically
    b) send an existing PDF

  • Cannot Access PDF Files on Several Websites

    Since loading Adobe Flash, 3-4 weeks ago and then again today, I am unable to access PDF files on several different websites.  One good and easy to access example is:
    www.irs.gov  Under Forms and Pubs choose 1040 or any other.

    What browser are you using?
    I'm able to access forms at irs.gov using Firefox, IE10, Opera, Chrome and Safari on Windows 7, 8 and Mac OS 10.8.4

  • Needs software to access pdf files on sun ray client

    Needs software to access pdf files on sun ray client , with mozilla firefoX or Sea monkey as a browsers
    Tried to install pdf getting error ,
    Needs technique or technical troubleshooting steps to access pdf files on mozilla or sea monkey or other solaris compatible Browsers on Sun ray client
    Regards
    Raghav b v

    You can still install Acrobat Reader, Evince or Xpdf to read PDF files. But if you want that the PDF file should be displayed in a browser windows, then you can forget Evince in the previous list, or you can consider to use Firefox 19 or higher that incorpore a buid-in PDF viewer.

  • How to retrieve pdf file saved in icloud drive from iphone

    how to retrieve pdf file saved in icloud drive from iphone or ipad

    Hi henawybek, 
    Welcome to Apple Support Communities. 
    Take a look at the article linked below, it provides answers to frequently asked questions about iCloud Drive and will help you solve your question.
    iCloud Drive FAQ
    You can access your files in iCloud Drive any of these ways:
    On your iPhone, iPad or iPod touch with iOS 8, you can use Apple apps like Pages, Numbers, and Keynote, or any apps that support iCloud Drive.
    I hope this helps.
    -Jason 

  • How to link pdf file in flash by xml ??

    how to link pdf file in flash by xml ??

    try to give <a href="your address">My Pdf</a>
    and your textfield should be html enabled
    mytextField.html=true
    mytextField.htmlText=your xml text

  • I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files?

    I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files? Does using time machine mean that that partition is no longer able to be used as it used to be?
    HDD is a Toshiba 1TB, partitioned into two 500GB partitions.
    OS X version 10.9.2

    Yes, sharing a TM disk is a bad idea, and disks are cheap enough so that you don't need to.
    Now
    Have you tried to repair the disk yet

  • Cannot view pdf files in browser

    brand new imac cannot view PDF files in browser but the PDF's can be viewed if downloaded. All the data in the PDF online have question marks instead, maybe a missing font issue?

    Have Adobe Reader installed? If so, disable the AdobePDFViewer.plugin resident in /Library/Internet Plug-Ins., restart, and try again. For font-associated issues, peruse Font Management in OS X

  • How to process pdf file in clower ETL

    Hi,
    I want process pdf document in clower ETL dataintegartor. I have created sample project and created ETL garph universal data reader, data i have imported pdf file, while openning the metta data information it's show encoding data format and invalid delimiter and while running error in the console
    Please assist me how to process pdf file with unstructured data format.
    I am getting below the error,
    ERROR [WatchDog] - Graph execution finished with error
    ERROR [WatchDog] - Node DATA_READER0 finished with status: ERROR caused by: Parsing error: Unexpected record delimiter, probably record has too few fields. in field # 1 of record # 2, value: '<Raw record data is not available, please turn on verbose mode.>'
    ERROR [WatchDog] - Node DATA_READER0 error details:
    org.jetel.exception.BadDataFormatException: Parsing error: Unexpected record delimiter, probably record has too few fields. in field # 1 of record # 2, value: '<Raw record data is not available, please turn on verbose mode.>'
         at org.jetel.data.parser.DataParser.parsingErrorFound(DataParser.java:527)
         at org.jetel.data.parser.DataParser.parseNext(DataParser.java:437)
         at org.jetel.data.parser.DataParser.getNext(DataParser.java:168)
         at org.jetel.util.MultiFileReader.getNext(MultiFileReader.java:415)
         at org.jetel.component.DataReader.execute(DataReader.java:261)
         at org.jetel.graph.Node.run(Node.java:425)
         at java.lang.Thread.run(Thread.java:619)
    please can any one help me.
    Thanks
    Rajini C
    Edited by: 954486 on Sep 19, 2012 11:19 PM

    There is a separate forum for the BI/Information Discovery application of Endeca software: Endeca Information Discovery You should post your message there.
    Thanks.
    Sean

Maybe you are looking for

  • Contacts and Photos will not sync

    I downloaded the new software for my 3G and all my pictures and half of my contacts were erased. How can i rediscover them? I did not delete them they are just not showing up.

  • Open items check in OVA8

    Hi Friends, Can you let me know the impact if I have not maintain the *Max open item% *and maintained only No days openit as 5 in OVA8 transaction. Thank you, Ram

  • "Evaluate vendor" button inactive in vendor list

    Hi friends, While trying to call questionnaire in vendor list, I find "evaluate vendor" icon inactive. Following two settings are done: 1. Created questionnaire and assignmed to survey. Assigned an agent to the survey with valid email address 2. Main

  • WLC 5508 and CAP-1552E

    Hi , I am trying register external Wireless AP CAP-1552E  , with controller 5508 ( version 7.4.100). I have a couple of issues and I am bit confused. AP does not want to register to the controller , on layer 2 or layer 3 , even if I use DHCP option 4

  • SGA db_buffer_cache

    Hi, We are in process of tuning the SGA size of oracle database 8.1.7.0 We want to increase the size of db_buffer_cache. So, which other dependent parameters we have to take care of while increasing the size of db_buffer_cache ? With Regards