Upload  a PDF

hi
I develop a project using Oracle 9i and Developer 6i.
I have create a field on a form and a button.
My Question is how I can upload a PDF when i Press the button
Please using only PL/SQL not PHP or Java
Thanks

If you use Oracle 9i and Apache with DAD, it was very simple.
1. Create an upload table. Its structure would like
CREATE TABLE upload_table
(name VARCHAR2(128) NOT NULL,
mime_type VARCHAR2(128),
doc_size NUMBER,
dad_charset VARCHAR2(128),
last_updated DATE,
content_type VARCHAR2(128),
content LONG RAW,
blob_content BLOB);
2. Configure DAD. (file name is dad.conf or wdbsvr.app, the name depends on your DAD version)
For example, in wdbsvr.app, we should configure these two parameters
document_table = nemo.upload_table ;upload table name
upload_as_long_raw = xml ; xml file will be stored into LONG RAW field, others will be stored into BLOB
3. Create an upload procedure.
PROCEDURE testuploadfile(filename varchar2)
as
begin
HTP.htmlopen;
HTP.headopen;
HTP.title('Test Upload status');
--read data from upload_table (add your own codes)
--select fname, blob_content, content from upload_table where name=filename;
htp.print('Uploaded successfully, file name:'||fname);
htp.bodyclose;
htp.htmlclose;
exception
when others then
htp.print('Upload Error:'||sqlerrm);
htp.bodyclose;
htp.htmlclose;
end;
4. Create an upload page for testing purpose
create or replace procedure testuploadpage
as
begin
HTP.htmlopen;
HTP.headopen;
HTP.title('Test Upload');
HTP.headclose;
HTP.bodyopen;
HTP.header(1, 'Test Upload');
HTP.print('&ltform enctype="multipart/form-data" action="testuploadfile" method="post"&rt');
HTP.print(' File to upload: &ltinput type="file" name="filename"&rt&ltbr /&rt');
HTP.print(' &ltinput type="submit" value="Upload"&rt');
HTP.print('&lt/form&rt');
HTP.bodyclose;
HTP.htmlclose;
end;

Similar Messages

  • How do I upload a PDF to my blog site?

    I am using an iPad and unable to upload a PDF to insert as a post in our corporate website if you could assist I would be grateful. Thank you

    Not possible from within Reader for iOS.

  • Error message when trying to upload a pdf file to a form

    A user was trying to upload a pdf file to a form I created (Contractor Vanpool Application Form). The parameters I set, was that it had to be a pdf form, less than 20MB and a single file. She met these parameters, but when she hit the submit button, she received this dialogue box message:  Warning: JavaScript Window - File Attachments are not supported in FormsCentral PDF forms.  Please contact the form author to send the file attachments another way. This dialogue box prevented her from even getting as far as selecting the file and uploading. Another user was succesfully able to upload a form, so I know this is working.  So I changed the parameters to allow multiple files in any format, and she still had a problem.
    She states is using windows 95, Internet Explorer. Help, Michelle

    In Form Central, when I add a field, I select the Add File Attachment icon (see screen shot below - it is the 10th icon from the left, the paperclip over a sheet):
    Then it allows me to fill in the field, describing the file to upload, and the properties to the right defining the file size limit, type of file and other properties.  This is all done through formscentral, thus allowing a user in my form to upload a file that is attached to the form when submitted.

  • I am trying to upload my PDF file from my IBooks but its only giving me the option to upload from my pictures/gallery. How do I get it to where I can upload PDF files from my iBook or how do I transfer my PDF files to my pics?

    I am trying to upload my PDF file from my iBooks but its only giving me the option to upload from my pictures/gallery. How do I get it so I can upload from my iBooks or move my PDF files to my gallery so I can upload it?

    I'm having the same issue. I saved a PDF from an email into iBooks. I'm on apple applying for a job but the only option the upload button has is from the Photos file. How ironic right? Luckily I'm in Logistics and not an IT specialist applying for this job! Lol. Does anyone know the fix?

  • Issue with Upload of PDF

    Hello,
    I have converted an eFolio I received from my hotel into a PDF - and I can upload the PDF no problem and assign/attach to my expense report. However, when I am editing the expense report and try to "view" the PDF - the system does not apepar to recognize it and asks me to "save" the PDF (and it gives it a funny number also).
    In the end - I took a photo of my printed hotel receipt to make a jpg file and submitted from my mobile device - but we do need to resolve the issue with the pdf.
    The system seems to have no problem with the PDF it has of my itinerary. Also, when I open the PDF from my desktop - adobe acrobat opens no problem - so the PDF seems to be fine.
    Any assistance would be appreciated as having to print my eFolio so I can take a photo of it is a waste of time and resources.
    Thanks,
    Steve Monk,

    For a list of supported file types, please refer to the Help Center document "Claiming Expenses" > Main Tasks > Attaching Receipts.

  • When trying to upload a PDF to an interactive site I get the announcement:"The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach." How do I embed this, or in fact any other font ?

    When trying to upload a PDF to an interactive site I get the announcement: "The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach."
    I could not get rid of the Tahoma font in the WORD file.
    How do I embed this, or in fact any other font ?

    Thank you very much !
    Indeed, I was unaware of the enormous number of options that can be selected when converting a WORD file to PDF.
    I went thru the settings and found the right one for embedding the fonts.
    Thanks again !
    Oren

  • Upload of pdf file from windows server  in to DMS content server

    dear all,
              kindly help me out in uploading the pdf file in DMS content server from windows server. let me know the steps how to complete this task. its a little bit urgent.
          thanks in Anticipation
              vikram & kiran

    Welcome to SDN
    you can use FM BDS_BUSINESSDOCUMENT_CREATEF to do this
    check this thread
    Re: convert file details
    or this code sample
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Regards
    Raja

  • Urgent: Error while uploading into pdf file

    Hi ,
    I got a requirement that converting smartform into pdf file and sending into application server, And uploading the that pdf file into presentation server once a day am geting error when uploading into pdf format from application server .
    Error : There was an  error while tryinging to parse an image.
    Please help me out its urgent.
    Thanks in advance
    Regards
    krishna
    Edited by: krishna rao on Feb 13, 2008 12:05 PM

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • How to upload the pdf file to the next view?....urgent

    Hi Experts,
    I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
    But I don't know how to complete the function?
    Action:
    0.  Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
    1.  Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
    2.  Create a context attribute(upload) in the display_view.
    3.  Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
    4.  Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
    4.  Type code in the WDA for abap for setting data("old") to the context.
    5.  Active the WDA and run the WDA.
    6.  In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
    7.  Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
    8.  Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
    9.  Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
    10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
    11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
    12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
    13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
    method WDDOINIT .
    DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
    DATA upload                 TYPE        xstring.
    lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->getupload(
        IMPORTING
          upload = upload                         " xstring
      DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
      DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
      DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
    navigate from <CONTEXT> to <PDFSOURCH> via lead selection
      lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
    get element via lead selection
      lo_el_pdfsourch = lo_nd_pdfsourch->get_element(  ).
    get single attribute
      lo_el_pdfsourch->set_attribute(
        EXPORTING
          name =  `UPLOAD`
          value = upload ).
    endmethod.
    15. Active the WDA and run the WDA.
    In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
    But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
    I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
    Do you give some example or some hint for this problem ?
    Thanks & Regards,
    Tao

    Now, The problem has been solved.Thanks a lot.

  • IBooks:may upload a pdf ebook from my computer or, from www page link to it

    iBooks App
    =========
    In this App may upload a pdf ebook from my computer or, from www page link to it? if yes, may write inside the pdf there after?

    You can upload a PDF-file to your iPad via your computer using iTunes and you can download a PDF-file from a website and open this in iBooks.
    You cant edit the PDF inside iBooks.

  • How do I upload a PDF file?

    How do i upload a PDF file please? I have to convert to a Word document and urgently need assistance.
    Thank you!

    you want to upload a pdf file that's on your computer to some server?

  • I've uploaded 4 pdf documents. Now how do I convert them to Excel format?

    I've uploaded 4 pdf docs. Now how do I convert them to Excel format so I can manipulate the data?
    linda93790

    Hi linda93790,
    If you uploaded your files to http://cloud.acrobat.com, simply click on one of the PDF files, then click 'ExportPDF' from along the top-bar in your browser.  This will automatically load that PDF into the ExportPDF system.  From there, you can configure any options you may need and convert the file to an .xlsx file.
    Please let us know if you have any questions!
    Thanks,
    David

  • Cannot upload a pdf file created with LifeCycle designer ES 10.0

    Hi
    I am trying to upload a pdf document but each time I have the following error message:
    I tried many tricks like changing the acrobat plugin and using the default PDF viewer instead, I uninstalled and reinstalled all the Firefox plugins, I tried to upload it from IE... but none of these succeeded. I have the latest version of acrobat reader 11.0.7 and the pdf document id secured by a password and was generated using Adobe LifeCycle designer ES 10.0. How can I solve this issue? Thanks in advance

    In your browser make sure the default PDF Viewer is Adobe Reader

  • Regarding the uploading the pdf file to the application server

    hi,
    iam getting this error while uploading the pdf file to the applicatioin server.
    "There was an error while trying to parse an image"
    to convert smartform into PDF file we ll use convert_otf FM.
    If see that FM data ll be stored in it_tline structure ok.
    For sending to application server we ll use
    OPEN DATASET p_arch for OUTPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS.
      LOOP AT it_tline.
      TRANSFER it_tline to p_arch.
      ENDLOOP.
      CLOSE DATASET p_arch.
    Ok
    For getting data from internal table we ll use
    OPEN DATASET p_arch FOR INPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS
    do.
      READ DATASET p_arch INTO it_tline.
      if sy-subrc = 0.
        APPEND it_tline.
        ELSE .
          exit.
          endif.
      enddo.
    CLOSE DATASET p_arch.
          LOOP AT it_tline.
        TRANSLATE it_tline USING '~'.
        CONCATENATE wa_buffer it_tline INTO wa_buffer.
      ENDLOOP.
      TRANSLATE wa_buffer USING '~'.
      DO.
        i_record = wa_buffer.
        APPEND i_record.
        SHIFT wa_buffer LEFT BY 255 PLACES.
        IF wa_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Attachment
      REFRESH:
        i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
      CLEAR wa_objhead.
      i_objbin[] = i_record[].
    Create Message Body
    Title and Description
      i_objtxt = 'COMMERCIAL INVOICE'.
      APPEND i_objtxt.
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
      READ TABLE i_objtxt INDEX v_lines_txt.
      wa_doc_chng-obj_name   = 'COMMERCIAL INVOICE'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr  = 'COMMERCIAL INVOICE'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size   = v_lines_txt * 255.
      CLEAR i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num   = v_lines_txt.
      i_objpack-doc_type   = 'RAW'.
      APPEND i_objpack.
    Attachment
    (pdf-Attachment)
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      READ TABLE i_objbin INDEX v_lines_bin.
      i_objpack-doc_size =  v_lines_bin * 255 .
      i_objpack-body_num  = v_lines_bin.
      i_objpack-doc_type  = 'PDF'.
      i_objpack-obj_name  = 'COMMERCIAL INVOICE'.
      i_objpack-obj_descr = 'COMMERCIAL INVOICE'.
      APPEND i_objpack.
    BREAK-POINT.
      IF it_adr6[] IS NOT INITIAL.
        LOOP AT it_adr6 INTO wa_adr6.
          CLEAR i_reclist.
          i_reclist-receiver = wa_adr6-smtp_addr.
          i_reclist-rec_type = 'U'.
          i_reclist-com_type = 'INT'.
          APPEND i_reclist.
        ENDLOOP.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data = wa_doc_chng
            put_in_outbox = 'X'
          TABLES
            packing_list  = i_objpack
            object_header = wa_objhead
            contents_bin  = i_objbin
            contents_txt  = i_objtxt
            receivers     = i_reclist.
      ENDIF.
    The above error I am getting.
    Please give your suggestions
    Thanks in advance

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • How do I upload a PDF not made in keynote, pages, or numbers to iCloud?

    Trying to upload a PDF to iCloud so i can view iton all my devices. Used to be able to do this by dragging it to iDsik. But my iDisk icon is now gone and I would like to still use this feature.

    the latest version of the iOS app GoodReader has been updated to use the iCloud sync features. You can open, store, and edit PDF files and they'll automatically sync with GoodReader on all other devices. Documents are stored in iCloud and will also sync with any Mac that is setup to sync with iCloud. The Mac will automatically have a folder where you can open synced files or add new files from your Mac. details of how to do this are in the GoodReader help files.

  • How can I upload a PDF to iTunes U?

    Hi,
    My name is Tom and I'm a student at the University of Salamanca, in Spain. In doing my nursing degree and was wondering if it were possible to upload a PDF or pages file to iTunes U of the notes I take in class, or a copy of a presentation we did or something...
    There isn't a "Universidad de Salamanca" category in iTunes U... does that matter? is there a public area to upload these files?  it would be useful to do so so we can share them more easily with y study group or other students....
    thatnks!!
    Thomas Kirby

    The school you attend would need to have an iTunes U site. If they do your courses would need to be inside of iTunes U and from there if the professor has allowed students can upload documents into a "drop box" to share with the rest of the class or it can be used to hand in assignments to the professors.

Maybe you are looking for

  • I'VE BEEN TRYING TO INSTALL FLASH PLAYER FOR A MONTH!!!!

    Hi I don't mean this post to sound like a complaint and I don't want to write an essay either. It genuinly is a request for some help. First of all: I used to have Flashplayer (which Flashplayer I don't know) but it worked fine. All of a sudden every

  • How to print from an iPad on an intranet

    how can I print from an iPad on an intranet? All the HP printers we have require connection to the internet. The print job is sent as an e-mail to HP server, which apparently redirects it to my printer. Which is assumed also to be on the internet.

  • Post my etresoft report mac desk top OSX version 10

    Report generated 2 October 2014 15:30:41 NZDT Hardware Information: ?   iMac (21.5-inch, Mid 2011) (Verified)   iMac - model: iMac12,1   1 2.5 GHz Intel Core i5 CPU: 4 cores   4 GB RAM Video Information: ?   AMD Radeon HD 6750M - VRAM: 512 MB   iMac

  • Re-downloads of music through iTunes app interrupts music on iPhone.

    When I go to download purchased music through the iTunes app, every time a song finishes downloading, the sound of music playing drops out for a second. Half the time the music stops playing all together and I have to go and re-hit play. The dropout

  • Need older version of In Home Agent for Mac

    I have used In-Home Agent several times to troubleshoot my emails, etc. Recently I got the latest version for Macintosh but it won't run on my computer. It requires OS X 10.7 and I am running 10.6.8. Is there somewhere to download the previous versio