Saving uploaded pdf files in an extenal folder

Can anybody help me that what is the process of uploading files such as pdf or word files in some specified folder outside of database. I am using APEX 4 with oracle 11g.
Kind Regards
Mazahir Abbas

Try This one...
CREATE OR REPLACE PROCEDURE ORSC_RMS.sn_blob_to_server (p_filename IN VARCHAR2
AS
l_file UTL_FILE.file_type;
l_buffer RAW (32767);
l_amount BINARY_INTEGER := 32767;
l_pos INTEGER := 1;
l_blob BLOB;
l_blob_len INTEGER;
l_name VARCHAR2 (4000);
BEGIN
-- Open the destination file.
l_file := UTL_FILE.fopen ('ORSC_DATAOUT', p_filename, 'w');
-- Get LOB locator
FOR rec IN (SELECT blob_content l_blob
FROM apex_application_files
WHERE ROWNUM = 1)
LOOP
l_blob_len := DBMS_LOB.getlength (rec.l_blob);
-- Read chunks of the BLOB and write them to the file
-- until complete.
WHILE l_pos < l_blob_len
LOOP
DBMS_LOB.read (rec.l_blob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos := l_pos + l_amount;
END LOOP;
COMMIT;
END LOOP;
-- Close the file.
UTL_FILE.fclose (l_file);
EXCEPTION
WHEN OTHERS
THEN
-- Close the file if something goes wrong.
IF UTL_FILE.is_open (l_file)
THEN
UTL_FILE.fclose (l_file);
END IF;
RAISE;
END;
/

Similar Messages

  • Upload PDF file from SAP Portal and save in SAP

    A file in PDF format needs to be uploaded from SAP Portal and the file is to be saved in SAP. Request for help, how to do the same. What are the FM to be used etc..
    Thanks,

    hi
    Use FM  GUI_UPLOAD with file type as BIN
    there are similar threads...pls refer to them for more details:
    https://www.sdn.sap.com/irj/sdn/profile?userid=3166533
    Upload pdf file to SAP
    PDF File
    reward if helpful
    regards,
    madhu

  • 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.

  • How to upload pdf file in a canvas in flex web application?

    how to upload pdf file in a canvas in flex web application?

    Hey saif.antri,
    You can view PDFs and more using iBooks on your iPhone:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    Have a great day,
    Delgadoh

  • Problem saving a pdf file (adobe X) on a DFS (Distributed File System)

    Following the installation of the X version of adobe reader, saving a pdf file over the network handled by DFS (distributed system files) is not possible.
    the following message appears: The file may be read-only or opened by another user. Save the document under a different name or in a separate folder.

    Hi,
    Please refer to the thread http://forums.adobe.com/message/3312454#3312454
    Reader X has known compatibility issues with DFS .
    This should most probability be fixed in the nxt update of Reader X
    Thanks

  • How do upload pdf files to ibook

    Hi ! 
    How do you upload PDF files to ibook in Ipad2 ?
    Thank you for your time.

    This should answer your questions.
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    You can read this as well.
    https://discussions.apple.com/thread/2528611?start=0&tstart=0
    Message was edited by: Demo

  • How do you change the default save as directory when saving a PDF file to your hard drive?

    This is the on-line help instructions on this site:
    Downloading a PDF file to your hard drive
    You can download a PDF file to the hard drive from a web page's link. Downloading PDF files doesn't require the ActiveX plug-in file to be installed. (If you want to open and view the PDF file after downloading it, you must have Acrobat, Adobe Reader, or Acrobat Reader installed.)
    To download a PDF file from a link:
    1. Right-click the link to a PDF file, and then choose Save Target As from the pop-up menu.
    2. In the Save As dialog box, select a location on your hard drive, and then click Save.
    My issue:  I want to save several pdf files (from the Adobe Reader in my browser) one at a time and each time it defaults the save as directory to the desktop and I have to go looking for the directory I last saved a pdf file in.  I got lots of directories and I wish I could change the default setting for the save as directory.  Just a minor thing but irritating as other programs usually will allow you to switch the default save as directory to one of your choosing.

    There is not a way to set the default location from all the forums i searched in the last couple days.
    Russ

  • Print to PDF - using Snow Leopard (Saving a PDF file when printing is not supported. Instead, choose

    i have a PDF form that i created that is used as a custom proposal that my company sends out to potential clients. the form in its editable state is only used internally. we recently upgraded to snow leopard, but prior to the upgrade, we were able to fill the custom proposal form out using adobe reader, and, as you well know, we weren't able to save that edited document as a PDF with the custom form fields filled out. our work around using adobe reader was to print to a pdf using the adobe pdf printer in the printer dialog. with the addition of snow leopard, however, instead of choosing the adobe pdf printer, we were to choose PDF from the bottom left corner, then Save As PDF, and it would spit out an uneditable pdf that then allowed us to email it to the potential client without them being able to edit it as well as have an internal, digital copy for our records instead of having lots of paper floating around (i know this is also doable using security that disallows the client certain editing privileges, but printing to a pdf is much quicker and more efficient, and the pdf security isn't really that secure at its best).
    in any case, i came across this gem of a post here on the support forums that installs another option from the PDF drop down on the bottom left of the print dialog menu that reads Save As Adobe PDF and is supposed to do exactly what i am trying to get it to do...print to a pdf file from adobe reader.
    http://kb2.adobe.com/cps/509/cpsid_50981.html    
    once i updated to acrobat 9.2 (as the link above suggests 9.1), however, the Save As Adobe PDF does appear in the print dialog menu, but it still gives me the same error that acrobat 8 - 9 gave me while using Snow Leopard — Saving a PDF file when printing is not supported. Instead, choose File > Save — and as i've already explained, you can't save an edited pdf form in reader (as i am the only one in the office with acrobat) and still keep the fields as you've entered them in. the only work around is to print to a pdf but is apparently having some recent problems.
    using acrobat, however, i know that i can save the editable pdf as a new file with the fields customized as i have left them, but it still saves it as an editable pdf and the print to a pdf option still remains the best option...that way we have digital copies internally that are uneditable that can be printed at any time or emailed to the client.
    how can i do print to a pdf, based on what i've written above, using snow leopard and acrobat and reader?

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • Saving a PDF file when printing is not supported. Instead, choose File Save.

    I am using Mountain Lion (10.8.2) and I was using Adobe Reader version 9. In the past, I've always been able to print to file using the File -> Print dialogue but all of a sudden it stopped working. I read somewhere that installing the latest version of Adobe Reader (version 11) would remove the old printer, so I did so. It took me about an hour on version 11 to even find the pdf print to file option, but I am getting the same message. For what it's worth, when I try print to file from Microsoft Word, I have no problem. I have no idea why things changed all of a sudden, but does anyone have any idea how I can get this working again?

    I checked with Adobe.  No luck. 
    Allow me to clarify my problem: 
    I have Adobe Reader XI. I also use a Mac--imac and a MacBook Pro.   My adobe was updated on 12/24.  Prior to that point, I could open my print dialogue box and there was a PDF tab on the bottom left.  In the drop down menu there were many choices, including but not limited to Open in PDF Preview, Print PDF, Save PDF, email PDF.  If I selected one page of 30 pages from a document saved in Adobe, I could extract just that one page and save it or email it, without having to send the entire document.   After the update, when I open a PDF file using ADOBE READER XI, and then open the print dialogue box, and follow those same steps, I get the message "Saving a PDF file when printing is not supported. Instead, choose File > Save."   My question is why is this feature now unavailable and is there a way to fix it? 
    The answer I got from Adobe was that Adobe never had this function, so it must have been via my print or preview programs..which are apple.  Does anyone have any thoughts?
    Thank you.
    https://forums.adobe.com/message/7124567 

  • Saving a PDF file when printing is not supported.

    Hi Guys,
    I upgrade from leopard to snow and now I don't have the possibility anymore to to print PDF as a PDF.
    Before I was going to print and then choose save as a pdf and everything ok.
    Now after the upgrade to snow every time that I am going to print a pdf from a pdf (acrobat 9 and X) I received this msg "Saving a PDF file when printing is not supported. Instead, choose File > Save "
    Why that happened ? how can I fix it?
    The thing is that I have a pdf form (contract) that I have to fill up and print it as a pdf.
    Now I can't do that I can save only the form with the fields unlock.
    thanks you in advance for your help.
    Xoxo
    Fotis

    Ah.. this is so annoying filled in a long form.. which doesn't allow saving.. I assumed as normal with this type of form I could print to PDF and at least get a electronic copy.. but no, I made the mistake of installing Adobe Reader.. and it has screwed up the print options.. when I try to save as PDF from the print menu I get the helpful suggestion
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    When I do as suggested.. it helpfully tells me that it will only save a "blank form"..
    Adobe has badly messed up their reader.. I now need to print out and then scan this document to get the electronic copy I need.. I will be uninstalling promptly after this fiasco..

  • Problem with saving a pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21).

    Need advice on a saving file issue. I'm having problem with saving a .pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21). This is new as this error message just recently started to pop-up.

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • AcroPro9, snow leopard, "Saving a PDF file when printing is not supported"

    Hi,
    I have AcroPro9.1.3 (and 8 and 7 and Dreamweaver CS3, and probably other stuff too) on Snow Leopard (10.6.1).
    I've read about de-installing the Acrobat printer and using "save as Adobe PDF" from the PDF button on the print menu.  However, when I try this, I'm told "Saving a PDF file when printing is not supported".  Note that this is AcroPro9, not AcroReader.  I get the same message when I try any of the other options under the PDF menu on the printer menu in Acrobat.  In other applications, tho, (eg powerpoint), the PDF button works fine.
    Before the upgrade, the PDF button on the print menu didn't work either (same message), so I used the Adobe printer, but now I can't.  I had always assumed that AcroPro was stopping me from using Apple's PDF generator in favour of the Adobe one.  But maybe some of my settings are wrong.
    I now cannot print to PDF from Acrobat.  Help.  There are 120 fourth year software engineering students who will appreciate any help I get, as I can then post my recent lecture notes for them.
    (What I really want to do is to take my powerpoint slides and print 4-up versions directly.  But the PPT idea of 4up wastes a lot of space, so I generate 1up PDF, and the 4up PDF from that using Acrobat.  At least, I used to.  It was so much easier in the old days with Latex and psnup ...)
    -- Mike G.

    My current solution is to print from Preview instead (which will let me use the Adobe print facility, unlike Acrobat itself).
    In fact, I pretty much have no need for Acrobat at the moment.
    Adobe and Apple between them seem to have some real problems with Snow Leopard.  I can't get Dreamweaver to run anymore without immediately crashing (yes I looked through the help forums, deleted settings, etc etc).  So I'm now looking for a replacement tool for Dreamweaver and will likely use that from now on.
    Adobe is not looking very good to me at the moment.  YMMV.
    -- Mike

  • Message error: "Saving a PDF file when printing is not supported. Instead, choose File Save."

    I have 2 problems creating a .ps file.
    As i know, there are 2 ways of creating a Postcript file from a PDF.
    The first is from the Print monitor. I go through menu File/Page Setup i give the exact dimensions from my spreaded pages and after that i go to Print and when this window opens,
    i go down and left and i open the pop-up menu on"PDF" and i choose "Save PDF as Postscript"
    There is where i get the above error message :
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    And the second scenario, i get an equal problem.
    If i go to Page setup and give the right dimensions of my spreaded document, after that i go to the File/Save as command, there is choose from the bottom pop-up menu, the option at Format: Postscript
    If i do that i get the following message:
    "The document could not be saved. An internal error occured."
    What is wrong with all this?
    Can anyone help me out?
    System preferences.
    Mac OS X 10.4.11
    Acrobat professional 8.1.2
    Thank you

    Jon Bessant asked:
    "Does this occur on every PDF file? The internal error message that is ..."
    Yes, it happens on every PDF

  • 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.

  • How to upload PDF files to a website? Always error messages

    I made a script for friends to upload PDF files to a website we have.
    The script is: <form action ="<?php print $_SERVER['PHP_SELF']?>" method="post" enctype="multipart/form-data">
    This doesn't work in Firefox; it does in other browsers, even IE.
    What do I do wrong?

    Hi Ajay,
    Using FILE_UPLOAD UI element you can upload files..
    Please check this..
    http://help.sap.com/saphelp_ERP2005/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP
    Upload PDF file to Webdynpro
    Cheers,
    Kris.

Maybe you are looking for

  • E-Recruiting: New Text element on WebDynpro page of External candidate

    Hi, I have a requirement to add a new text element on the personal data tab of the candidate profile. I have tried this through application configuration method, but the existing Text elements are not sufficient to accomodate the text matter that i n

  • Problems with Bash Completion

    Hi, I recently noticed an odd new behavior of the bash-completion package. For example: Lets say there is folder called 'Downloads'. The oldd behavior was: mv Dow[tab] mv Downloads/ Now, it's like this: mv Dow[tab] mv Downloads (with a space after 'D

  • Using Macbook AS a monitor, possible?

    Currently I have a dual 1.8 G5 without a monitor, and a working Macbook 2GHz. What I'm wondering is... is there any way for me to use the laptop as a monitor for my desktop? Optimally I'd like to be able to use the keyboard and mouse on my laptop as

  • ORA-03120: two-task conversion routine: integer overflow

    Hello DB Gurus!! Need your comments and help once again... I am trying to import a DUMP file into My Local Database ie. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 The file exported was by different user on different Dabase of Oracle 10

  • Synch mail to multiple macs

    is there a way to synchronize mail, including multiple email accounts and folder structure between multiple macs using cloud services such as dropbox? For instance is there a pst file I could copy to dropbox and later upload from dropbox that would m