Webservice that Accept PDF/File Attachment

Hi,
I need one WebService that is available for use, and that accepts PDF/TXT as attachments or PDF/TXT as one of its parameters.
Kindly tell me about the WebService i m luking for.
Help/support wud be appreciated.
Many thanks.
Jeet.

Hi,
Read these articles they might help you:
http://www.devx.com/ibm/Article/20254
http://www.devx.com/ibm/Article/20254/1763
http://www-128.ibm.com/developerworks/xml/library/x-tippass.html
Regards
Suraj

Similar Messages

  • Acrobat cannot open the file attachment because your PDF file attachment settings do not allow......

    I have an email with an attachment that requires a password the open.  I can open the file but embedded in the attachment is another attachment.  When I double click attachment I get the following error message.  Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.

    You would need to make a change to your registry; see http://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/attachments.html
    Basically you would need to add the .pdf with the permission 2.
    Let us know if you need help with that.  Either way, make sure to create a System Restore Point before editing the registry.

  • Generating WSDL for a webservice that accepts attachments

    Is there anyway to automaticaly generate a WSDL file for a webservice that accepts
    attachments? Seems like the ant tasks and workshop don't work with services using
    soap with attachments at all...
    Thanks,
    Leonardo.

    Attachments are supported in WLS 7.0.0.1. You can either
    map the attachments to the parameters or use handlers to
    to get to attachments.
    If the attachments are mapped to parameters the WSDL will
    be generated with the appropriate mime binding.
    regards,
    -manoj
    "Leonardo Bueno" <[email protected]> wrote in message
    news:3d63e861$[email protected]..
    Is there anyway to automaticaly generate a acceptsWSDL file for a webservice
    that
    attachments? Seems like the ant tasks and workshop don't work with services
    using
    soap with attachments at all...
    Thanks,
    Leonardo.
    [att1.html]

  • Can't open a pdf file attachement to e-mail

    I canot open an e-mail pdf file attachment..I get a message
    You have chosen to open Invoice---pdf
    which is: Firefox HTML Document (479kB)
    What should Thunderbird do with this file?
    Open with Firefox (default)
    I do all of the above but nothing happens and I keep getting the same message over andf over again??
    Please advise what I should do
    Thanksd

    Thanks. I disabled Protected Mode, and I was able to open the pdf attachment. Just to make sure, I enabled it and then disabled it again, and when I tried to open the attachment, it did as before – Adobe Reader (Not Responding) and Internal Error message. Tried it several more times, (enable and then disable Protected Mode) and each time, Adobe Reader wouldn’t launch (Not Responding, Internal Error).
    Morris Davidson

  • I have iPad 4th Generation with iOS 6.1.3  Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email.  When I tap of the attachment, the iBooks icon no longer show itself.  Can someone please help?

    I have iPad 4th Generation with iOS 6.1.3  Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email.  When I tap of the attachment, the iBooks icon no longer show itself.  Can someone please help?

    Thanks for all (Ocean20 & Courcoul) who replied. 
    Reset the device did not help me but it does triggers me to attempt to resend the PDF file attachment on email--and it works the 2nd time.  My problem is now solved.
    The Adobe Reader is very helpful--it allows me to scroll through the document easily, unlike iBooks, where I cannot scroll straight up or down.

  • How do I get iCloud to accept PDF files from my scanner

    How do I get ICloud to accept PDF files from my scanner

    You might try the third party application Air Docs, I've briefly tried it, but not enough to provide an opinion on it.

  • Unzip (a zip file that has pdf files and a csv)

    Here is my requirement:
    Receive a zip file (that contains PDF files and a CSV file) in BizTalk
    Each record in CSV has a field which identifies the PDF files (by pdf file name) associated with it
        For Example - record id on each row in CSV file identifies the pdf files associated with it,
                             pdf files have names starting with recordid_sequence number.pdf i.e. 11111_1.pdf, 11111_2.pdf, 
                             11111_3.pdf...
    Create two new zip files based on record id on the record in CSV file
        For example - one zip file with a new CSV and related pdf files for record id range 1 to 5000
                             another zip file with a new CSV and related pdf filesfor all other record ids
    using BTS2010!!
    "custom flat file disassembler component" or "use .Net helper class/service" or anything else? custom component should be fine to unzip and extract pdf files and read CSV? can go with another custom component on send to perform split
    and zip the files.
    Any recommendations?

    Hi,
    You can built custom pipeline component for unzipping, I have wrote an article for it: http://social.technet.microsoft.com/wiki/contents/articles/20640.biztalk-server-2010-processing-zip-message-having-multiple-type-files.aspx
    Also sample is available : http://code.msdn.microsoft.com/windowsdesktop/BizTalk-Server-2010-42a1ae49/view/SourceCode
    I hope it helps !!
    Maheshkumar S Tiwari|User Page|Blog|BizTalk
    Server : How Map Works on Port Level

  • How to ZIP, PDF file attachment

    Hi,
    I have an ABAP report requirement to send an email to a user. This program will send an email with PDF attachement. However, the PDF attachment is quite big (9MB) and our email server couldn't handle it (5MB only). Is there any way to ZIP this PDF file attachment?
    I am using a SAP release ECC 6.0with OS WinNT. And the ABAP program should be able to run in Foreground/Background.
    Thanks for your help in advance...

    Hi,
    Try this code:
    data ca_attach_zip(22)     TYPE c VALUE 'Attch.',
    OPEN DATASET va_filename_zip  FOR INPUT  IN BINARY MODE.
       DO.
         READ DATASET va_filename_zip INTO objbin.
         IF sy-subrc NE 0. EXIT. ENDIF.
         APPEND objbin.
       ENDDO.
        APPEND objbin.
      DESCRIBE TABLE objbin LINES tab_lines.
       CLOSE  DATASET va_filename_zip.
        DELETE DATASET va_filename.
        DELETE DATASET va_filename_zip.
        DESCRIBE TABLE objbin LINES tab_lines.
        objhead = ca_attach_zip.
        APPEND objhead.
    ***Creation of the entry for the compressed attachment
       objpack-transf_bin = 'X'.
        objpack-head_start = 1.
      objpack-head_num = 1.
        objpack-body_start = 1.
        objpack-body_num = tab_lines.
       objpack-doc_type = ca_zip.
       objpack-obj_name  = ca_attach_zip.
      objpack-obj_descr = ca_attach_zip.
       objpack-doc_size = tab_lines * ca_255.
        APPEND objpack.
    *** Completing the recipient list
        reclist-receiver = va_mail_address.
        reclist-express  = 'X'.
        reclist-rec_type = 'U'.
        APPEND reclist.
    *** Sending the document
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
           document_data              = doc_chng
           put_in_outbox              = ca_x
            commit_work                = 'X'
          TABLES
           packing_list               = objpack
            object_header              = objhead
            contents_bin               = objbin
            contents_txt               = objtxt
            receivers                  = reclist
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
           operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
    You have to load your file in the contents_bin table of FM.
    You can load the file by OPEN DATASET and the READ DATASET command.
    In the object_header you can put some description.
    For your info:
    1. Zip the data and send as an email attachment
    2. How to Zip the data in an internal table
    3. Re: How to ZIP a PDF file email attachment
    May it helps you.
    Regards.
    Deepak Sharma.

  • How is it possible, that a pdf file turns into a psd file while sending with mail

    I have send a pdf file as attachment with mail. the file shows correctly as pdf file. but when the file arrived at the addressed location it turned into a psd file. in addition it seems there is a problem sending png and ai files. once those files have arrived through mail I am getting the feedback, that the files are are not scalable, they are fuzzy or completely messed up.
    has anyone an idea, where the problem comes from?
    thanks for response
    angelika

    Hello,
    toddisalive wrote:
    Additionally, I have found an AppleWorks file that could be the script, but it is ZERO bytes in size, and Pages won't even open it, saying that it is not a valid AppleWorks file.
    if the size of this file is really ZERO bytes, either the original file contained an empty data fork and a resource fork which was stored elsewhere (*) or the file is too damaged to retrieve anything. Moreover, as AppleWorks never generates file with empty data fork, at least to my knowledge, ....
    Concerning the Movie Magic ScreenWriter files, the application seems to exist for Yosemite http://www.write-bros.com/movie-magic-screenwriter.html ( but it seems "expensive"  and I do not know if it accepts to import old files )....
    (*) maybe in .TOTO or __MACOSX/.TOTO if the filename is TOTO

  • Error in opening of Pdf file attachment

    hi,
    i am sending pdf file as an attachment to mail recipient, after receiving that pdf attachment when the user tries to open that attachment he is getting the following error message.
    *"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded"*
    Please give me any suggestions to over come this error.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PM

    Hi
    can you compare your code with attached code , and do required changes if any thing needed
    FORM sub_generate_tr_report .
    * Internal table declarations
      DATA lit_mseg        TYPE STANDARD TABLE OF mseg         INITIAL SIZE 0.
      DATA lit_temp        TYPE STANDARD TABLE OF gty_gr_creat INITIAL SIZE 0.
      DATA lit_otf         TYPE itcoo    OCCURS 0 WITH HEADER LINE.
      DATA lit_tline       TYPE TABLE OF tline    WITH HEADER LINE.
      DATA lit_objtxt      TYPE STANDARD TABLE OF solisti1     INITIAL SIZE 0.
      DATA lit_objpack     TYPE STANDARD TABLE OF sopcklsti1   INITIAL SIZE 0.
      DATA lit_objbin      TYPE STANDARD TABLE OF solisti1     INITIAL SIZE 0.
      DATA lit_receiver    TYPE STANDARD TABLE OF somlreci1    INITIAL SIZE 0.
    * Workarea declarations
      DATA lwa_ctrlop      TYPE ssfctrlop .
      DATA lwa_compop      TYPE ssfcompop .
      DATA lwa_return      TYPE ssfcrescl .
      DATA lwa_tline       TYPE tline     .
      DATA lwa_objtxt      TYPE solisti1  .
      DATA lwa_objpack     TYPE sopcklsti1.
      DATA lwa_doc_data    TYPE sodocchgi1.
      DATA lwa_objbin      TYPE solisti1  .
      DATA lwa_receiver    TYPE somlreci1 .
      DATA lwa_temp        TYPE gty_gr_creat.
    * Variable declarations
      DATA lv_form_name    TYPE tdsfname   VALUE 'ZZ_PTS446_MASTER_TR_REPORT'.
      DATA lv_dlist        TYPE so_obj_nam VALUE 'ZPTS446'.
      DATA lv_func_mod     TYPE rs38l_fnam .
      DATA lv_len_in       LIKE sood-objlen.
      DATA lv_time         TYPE syuzeit    .
      DATA lv_time2        TYPE char8      .
      DATA lv_date2        TYPE char10     .
      DATA lv_info         TYPE so_text255 .
      DATA lv_lines        TYPE i          .
      DATA lv_buffer       TYPE string     .
    * Constants declarations
      CONSTANTS lc_x       TYPE char1      VALUE 'X'      .
      CONSTANTS lc_c       TYPE so_escape  VALUE 'C'      .
      CONSTANTS lc_locl    TYPE rspopname  VALUE 'LOCL'   .
      CONSTANTS lc_printer TYPE tddevice   VALUE 'PRINTER'.
      CONSTANTS lc_raw     TYPE so_obj_tp  VALUE 'RAW'    .
      CONSTANTS lc_pdf     TYPE so_obj_tp  VALUE 'PDF'    .
      CONSTANTS lc_colon   TYPE char1      VALUE ':'      .
      CONSTANTS lc_slash   TYPE char1      VALUE '/'      .
      CONSTANTS lc_int     TYPE char3      VALUE 'INT'    .
    * Moving record from GIT_GR_CREAT to GIT_TEMP internal table
      lit_temp[] = git_gr_creat[].
    * Delete record from internal table GIT_TEMP, where STAT is not initial
    *  DELETE lit_temp WHERE NOT stat IS INITIAL.
      DELETE lit_temp WHERE stat EQ 'X'.
      DELETE lit_temp WHERE stat EQ 'Q'.
    *  CLEAR lwa_temp.
    *  LOOP AT lit_temp INTO lwa_temp.
    *    IF  lwa_temp-stat EQ 'X'
    *    OR  lwa_temp-stat EQ 'Q'.
    *      DELETE lit_temp FROM lwa_temp.
    *    ENDIF.
    *  ENDLOOP.
      IF NOT lit_temp[] IS INITIAL.
    *-- Select data from MSEG table
        SELECT matnr         "Material Number
               erfmg         "Quantity in unit of entry
               tbnum         "Transfer Requirement Number
        INTO CORRESPONDING FIELDS OF TABLE lit_mseg
        FROM mseg            "Document Segment: Material
        FOR ALL ENTRIES IN lit_temp
        WHERE mblnr = lit_temp-mblnr
        AND   mjahr = lit_temp-gjahr.
    *-- If select successful
        IF sy-subrc EQ 0.
    *---- Get name of the function module for smartform 'ZZ_PTS446_MASTER_TR_REPORT'
          CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
            EXPORTING
              formname           = lv_form_name
            IMPORTING
              fm_name            = lv_func_mod
            EXCEPTIONS
              no_form            = 1
              no_function_module = 2
              OTHERS             = 3.
    *---- Check function module name is not initial.
          IF NOT lv_func_mod IS INITIAL.
    *------ Select default printer based on User settings
            SELECT SINGLE spld
            FROM usr01
            INTO usr01-spld
            WHERE bname = sy-uname.
            IF sy-subrc IS INITIAL.
              lwa_compop-tddest  = usr01-spld.   "Device type
            ELSE.
              lwa_compop-tddest  = lc_locl.      "Device type
            ENDIF.
            lwa_compop-tdnoprev  = lc_x.         "No print preview
            lwa_compop-tdnoprint = lc_x.         "No printing from print preview
            lwa_compop-tdiexit   = lc_x.
    *------ Setting control parameters
            lwa_ctrlop-getotf    = lc_x.
            lwa_ctrlop-no_dialog = lc_x.
            lwa_ctrlop-device    = lc_printer.
    *------ Call smartform function module
            CALL FUNCTION lv_func_mod
              EXPORTING
                control_parameters = lwa_ctrlop
                output_options     = lwa_compop
              IMPORTING
                job_output_info    = lwa_return
              TABLES
                it_mseg            = lit_mseg
              EXCEPTIONS
                formatting_error   = 1
                internal_error     = 2
                send_error         = 3
                user_canceled      = 4
                OTHERS             = 5.
    *------ If smartform function module successful
            IF sy-subrc EQ 0.
    *-------- Transfer OTF data to internal table LIT_OTF
              lit_otf[] = lwa_return-otfdata[].
    *-------- Convert to PDF
              CALL FUNCTION 'CONVERT_OTF'
                EXPORTING
                  format                = 'PDF'
                  max_linewidth         = 132
                IMPORTING
                  bin_filesize          = lv_len_in
                TABLES
                  otf                   = lit_otf
                  lines                 = lit_tline
                EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
    *-------- If above function module is successful
              IF sy-subrc EQ 0.
    *---------- Mail body
                CLEAR lwa_objtxt.
                CONCATENATE 'TR Report of RF Inbound Deliveries'(001)
                            'is attached.'(002)
                           INTO lwa_objtxt SEPARATED BY space.
                APPEND lwa_objtxt TO lit_objtxt.
    *---------- Append Date and Time into Body of email.
                CLEAR lwa_objtxt.
                MOVE 'File is generated on'(003) TO lv_info.
                lv_time = sy-uzeit.
                CONCATENATE lv_time+0(2)
                            lv_time+2(2)
                            lv_time+4(2)
                            INTO
                            lv_time2 SEPARATED BY lc_colon.
                CONCATENATE sy-datum+4(2)
                            sy-datum+6(2)
                            sy-datum+0(4)
                            INTO lv_date2 SEPARATED BY lc_slash.
                CONCATENATE lv_info
                            lv_date2
                            'At'(004)
                            lv_time2
                            INTO lv_info
                            SEPARATED BY space.
                lwa_objtxt = lv_info.
                APPEND lwa_objtxt TO lit_objtxt.
    *---------- Document size
                CLEAR: lv_lines, lwa_objtxt.
                DESCRIBE TABLE lit_objtxt LINES lv_lines.
                READ TABLE lit_objtxt INTO lwa_objtxt INDEX lv_lines.
    *---------- Populate packing list for body text
                CLEAR lwa_objpack.
                lwa_objpack-head_start = 1.
                lwa_objpack-head_num   = 0.
                lwa_objpack-body_start = 1.
                lwa_objpack-body_num   = lv_lines.
                lwa_objpack-doc_type   = lc_raw.
                APPEND lwa_objpack TO lit_objpack.
                CLEAR lwa_objpack.
    *---------- Mail subject line
                CLEAR lwa_doc_data.
                lwa_doc_data-obj_name  = 'TR REPORT'(005).
                lwa_doc_data-obj_descr = 'TR Report of RF Inbound Deliveries'(001).
                lwa_doc_data-doc_size  = ( lv_lines - 1 ) * 255 + STRLEN( lwa_objtxt ).
    *---------- Populating internal table LIT_OBJBIN
                LOOP AT lit_tline INTO lwa_tline.
                  TRANSLATE lwa_tline USING ' ~'.
                  CONCATENATE lv_buffer lwa_tline INTO lv_buffer.
                ENDLOOP.
                TRANSLATE lv_buffer USING '~ '.
                DO.
                  APPEND lv_buffer TO lit_objbin.
                  SHIFT lv_buffer LEFT BY 255 PLACES.
                  IF lv_buffer IS INITIAL.
                    EXIT.
                  ENDIF.
                ENDDO.
    *---------- Get total no.of lines of Object table(attachment)
                CLEAR lv_lines.
                DESCRIBE TABLE lit_objbin LINES lv_lines.
    *---------- Packing list for attachment
                lwa_objpack-transf_bin = lc_x    .
                lwa_objpack-head_start = 1       .
                lwa_objpack-head_num   = 1       .
                lwa_objpack-body_start = 1       .
                lwa_objpack-body_num   = lv_lines.
                lwa_objpack-doc_type   = lc_pdf  .
                lwa_objpack-obj_name = 'TR REPORT'(005).
                lwa_objpack-obj_descr = 'TR_REPORT'(006).
                lwa_objpack-doc_size =  lv_lines * 255.
                APPEND lwa_objpack TO lit_objpack.
                CLEAR  lwa_objpack.
    *---------- Giving the receiver email-id
                CLEAR lwa_receiver.
                lwa_receiver-receiver = lv_dlist.
                lwa_receiver-rec_type = lc_c.
                APPEND lwa_receiver TO lit_receiver.
    *---------- Calling the function module to sending email
                CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
                  EXPORTING
                    document_data              = lwa_doc_data
                    put_in_outbox              = lc_x
                    commit_work                = lc_x
                  TABLES
                    packing_list               = lit_objpack
                    contents_bin               = lit_objbin
                    contents_txt               = lit_objtxt
                    receivers                  = lit_receiver
                  EXCEPTIONS
                    too_many_receivers         = 1
                    document_not_sent          = 2
                    document_type_not_exist    = 3
                    operation_no_authorization = 4
                    parameter_error            = 5
                    x_error                    = 6
                    enqueue_error              = 7
                    OTHERS                     = 8.
                IF sy-subrc EQ 0.
    *------------ Wait upto 2 secounds
                  WAIT UP TO 2 SECONDS.
    *------------ Call the RSCONN01 (SAPconnect: Start Send Process)
                  SUBMIT rsconn01 WITH mode = lc_int
    *             WITH output = 'X'
                  AND RETURN.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
      REFRESH: lit_mseg    , lit_temp   , lit_otf     , lit_tline   ,
               lit_objtxt  , lit_objpack, lit_objbin  , lit_receiver.
      CLEAR:   lwa_ctrlop  , lwa_compop , lwa_return  , lwa_tline   ,
               lwa_objtxt  , lwa_objpack, lwa_doc_data, lwa_objbin  ,
               lwa_receiver.
      CLEAR:   lv_func_mod , lv_len_in  , lv_time     , lv_time2    ,
               lv_date2    , lv_info    , lv_lines    , lv_buffer   .
    Code Formatted by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PM

  • How to email a pdf file (attachment with password) using ABAP?

    Hi Colleagues,
    I
    n abap, how do you email a pdf file that contains password?
    (pdf with password, not the whole email).
    A custom program is created. Inside this program, it
    retrieves the spool number and converts it to a pdf file
    (using function module '....abapspool...'). No parameter to put password.
    I was able to do the above. The problem is how to put password on
    the pdf file.
    Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
    sap version 4.7.
    Questions:
    - how to code in ABAP to include the pdf with password in an email
    received from hotmail or outlook?
    - any function modules or classes that can do the pdf password?
    - do we need to install another technology or add-on application or
    ???? to do it? If yes, do we code in abap?
    - any other ideas?
    Thanks in advance.
    Raymund

    Hi Colleagues,
    I
    n abap, how do you email a pdf file that contains password?
    (pdf with password, not the whole email).
    A custom program is created. Inside this program, it
    retrieves the spool number and converts it to a pdf file
    (using function module '....abapspool...'). No parameter to put password.
    I was able to do the above. The problem is how to put password on
    the pdf file.
    Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
    sap version 4.7.
    Questions:
    - how to code in ABAP to include the pdf with password in an email
    received from hotmail or outlook?
    - any function modules or classes that can do the pdf password?
    - do we need to install another technology or add-on application or
    ???? to do it? If yes, do we code in abap?
    - any other ideas?
    Thanks in advance.
    Raymund

  • Sending mail with PDF file attachment ?

    Hi All,
    I have scenario File ---> Mail, monitoring FTP directory for PDF file and sending using mail attachment.
    At the moment i am using JAVA mapping to construct the mail package structure follow all the step in this blog : XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    it is working if i am using text file but then how to encode the pdf content so i can send throught the mail adapter. ?
    Thank you and Best Regards
    Fernand

    Hi,
    Actually, i am using this java code below :
    try {
        //     create XML structure of mail package
        String output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
               + "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"         
               + "<Subject>" + mailSubject     + "</Subject>"
               + "<From>" + mailSender     + "</From>"
               + "<To>" + mailReceiver     + "</To>"
               + "<Content_Type>multipart/mixed; boundary=\"" + boundary + "\"</Content_Type>"
               + "<Content>";
        out.write(output.getBytes());
        // create the declaration of the MIME parts
        //First part
        output = "--" + boundary + CRLF
               + "Content-Type: text/plain; charset=UTF-8" + CRLF
               //+ "Content-Transfer-Encoding: 8bit" + CRLF
               + "Content-Disposition: inline" + CRLF + CRLF
               + mailContent + CRLF
        //Second part
        + "--" + boundary + CRLF
        + "Content-Type: Application/pdf; name=" + attachmentName + CRLF  
        //+ "Content-Transfer-Encoding: base64" + CRLF
        + "Content-Disposition: attachment; filename=" + attachmentName + CRLF + CRLF;
        out.write(output.getBytes());
        //Source is taken as attachment
        copySource(in, out);
        out.write("</Content></ns:Mail>".getBytes());
      } catch (IOException e) {
        throw new StreamTransformationException(e.getMessage());
    protected static void copySource(InputStream in, OutputStream out)
         throws IOException {
        byte[] bbuf = new byte[in.available()];
        int bblen = in.read(bbuf);
        if (!(bblen < 0)) {
          //String sbuf = new String(bbuf);
          //String encoded = Base64.encode(sbuf);
          // replace all control characters with escape sequences
          //sbuf = sbuf.replaceAll("&", "&amp;");
          //sbuf = sbuf.replaceAll("\"", "&quot;");
          //sbuf = sbuf.replaceAll("'", "&apos;");
          //sbuf = sbuf.replaceAll("<", "&lt;");
          //sbuf = sbuf.replaceAll(">", "&gt;");
          out.write(bbuf);
    This code working fine with text file but not for pdf file. because i got error in mail adapter :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: java.lang.NullPointerException; nested exception caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 8f(:main:, row:11, col:4)(:main:, row=11, col=4) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 8f(:main:, row:11, col:4)
    I guest the problem because the mail adapter doen't accept pdf content insite the mail package.
    please advise me
    Best Regards
    Fernand

  • Rename PDF file attachment

    Is it possible to submit a form via email as a whole PDF but rename the PDF attachment in the process? I am using Acrobat X. I would like to set the PDF file name attachment to the value of a form field.

    Yes, I have access but the local machine of every user is a mobile device (specifically an iPad). So I don't think that's possible. So this cannot be done via JavaScript when a button is pressed before the submit operation takes place? The iPad app does allow the execution of JavaScript in the PDF.
    --- NEW CODE GOES HERE TO RENAME THE PDF ---
    this.submitForm({
        cURL:strMailTo,
        aFields: aSubmitFields,
        cSubmitAs: "PDF"

  • Problem when trying to send a mail with pdf file attached

    When I use this features from Adobe reader, a new mail is opened with pdf file but my Outlook signature is not set automatically. Note that all is right configure in Outlook 2007 for the signature option...
    Do you have a solution for this problem ?

    someone else reported this (unless it was you) You'll have to insert your sig manually.

  • Require PDF File attachment in Mail

    Hi Experts,
    I am doing the Proxy-XI-Mail scenario. I am sending the Mail related data like Content, Content_Type from R/3 to XI and configured the Mail receiver adapter.
    R/3 coding:-
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE = 'application/pdf;name="filename.pdf"'
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = G_CONTENT
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From_Mail.
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = To_Mail.
    and then calling the client proxy
    ID Mail Receiver configu:-
      Selected Use Mail Package option
      Content encoding  base64
      Keep attachment option is also selected.
    I am geeting the Filename.pdf in mail as attachment.
    Problem is:- I am not able to open the attached PDF File and error is:- 'Adobe Reader could not open filename,pdf because it is either not a supported file type ot because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded'
    I think some conversions may be required to convert the XML Payload data into PDF file format for the Mail receiver adapter.
    Please suggest
    Thanks & Regards
    Jagesh

    Hi Jagesh,
                 The content  type of the Pdf has to be identified, in order to conver the pdf successfully, You need to perform the conversion usign the PayloadSwapBean the  Module tab. You use this when you want to receive attachment using Mail adapter. You need to configure few steps in Module Configuration
    There you need to mention your MIME header paramenters Content-Type, Content-Description.
    How this can be configured and how process with PayloadSwapBean check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    Module Processor
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm
    Regading  MessageTransformBean, Migrating Dispatcher Classes
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    Regards,
    Prasanna

Maybe you are looking for

  • PC crashing after upgrade to Quicktime 7

    Win XP home edit SP2 .MOV files played satisfactorily on Quicktime 6 but after I upgraded to Quicktime 7 the system would crash (blue screen) on attemting to open any .MOV file. The crash message was KERNAL STACK INPAGE ERROR STOP: 0x00000077. AVI fi

  • The Disc ejects

    When I am burning a movie onto a Verbatim DVD+R DL, the file is put onto the disc all most all the way and just when the DVD is about to be finished (when the status bar says "about 1 min") the DVD ejects automatically while the status bar says it is

  • Since i downloaded update it wont work?

    I have a new macbook, 10.5.1 and have used garageband a few times already. I downloaded the rest of the instruments and apple loops as part as the update. At the end it said something could not be installed. After my computer restarted, it installed

  • Error 7 in Build App Under 6.0.2

    I get an Error 7 occurred at Librarian Get Info.vi File not found. I'm running version 6.0.2 and my target directory is a simple "C:\App" Thanks.

  • 0RT_DS06  not found in BI content

    HI all, Need to Instal            DSO            : Purchase Conditions at Site Level  (0RT_DS06)                                 Datasource  :  0RT_PURCH_PRICE_PLANT_ATTR but unable to find in BI content & metadata repository, but we found entire DSO