Wrong PDF file generated from FM 10 book

Sometimes when I generate a PDF from a FrameMaker 10 unstructured book, the generated PDF overwrites an existing file with a totally different name and location.  After I try a few times without changing anything, it finally does it right.  Any ideas?

If you really want to get to the bottom of what's grabbing and overwriting(?) your files, you could use Microsoft's Sysinternals Process Monitor (Procmon) available from here:
http://technet.microsoft.com/en-us/sysinternals/bb896645
You can configure the filters to watch what's going on in a folder or on a file, but it's a bit geeky to setup all the filters - it also logs a ton of data, so interpreting it or tracking down an event could also be tedious. If you have an IT department, they  should be consulted and could help set this up.
Here is an article that details how to set up the Process Monitor to watch specific files:
http://www.veryant.com/support/phpkb/question.php?ID=136
Otherwise, just run Distiller with the Ask setting, to see if something odd is happening at this stage. If you're still getting mysterious deletions, then dig deeper with the Process Monitor.

Similar Messages

  • Header and footer in PDF files generated from Business Publisher

    Hi All,
    Is there any out of box feature to include Header and Footer of our choice in the Pdf file of Process Model generated from Business Publisher (from Print function in the publisher explorer)
    Thank you all in advance.
    regards,

    Hi Raja,
    Does this mean that you have been sucessful in generating the PDF from the BPublisher?
    If yes, could you please share how you achived this. Platform .. version ect. you have.
    I am trying to create the PDF , but my IE popup just ... well ... just disappears..
    thanks
    regards
    Sanjiv

  • Data visibility problem in PDF file generated from R/3 system

    Hi all,
    We are converting the output of a Smartform into a PDF format. From this smart from, we receive data in OTF format, after which the required data is converted from OTF format to PDF format. Then PDF data is sent through mail using FM SO_NEW_DOCUMENT_ATT_SEND_API1 as an attachment. 
    For the above mentioned Smartform, we have defined Paragraph & Character font type as 'TIMES' in smart style. But when we receive the PDF file (through mail), some data of appears in other fonts:
    1) When PDF file is generated from Development system, the different font types which are used by PDF are Arial and Times-Roman. In this case, we are able to see the PDF output and faced no major problems because both of these fonts are supported by PDF file format.
    2) When PDF file is generated from Testing system, the font types which is used by PDF is Arial. In this case, we are able to see the PDF output because this font is supported by PDF file format.
    3) When PDF file is generated from Production system, the different font types which are used by PDF are Arial, Times-Roman and PBRS. Here, we are able to see the data which is displayed in Arial font and Times-Roman font. But we are not able to see the data which is displayed in PBRS font because this type of font is not supported by PDF file format. If we copy the distorted text from PDF file and paste it in MS-Word then the required data is clearly visible and that is due to the reason that MS-Word supports PBRS font.
    But as per smart style we have used only 'TIMES' font, then why different fonts are appearing in PDF file?
    What settings are required to be done to make this data visible?
    Any pointer to solve this issue will be really appreciable. Thanks in advance for your help.
    Thanks and Regards,
    Dheeraj Tolani

    Hi,
    check the following
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    business content
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
    https://websmp203.sap-ag.de/co
    http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
    (navigate with expand left nodes)
    also co-pa
    http://help.sap.com/saphelp_nw04/helpdata/en/53/c1143c26b8bc00e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff61152b-0301-0010-849f-839fec3771f3
    FI-CO 'Data Extraction -Line Item Level-FI-CO'
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a7f2f294-0501-0010-11bb-80e0d67c3e4a
    FI-GL
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/fe943b2bcbd11ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_470/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    http://www.sapgenie.com/sapfunc/fi.htm
    Please reward for the same.

  • Gif images in pdf file generated from Reports 6i

    Hello,
    When I generate pdf file from Reports Builder 6i and open this file with Acrobat Reader 5.0 I get that some of my gifs are black or other color.
    When I generate the same report to the live previewer everything is OK.
    Is it a Reports 6i bug? Any workarounds?
    Best regards
    Raimundas Katilius

    Hi
    If u generate the report output to PDF from the report
    GIF images doesn't show up properly . Generate it from the
    application then i think it will print clearly.
    If u try to print text followed by image and followed by text
    again PDF will not print
    I think this should help u
    Sri
    Hello,
    When I generate pdf file from Reports Builder 6i and open this file with Acrobat Reader 5.0 I get that some of my gifs are black or other color.
    When I generate the same report to the live previewer everything is OK.
    Is it a Reports 6i bug? Any workarounds?
    Best regards
    Raimundas Katilius

  • Creation of Note in PDF file generated from Output Server

    I would like to be able to force Output Server to create a Note (in expanded format) on a PDF file. I see the bookmark information in the manual, however I was not able to locate any documentation referencing the note tool. Is this possible? If so, can someone provide a brief example of a command that would need to be passed through the data stream to generate a note on a PDF document?

    Unfortunately, Output Server doesn't allow you to create PDF comments. The best you could probably do is generate a PDF and then create an XFDF that references that PDF and also contains your comments. Check the Adobe PDF Developer's site for information on XFDF.
    Regards,
    Rob McDougall
    Indigo Pacific Ltd.

  • Hidden Text in PDF file generated from Ai

    One of my clients (an Ad Agency) has a problem with a PDF file.
    They make the layout in Adobe Illustrator them (to send the file to the newspaper) use the "Save as" menu and use the prepress setting.
    The designer use "Helvetica Neue" the TrueType that came with MacOSX.
    But for a weird reason one letter in the headline dissappear... this one>>>> "É"
    When I check the file in Acrobat 9 and X reports a "Hidden Text".
    Any idea what happen there???
    Thanks a lot

    "Save as PDF" occasionally writes internal links as external links (pointing to a file with the current PDF file name). Such links won't work after the PDF is renamed, even if the PDF is a stand-alone PDF.
    Try printing the book to a .ps file and distilling, instead of "Save as PDF".
    Also see: http://www.microtype.com/Hmmms.html#0702
    Shlomo Perets
    MicroType, FrameMaker/Acrobat training & consulting
    "24 easy ways to improve your PDFs with FrameMaker-to-Acrobat TimeSavers/Assistants",
    http://www.microtype.com/ImprovePDF.html

  • How do I link to Anchor Text from browser to PDF file exported from InDesign?

    I see that this question was asked previously but not answered:
    http://forums.adobe.com/message/3737541
    I need a way to link to topics (from an HTML page) within a structured PDF file generated from InDesign, i.e. one that has an interactive bookmarks
    panel, that doesn't break the links when the file is updated.
    In particular, I don't want to refer to:
    *  page numbers because the document will repaginate when it is updated, breaking existing links
    * named destinations that are numeric as addition/deletion of topics renumbers the named destinations, breaking the links.
    Is there any option in InDesign that creates named destinations derived from bookmark titles as that would seem to solve my problem?
    I have a similar need, but I have not been able to find an answer anywhere online, even after a several hours of research.
    I am on contract with General Electric to develop a UI Style Guide for an international team of developers. My client wants to be able to distribute the Style Guide as a PDF document, but needs to provide links to specific topics when submitting a "Story" in an Agile development environment to the programmers.
    Ideally, I would like to be able to create "named destinations" in InDesign such that I can provide the client with a list of URLs similar to this format:
    file:\\StyleGuide\Test1-20131024a.pdf\#nameddest=AnchorText-01
    However, I can not figure out how to create "named destinations" in the PDF file from the InDesign file in which I have created the Anchor Text in the Hyperlinks tab.
    Alternately, the client would be satisfied with the ability to link to specific bookmarks in the exported PDF file that have been derived from the configuration of the Table of Contents styles, but my research has led me to believe that it is not possible to hyperlink from a browser window to a bookmark in a PDF file (only to specific page numbers, search word lists, named destinations, and comments) as described here: http://blogs.adobe.com/tcs/2011/01/tcs-specific/linking-to-a-page-within-a-pdf-and-more.ht ml
    Having been using InDesign since 1988, when it was PageMaker, I would prefer to use it to provide GE with the most attractive deliverable, but they are now leaning heavily toward having me licensed with Madcap Flare, which has this capability built in:
    http://webhelp.madcapsoftware.com/flare9/Default.htm#Nav_Links/Named_Destinations/Creating _Named_Destinations.htm
    Please help me to find a solution that will allow me to continue using InDesign for this project.
    Thank you!
    Lynne O’Connor
    Technical Writer (contractor)
    GE Oil & Gas - Measurement & Control

    Follow-up post (solution is not available):
    I have just completed a phone call with Gaurev Sethi of Adobe escalated technical support in which I shared my screen to explain and demonstrate the desire to link from an external URL to a specific location within a PDF file that has been exported from InDesign. After 40 minutes, during which I was placed on hold a few times while he consulted with his team, it was determined that the desired functionality is not supported in InDesign and has been identified as a limitation of the software.
    In researching alternate documentation software that supports PDF export, I discovered that Madcap Software supports this functionality in its Flare product:
    http://webhelp.madcapsoftware.com/flare9/Default.htm#Nav_Links/Named_Destinations/Creating _Named_Destinations.htm
    Note that linking via URL to a bookmarked location within a PDF is not supported:
    http://blogs.adobe.com/tcs/2011/01/tcs-specific/linking-to-a-page-within-a-pdf-and-more.ht ml
    More about parameters that can be specified to open PDF files are available here:
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Although the above link is for a previous version of Acrobat, I could find no evidence to the contrary in the current SDK documentation.
    -Lynne

  • How to print PDF file content from ABAP in background?

    Hi,
    Is it possible to print PDF file content from ABAP in background?
    I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
    Please have you any suggestions?
    Thank you
    Tomas

    <b><u>Solution:</u></b><br>
    <br>
    The target output device must support PDF print, this is only one limitation.<br>
    <br>
    REPORT  z_print_pdf.
    TYPE-POOLS: abap, srmgs.
    PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
                p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
                p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
                p_immed AS CHECKBOX.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      DATA: lv_rc     TYPE i,
            lv_filter TYPE string.
      DATA: lt_files TYPE filetable.
      FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
      CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          file_filter             = lv_filter
        CHANGING
          file_table              = lt_files
          rc                      = lv_rc
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0 AND lv_rc EQ 0.
        MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
      IF sy-subrc EQ 0.
        p_fname = <fs_file>-filename.
      ENDIF.
    AT SELECTION-SCREEN.
      DATA: lv_name   TYPE string,
            lv_result TYPE boolean.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file                 = lv_name
        RECEIVING
          result               = lv_result
        EXCEPTIONS
          OTHERS               = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      IF lv_result NE abap_true.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
    START-OF-SELECTION.
    END-OF-SELECTION.
      PERFORM process.
    FORM process.
      DATA: lv_name     TYPE string,
            lv_size     TYPE i,
            lv_data     TYPE xstring,
            lv_retcode  TYPE i.
      DATA: lt_file TYPE srmgs_bin_content.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_name
          filetype                = 'BIN'
        IMPORTING
          filelength              = lv_size
        CHANGING
          data_tab                = lt_file
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = lv_size
        IMPORTING
          buffer       = lv_data
        TABLES
          binary_tab   = lt_file
        EXCEPTIONS
          failed       = 1
          OTHERS       = 2.
      IF sy-subrc NE 0.
        MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
      IF lv_retcode EQ 0.
        WRITE: / 'Print OK' COLOR COL_POSITIVE.
      ELSE.
        WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
      ENDIF.
    ENDFORM.                    " PROCESS
    FORM print USING    iv_prndst  TYPE rspopname
                        iv_content TYPE xstring
               CHANGING ev_retcode TYPE i.
      DATA: lv_handle    TYPE sy-tabix,
            lv_spoolid   TYPE rspoid,
            lv_partname  TYPE adspart,
            lv_globaldir TYPE text1024,
            lv_dstfile   TYPE text1024,
            lv_filesize  TYPE i,
            lv_pages     TYPE i.
      CLEAR: ev_retcode.
      CALL FUNCTION 'ADS_SR_OPEN'
        EXPORTING
          dest            = iv_prndst
          doctype         = 'ADSP'
          copies          = p_ncopi
          immediate_print = p_immed
          auto_delete     = 'X'
        IMPORTING
          handle          = lv_handle
          spoolid         = lv_spoolid
          partname        = lv_partname
        EXCEPTIONS
          OTHERS          = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_GET_PATH'
        IMPORTING
          ads_path = lv_globaldir.
      CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
      OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      TRANSFER iv_content TO lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CLOSE DATASET lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
        EXPORTING
          iv_content = iv_content
        IMPORTING
          ev_pages   = lv_pages.
      lv_filesize = XSTRLEN( iv_content ).
      CALL FUNCTION 'ADS_SR_CONFIRM'
        EXPORTING
          handle   = lv_handle
          partname = lv_partname
          size     = lv_filesize
          pages    = lv_pages
          no_pdf   = ' '
        EXCEPTIONS
          OTHERS   = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_SR_CLOSE'
        EXPORTING
          handle = lv_handle
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
    ENDFORM.                    " PRINT

  • PDF files to create a new book in iBooks Author

    Is it wise to use ready PDF files to create a new book in iBooks Author?
    I have a music book with lot's of images that whas previously published as a physical book. I have it all as ready PDF files with illustrations.
    Should I copy paste all texts and images seperately into iBooks Author or could I just drag the complete PDF's into the iBooks program.
    Thanks!

    To drag a page's contents means selecting just that page, which is just copy/paste with the result being an image.
    Dragging a PDF into an iBA book means dragging the entire file, which is not the same as selective copy/paste and as noted, results in just an image.
    It is possible to just do text /andor just do images, but success can depend on certain attributes they possess, etc. You need to select specific assets, then paste them in, then rework as needed.
    PDF-to-iBA isn't neat - formatting, fonts, etc. will be lost. Find the original content that the PDF came from and try to work with it, instead - that will be much cleaner and require less rework, I think.

  • Issue with opening PDF file link from Safari

    Hi Everyone,
    I got a problem with opening PDF file link from Safari 4.04. Instead of getting a normal pdf content, it shows some weird characters. Not sure it is something wrong with Adobe Reader Plugin or Safari?
    I have uploaded a screenshot of the issue in the adobe forum (http://forums.adobe.com/thread/531870). Please help!
    Many Thanks,
    John

    There's nothing wrong, except the fact that you have Adobe Reader installed. You don't need it, so get rid of it; it will only cause problems with Safari. What you're seeing is the contents of the PDF file, rather than having it displayed.
    If you want to download a PDF file, you can either Control-click on the link and choose "Download Linked File As…", or you can Option-click on the link for the file and it will be downloaded to your Download folder (usually your Desktop).
    If you want to view a PDF file in Safari, you don't need Adobe Reader; Safari is perfectly capable of doing this by itself and has been for years. Adobe Reader will only get in the way and slow everything down.

  • Any tricks to store pdf file generated via jasper to oracle tables.

    i need to generate pdf file ..for records in a cursor..
    So i use jasper integration kit ... to accomplish the same...
    issue is .. i need to press a button and then pdfs file shoudl be generated...and stored in a table as a blob..My process does this..
    But since the process can be fired only on condition. on load before header...
    The result is i get my pdf file generated and stored in table ..but the page is a blank page..seems like it is some jasper page..
    http://127.0.0.1:82/apex/f?p=132:267:3324851978466855::::: The page looks empty...I will not want it to look empty...
    i will like after pressing a button immediatley it shows a page processing and when processing is done... it shifts to other page...
    I am putting the part of code which generates the pdf file ...any guidance or help shall be appreciated..
    So i hope you understood the issue..*Issue is when button is pressed i see a blank page..THough the below process is fired pdf file genrated and stored in oracle tables..as blob.. I will like instead of blank page it displays me some othe page..say like processing and once done it shoudl say processing complete..*
    Any guidance will be kindly appreciated..
    Thanks paul johny
    Below you will see the stored procedure i use..to generate the pdf files...
    create or replace procedure lordslave is
    cursor c1 is select subscribe_no from subscribers
    where subscribe_no > 296;
    l_blob BLOB;
    l_mime_type VARCHAR2 (100);
    begin
    for xxx in c1
    loop
    begin
    --xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || 'http://localhost:84/JasperReportsIntegration/report?_repName=test_repFormat=pdf_dataSource=def1_outFilename=tes.txt_repLocale=de_DE,repEncoding=UTF-8');
    xlib_jasperreports.set_report_url ('http://192.168.1.3:84/JasperReportsIntegration/report');
    xlib_jasperreports.get_report
    (p_rep_name => 'subinvx',
    p_rep_format => 'pdf',
    p_data_source => 'default',
    p_rep_locale => 'de_DE',
    p_rep_encoding => 'UTF-8',
    p_additional_params => 'Psubscribe_no='||390,
    p_out_blob => l_blob,
    p_out_mime_type => l_mime_type
    BLOB_LOADB (mid(),xxx.subscribe_no,'SUBSCRIBERINVOICE','mfilename',l_mime_type,l_blob);
    -- release resources
    DBMS_LOB.freetemporary (l_blob);
    -- stop rendering of APEX page
    apex_application.g_unrecoverable_error := TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN
    xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
    RAISE;
    END;
    end loop;
    end;

    All you need to do - is that you should use the column data type as Long Raw.Why would you recommend using LONG RAW which has been deprecated in favour of BLOB for years?
    You can find a simple example of inserting a file into a BLOB column using JDBC here. The Oracle JDBC docs are also worth a read. Find out more.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • How to passw protect my pdf files generated by Adobe Acrobat?

    I simply want to passw protect my pdf files generated by Adobe Acrobat. However the option as indicated by the helpdesk is not available in my pdf generator. I am working with apple? Can someone tell me how to pass protect my files?
    Can some one help me out here?

    Hi josr,
    You can password protect your files in Adobe Acrobat by choosing File > Properties when you have the PDF open, and clicking the Security tab. Here is a Help topic that goes into detail: Acrobat Help | Securing PDFs with passwords.
    If you don't have Acrobat, you're welcome to give it a try! Feel free to download a 30-day trial from http://www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • Where is a PDF file, generated by Agent (BIEE11g), stored?

    Hi,
    In BIEE11g, I created an Agent for scheduling to generate PDF files from Analysis.
    In tab: "Delivery Content", I choose PDF in field "Format", and BIEE will automatically chooise option "Deliver as attachment".
    At the same time, in tab: "Destinations", I just choose "Home Page and Dashboard" for field: "User Destinations".
    After scheduling time, an Alert is generated, and there is data and graph embedded in the content of the Alert. However, I don't find any URL for downloading PDF file. I want to make use of BIEE Agent that so that I can keep snapshot data for the report.
    Anyone know where where is the PDF file, generated by Agent (BIEE11g), stored?
    Thanks

    A nice way to achieve this is to export the reports to the server's filesystem using the Actions tab > Invoke Server Script. On a Windows server you can write a little VBScript or Javascript and pass it the PDF file which then gets saved to disk. I have some code if you are interested - contact me via my blog.
    Paul

  • Error while opening PDF file downloaded  from database Blob column

    Hi All,
    I am working on jdev 11.1.1.4.0.
    In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
    After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
    or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
    When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
    I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
    Thanks
    Kanika

    Thanks a lot Timo...!!!
    I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
    Here is the code snippet ..
    byte[] buff;
    buff = new byte[(int)length]; -- Length is the file size
    int bytesRead = is.read(buff);
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = is.read();
    int b = is.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    BlobDomain blobDomian = new BlobDomain((buff));
    TestVORow = (TestVORow Impl)TestVO.createRow();
    if(blobDomian != null) {
    TestVORow.setAttachment(blobDomian);
    am.getTransaction().commit();
    This seems to be Ok to me..the same issue, file is still corrupting.
    Any thoughts from your side ???
    Thanks
    Kanika
    The problem is resolved.
    Changes made are instead of
    InputStream is;
    used ... BufferedInputStream bis ;
    and after
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = bis.read();
    int b = bis.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    bis.close(); // use this close bufferedInput Stream.
    Able to open each and every file now..Thanks for your suggestions Timo and Frank.
    Edited by: Kanika on Mar 6, 2012 3:15 AM

  • How to populate/import data in a XSD file generated from a webservice

    HI All,
      I have an XSD file generated from the webserive using the CRM FM E2C_DOWNLOAD_CRT_SCHEMA.
    I created a Adobe form with the Adobe life cycle designer using the XSD file.
    However Data will have to be entered manually in this adobe form and cannot be pre-populated with data, How do we pre-populate data in the Adobe form generated from XSD file of the above CRM FM.

    This is what you need:
    integer     li_fhandle, li_rcode = 1, li_sfound = 0, li_idx = 0, li_eqpos, i
    string ls_filename = 'C:\app.ini'
    string ls_line, as_key[], as_val[]
    string ls_section = '[General]'
    // OPEN INI FILE
    li_fhandle = FileOpen(ls_filename, LineMode!)
    IF IsNull(li_fhandle) OR li_fhandle < 1 THEN
      // DO NOTHING
    ELSE
      DO WHILE li_rcode > 0
      li_rcode = FileRead(li_fhandle, ls_line)
      IF li_rcode > 0 THEN
      IF POS(ls_section, ls_line) > 0 THEN
      li_sfound = 1
      CONTINUE
      END IF
      IF li_sfound = 0 THEN CONTINUE
      IF POS(ls_line, '[') > 0 AND POS(ls_line, ']') > 0 THEN EXIT
      li_eqpos = POS(ls_line, '=')
      li_idx++
      as_key[li_idx] = MID(ls_line, 1, li_eqpos - 1)
      as_val[li_idx] = MID(ls_line, li_eqpos + 1)
      END IF
      LOOP
    END IF
    FOR i = 1 TO li_idx
      messagebox('Key - Value',as_key[i] + ' = ' + as_val[i])
    NEXT
    // CLOSE INI FILE
    IF li_fhandle > 0 THEN
       FileClose(li_fhandle)
    END IF
    Adapt it to your needs... you probably should make it a function.

Maybe you are looking for