Embeding Uploaded PDF Static Files - Problems

Good morning all.
I have an application where users enter details and need to read through a selection of documents depending on what details they entered. I have uploaded 5 documents to my Apex server and used the following code to embed them inline (within the HTML itself)
<EMBED
SRC="http://server_name:7777/pls/apex/wwv_flow_file_mgr.get_file?p_security_group_id=824213546944709&p_fname=file1.PDF&p_inline=NO"
HEIGHT=500 WIDTH=800>This code was taken from the links on the Shared Components -> Static Files page in the Application builder
This all worked file on my development server, all the documents were displaying inline with the HTML document (Example - http://www.planetpdf.com/mainpage.asp?webpageid=1682 Example #1)
However, I realised one of the documents being displayed was wrong - file 1 was showing instead of file 2. I had embeded the wrong file in the page. So I just changed the &p_fname to file2.pdf. When I ran the page, all the other embeded documents were working fine, but the recently updated one was popping out of the window, and the region where I embeded the file was blank.
Now, I just exported my application to a new server for testing, and have had to change all the embeded regions to point to the newly uploaded files on the new server. None of these now show anything. They either show the little picture icon (red square, blue circle, red triangle) if I include the &p_inline=YES code, the same icon if I say &p_inline=NO instead, or if I drop this argument, the entire region is blank, and the Adobe PDF icon displays streched across the region after a new seconds.
Any hints?
Cheers,
Kate

Thanks for that Denes.
I just have one question - the source for your XML Report region shows the following code
DECLARE
   v   VARCHAR2 (200);
BEGIN
   v :=
         'SELECT '
      || '''<iframe src="#OWNER#.File_Table_Disp_Pr?p_file='
      || 2967670122524254593
      || '"'
      || ' height="880" width="600"></iframe>'''
      || ' document_display'
      || ' FROM DUAL';
   RETURN v;
END;The "2967670122524254593" refers to that file that was uploaded, yes? How do I find this number for my uploaded documents? I think it was a table somewhere, but I can't for the life of me remember which one.
Update: I found it - apex_applcation_files. I should just be able to insert the ID of the document I want in there, yes? I copied my document ID number (select id from apex_application_files) but the document is 404'ing on me.
help?

Similar Messages

  • After saving PDF static files, reader extended privileges (ARES) are lost

    Hi,
    Technical information:
    LiveCycle 7.0 (which came with Acrobat Professional)
    ARES 7.0
    Reader 7.0.0, 7.0.1 and 7.0.2
    Windows 2000
    PDF Static file type (as we are not dynamically adding/removing document objects)
    Scenario:
    PDF contains javascript to change the background and border colour of form fields (e.g. node.fillColor = '255,255,170' changed to '192,192,192') to denote enabled/disabled fields.
    PDFs are reader extended, so, user should be able to enter and save data on the documents multiple times.
    Problem:
    Reader extension rights of PDFs were lost. For example, in Reader, open document, update/enter data, save, and close. Do this multiple times and make sure one of the form fields background colour changes. When the document is re-opened its reader extension privileges are lost and user is no longer able to update/enter data on the document.
    This worked with our pilot forms (using AcroForm and ARES 6.0)
    ADOBE Explanation:
    The underlying XFA document is changed when the form field's background property was changed, hence, it is no longer a static form and its reader extended rights has changed.
    Resolution:
    PDF's file type changed from Static to Dynamic. Some logically driven functions will have to be changed/duplicated (e.g. calling enabling/disabling function(s) from the documents' docReady event).
    Have to use Reader 7.0.2 to be able to open, update, save, and close document multiple times without loosing reader extended rights.
    Hope this helps others
    Regards
    Jen

    Hi <br /><br />I think I am experiencing with similar issue , I am trying to do dynamic form filling using java. For this I created template wtih 4 text fields using adbobe Life Cycle designer 7.0. When I try to populate these fields through my java program, I am getting the below error<br />Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1        at com.cete.dynamicpdf.merger.x.a(Unknown Source)<br />        at com.cete.dynamicpdf.merger.x.<init>(Unknown Source)<br />        at com.cete.dynamicpdf.merger.PdfDocument.j(Unknown Source)<br />        at com.cete.dynamicpdf.merger.PdfDocument.<init>(Unknown rce)<br />      at com.cete.dynamicpdf.merger.PdfDocument.<init>(Unknown Source)<br />    at com.cete.dynamicpdf.merger.MergeDocument.<init>(Unknown Source)<br />        at CitiAcroFormFill.main(CitiAcroFormFill.java:26)<br /><br />I think the template had saved with Cross reference .when I use designer 7.0. How do I create and save my template as static pdf templates without having cross reference stuff?

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Unable to find "Adobe PDF" resource files PROBLEM

    I've installed Adobe Acrobat 8 Standard on Windows 7 operating computer.
    And while I was trying to create PDF from a file, it always shows
    Unable to find "Adobe PDF" resource files.
    Do you want to run the installer in repair mode?
    Yes or No
    I've pressed yes yet it doesn't really help me and still shows the same message.
    I've pressed no, and it doesn't do anything.
    ANY IDEA?
    PLEASE HELP!!!!!!!!!!

    Does this occur if you are logged in as the administrator? Have you updated AA8 to the latest version? You very likely need the latest version to run on Win 7, particularly since AA8 is not certified for Win 7. If you have a 64-bit system, there is no question that you need to update.

  • FM8 to PDF - Imported Files Problem

    When converting an FM8 file to a PDF, my imported files that have been pasted or linked in the FM8 document (primarily from Excel) show up as blacked-out boxes in the PDF. How can I fix this?

    Thank you for the reply. Some background.
    I have been using native .ai files for about 5 years with no difficulty and the current file with referenced ai file was created in FrameMaker 7.0 and Illustrator CS2. I have been revising a number of files and the problem appeared only at this time. I think there may be a problem with the Illustrator/PDF settings because I could create the graphic as a PDF but not an eps file. the resulting PDF when referenced in the FrameMaker file did not print either.
    There were some font warnings when I updated the Illustrator CS2 file to CS3 format.
    I had another file that I revised in FrameMaker but did not change the Illustrator file (CS2) and the resulting PDF printed the graphic fine.
    I am trying to check my Acrobat settings and Illustrator settings.

  • Uploading and attaching files problem

    Dear all,
    Since a couple of weeks,  I can not attach anything to a mail nor upload any image or file on any website (facebook, fileshare etc.).
    The finder always freezes (no matter if it's Mail, Safari, Chrome or etc.) and I have to start the app again. I don't know where the issue comes from and I would appreciate any help on this matter.
    I'm under OS X 10.9.2. (Macbook air 13")
    Thanks for your help!
    Ross

    Historically, if you wanted to send a UNIX folder via email, you would compress it into a foo.zip file. Apple understood this with Pages ’09 v4.n, when it took a Package (folder), compressed it, and renamed the .zip extension to .pages. All automatically, with general email and filesharing compatibility.
    Along comes Pages v5+, with a totally new document architecture that is incompatible with prior Pages versions. To the Finder, it too looks like a file due to Package magic — and yet, in its natural state, is an uncompressed folder. To get this to play nice with Gmail webmail, and non-Apple filesharing services, you have to compress this document (folder) yourself before mail attachment, or placing on your preferred filesharing service. This is achieved by right-clicking the document icon, and choosing compress, which produces foo.pages.zip.
    The other work-around is to simply not use Pages v5+, and resume using Pages ’09 v4.3. If you had Pages ’09 v4.3 previously installed, the new Pages installation moved it into /Applications/iWorks ’09. The trick here is that you cannot double-click on a document to open it as Pages v5+ will try to open it. You wil need the right-click contextual menu and Open With... Pages (4.3).
    Yes, it is a PITA.

  • Data upload to .XLSX file - problem using OLE2 object ?

    Hi all,
    Currently my abap program is able to upload data from .xls excel file  to internal table using OLE2 object.
    But it is not doing the same with the .XLSX excel 2007 file.
    I need to upload data from .XLSX file to internal table using OLE2 objects.
    Is it possible ?. If yes kindly help me in solving this issue.

    Yes it is Possible

  • Viewing uploaded static files

    Hello.
    We have a product demo we created in Flash file format that we are trying to post onto our Apex application's site.
    The demo is comprised of a few files that work together as long as they sit in the same directory. They are of the following format:
    html
    mp4
    swf
    pnp
    xml
    js
    I loaded them one by one into my ApEx application as static files.
    When I reference them through my application, they don't work. The flash presentation does not run.
    Any thought what it might be?
    FYI, we have uploaded other static files into our app for other purposes (doc, pdf). Those work just fine.
    thanks
    Boris

    Boris,
    The demo is comprised of a few files that work together as long as they sit in the same directory.
    I think the problem is what I've quoted from your message. Flash file needs the other files within the same directory and static files are stored on the database and called by a function.
    I think the solution is to upload your files to the server filesystem.
    Paulo Vale
    http://apex-notes.blogspot.com

  • Problems editing static file

    I've uploaded a static file and have encountered some problems when trying to edit it.
    1. The help text for both "Mime type:" and "File:" says "Identifies file name." No big deal, but why have help text if it's incorrect?
    2. HTML DB reports the size of my file to be 1677 and the information region on the edit page says that files up 30,000 bytes can be edited; however, instead of allowing me to edit the file, I get this error message: "This text file is too large to edit. To change the content, you must edit the file on your local machine and upload it again." Which statement am I to believe? I suspect the error message is an error since the MIME type of the file is application/x-javascript rather than the TEXT MIME type indicated in the information region.
    3. If, in fact, the reason that I cannot edit the file is that it doesn't have a TEXT MIME type, can the list of editable MIME types be extended to include application/x-javascript?
    4. The browser isn't necessarily going to get the MIME type right during the upload. There even seems to be some controversy about the correct type to use for javascript. Can the MIME type itself be made editable?
    Thanks.
    Rodney

    Rodney -
    I have experienced the same problems. I've just had to learn to edit both CSS and Javascript files on my local machine and then re-upload them to HTMLDB. I am hoping in the next release of HTMLDB that this is resolved.
    I've discussed some of these types of issues in a survey and have had some follow-up with that as well. That is why I hope this will be resolved in the next release.
    Unfortunately, I don't think there is an immediate resolution or fix to the problems you are experiencing except to just deal with editing the files on your local machine and go through the arduous steps to reload it.
    James

  • Not able to access files from Workspace Images and Static files

    Hi,
    We have just migrated our APEX Application from one server to another.
    All the functionality is working fine except the images or files which we are uploading
    in
    Shared Components -> Static Files
    Shared Components -> Images
    We are uloading Images in Shared Components -> Images but those are not getting displayed there.
    Similarly the files which we are uploaded in Shared Components -> Static Files are not accessible. If we
    try to download using download icon its showing blank screen.
    I am using some javascript files which i have uploaded into static files, but not able to refer them in page.
    Please someone guide us how to resolve the above problem.
    Thanks in advance.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on May 25, 2010 1:35 AM
    Edited by: user11204334 on May 25, 2010 3:45 AM

    Hello Sanjay,
    If you upload any static files such as IMAGES, FILES, or CSS you have to use the tags: #WORKSPACE_IMAGES# or #IMAGE_PREFIX# depending on your files location..
    then try something like htp.p ('<img src="#IMAGE_PREFIX#fileName.gif" />');
    And it should show the fileName.gif on your browser...
    I am not sure if i remember correctly, you can reference files to a specific application or to the whole application, if I am not mistaken..Correct me..
    Regards,
    Noel Alex Makumuli,
    Tanzania

  • How to use static files

    Hi everybody
    I have a html file which i uploaded to static files section in apex.
    So now i want to use that html file as inline frame or iframe like
    <iframe src="#...#new1.html" height="400" width="600"></iframe>for image i am using #WORKSPACE_IMAGES#.
    But for static files what is the prefix i will use.
    i uploaded this html file to image section and tried #WORKSPACE_IMAGES#new1.htm but is not working.
    So is there any other way to do this ?
    Please help me.
    Thanks
    Regards
    Sabyasachi

    Hi Sabyasachi,
    Is the static file you uploaded is associated with any application? then
    use #APP_IMAGES#If not it will be available for the whole workspace, so you can use #WORKSPACE_IMAGES#

  • I have a problem with uploading pdf files. This was raised in April by Mariano and the solution given - but the link to the solution does not work. How do I get to the solution?

    I have just come across this problem uploading pdf files on FF 3.6. Mariano posted this same problem on 5 Apr ( I found his post after a Google search as a search of this Forum gave no result). It is shown as "solved" but when I click on the Show Solution link it just loops back to the question.
    How do I get to see the solution?

    The following line tells me that this is not a template file, but a document created from a template called index.dwt
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    This means that you saved a child document as a template file at some stage.
    If you go to Modify->Templates->Detach from Template, you can remove the template structure from your document. All you then need to do is to re-save the document as a template.

  • Problem in upload PDF file using Apache HttpClient3.1

    Hi:
    I am using Apache HttpClient 3.1 to upload pdf image from a STANDALONE java application to remote server (Weblogic9.1). Here are some questions:
    1) Do i have to use multipartpost method? (I am uploading pdf image one by one)
    2) The pdf image is added to request as:
    HttpClient client = new HttpClient();
    PostMethod method = new PostMethod("myServletUrl");
    method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
    new DefaultHttpMethodRetryHandler(3, false));
    InputStreamRequestEntity entity = new InputStreamRequestEntity(new FileInputStream(file), "application/pdf");
    method.setRequestEntity(entity);
    method.setRequestHeader("Content-type", entity.getContentType());
    int statusCode = client.executeMethod(method);
    3) On server side, a servlet will save the posted pdf image as (Apache FileUpload is not used here):
    InputStream is = req.getInputStream();
    saveFile(is, fileName); // write this input stream to file.
    The above steps 2 and 3 will create a pdf file on remote server with MUCH REDUCED size. Any idea what's the problem? content-type problem?
    4) An working example link will be great.
    thanks

    Dunno, but as this is a client side issue, the solution, if there is one will lie in the HTML / javaScript.
    If you dont get an answer in here, have google for an HTML solution, which you can then write out in your jsp.

  • APEX 3.1.2 Static File Upload Issues

    We are still running on APEX 3.1.2 though we hope to go to 4 very soon.
    We had a production problem this past week that is perplexing. I have seen other posts referencing similar issues but no solutions.
    We have an application that has several Static File Javascripts (.js). We already ran into the IE Upload bug so we only upload in Mozilla now.
    We had changes to one of the .js files (identity.js). I deleted the old file using the Shared Components screen and uploaded the new one. The action was "Successful" but the file was still the old version. We deleted a file of 73 lines of code and uploaded a new version of 28 lines. After successful upload, we still would get the 73 line version . The app was still getting that version too.
    I deleted it many times and tried again. I ran scripts to do both the delete and upload. I even deleted the file manually from the FLOWS_FILES table that held it. Still got the old version.
    We bounced the server (thinking it was cached somewhere) - still got the old version. Finally, in desperation, I started cloning the app to another app number in another Workspace. Since we use aliases, I thought I could use a clean Workspace and uplad the new file there. This worked but - suddenly the old Workspace started using the correct file.
    Is ther some secret cache somewhere that needs to be cleared out? I did not want to start randomly clearing out caches and there is no documentation on this issue.
    Is it something about our config - we have Oracle HTTP Server, OC4J, and modplsql for this environment with a 10g database.
    Any insight would be appreciated - my manager does not like "it fixed itself magically".

    We ruled out the browser caching by trying the app on several other people's PCs.
    I am thinking it is being cached somewhere in the APEX server environment but cannot find any documentation on where or what that might be.
    I think I might have triggered a refresh when I was trying to implement a cloned version (in a different Workspace). It seems that the scope of a JS file is within its Workspace so we figured that a new Workspace would treat the changed file as a new file - and it did. During this process, we had duplicate ALIAS for a minute and I think that confused the APEX App Engine and triggered the refresh.
    But that is a SWAG opinion.
    I also thought of "versioning" the JS files but our developers are not too keen. If we don't find another solution, that may be what we have to do.

  • How to batch upload PDF files into database BLOB

    Hello.
    I have a requirement to batch upload PDF files into BLOB column of an Oracle 8.1.7 table from Forms 6i Web. The content of the blob column (ie. the PDF content) MUST be displayable from all client software (eg. Oracle Web forms, HTML forms, etc.)
    Our environment is
    Middle-tier is 9iAS on Windows/2000
    Database is Oracle 8.1.7.0.0 on VMS
    Oracle Web Forms 6i Patch 10
    Basically my Oracle web form program will display a list of PDF files to upload and then the user can click on the &lt;Upload&gt; button to do the batch upload. I have experimented the following approaches but with no luck.
    1. READ_IMAGE_FILE forms built-in = does NOT work because it cannot read PDF file. I got error FRM-47100: Cannot read image file
    2. OCX and OLE form item = cannot use this because it does NOT work on the Web. I got error FRM-41344 OLE object not defined
    3. I cannot use DBMS_LOB to do the load because the PDF files are not in the database machine.
    4. Metalink Note 1682771.1 (How to upload binary documents back to database blob column from forms). When I used this, I got ORA-6502 during the hextoraw conversion. In using this solution, I have downloaded a bin2hex.exe from the Google site. I've noticed that when I looked at the converted HEX file, each line has the character : (colon) at the beginning of each line. I know the PDF file has been converted correctly to HEX format because when I convert the HEX file back to BIN format using hex2bin.exe, I'm able to display the converted bin file in Acrobat Reader. When I removed the : (colon) in the HEX file, I did NOT get the ORA-6502 error but I CANNOT display the file in Acrobat Reader. It gives an error "corrupted file".
    5. upload facility in PL/SQL Web toolkit - I tried to automatically submit the html form (with htp.p) but it does NOT load the contents of the file. I called the URL from Oracle forms using web.show_document. There seems to be issues with Oracle Web forms (JInitiator) and HTML (+ htp.p).
    The other options I can think of at this point are:
    1. Use SQL*Loader to do the batch upload via SQL*Net connection and use HOST() built-in from Oracle Webforms to execute SQL*Loader from the 9iAS.
    2. Write a Visual Basic program that reads a binary file and output the contents of the file into a byte array. Then build a DLL that can be called from Oracle webforms 6i via ORA_FFI. I don't prefer this because it means the solution will only work for Windows.
    3. Write a JSP program that streams the PDF file and insert the contents of the PDF file into blob column via JDBC. Call JSP from forms using web.show_document. With this I have to do another connection to the database when I load the file.
    4. Maybe I can use dbms_lob by using network file system (NFS) between the application server and VMS. But this will be network resource hungry as far as I know because the network connection has to be kept open.
    Please advise. Thank you.
    Regards,
    Armando

    I have downloaded a bin2hex.exe from the Google site.
    ... each line has the character : (colon) at the
    beginning of each line. I'm afraid it isn't a correct utility. I hope you'll find the source code of a correct one at metalink forum:
    Doc ID: 368771.996
    Type: Forum
    Subject: Uploading Binary Files: bin2hex and hex2bin do not reproduce the same file
    There is some links to metalink notes and some example about working with BLOB at http://www.tigralen.spb.ru/oracle/blob/index.htm. Maybe it helps. Sorry for my English. If there is any problem with code provided there, let me know by e-mail.

Maybe you are looking for