How to download DVT graph as file.

Hi All, Help me to download graph as image file....

Thanks for the link... already tried this but that is for saving the graph as image to the declared or default location.
My requirement is to download displayed graph on button click also with a default options open and save.Even I have given a try by using <af:filedownloadactionlistener> ,<af:commandlink> ,
On first time the graph image is downloaded perfectly but on second time downloaded with o byte (no data to dispaly..)
could u pls help me where i went wrong...
Edited by: 899424 on Nov 29, 2011 7:34 PM
Edited by: 899424 on Nov 29, 2011 7:39 PM

Similar Messages

  • How to download .sca WAS Java files automatically with MOPZ

    Dear experts,
    following my title subject, i would like to know how to download .SCA was java files automatically with the Maintenance Optimizer in my solution manager 7.0. (transaction code DSWP or SOLUTION_MANAGER)
    Currently, i only can download .SAR & .CAR files automatically.
    Any suggesttion is welcome.
    Thank you very much in advance.
    Best regards,
    Pascal.

    Hello Markus,
    thank you for replying very fast
    i meant : with transaction code DSWP or SOLUTION_MANAGER, choose the solution, "Change Management" tab, "Maintenance Optimizer" tab, "create new maintenance transaction" button.
    In the step 2 (select files) i can choose "Calculate download files automatically" by the button "find download files" or i can choose "Fill Download Basket manually" by the button "select files for SAP Solution Manager 4.0".
    After choosing the target stack version, i can only download .SAR and .CAR files.
    How can i download .SCA files automatically? Is it possible actually?
    Thank you.
    Pascal.

  • How to download  data into XLSX file in ABAP ECC 6.0 using FM: GUI_DOWNLOAD or any other FunctionModules

    Hi ABAP Exterts,
    Any one help on this , there is a requirement to download the data into XLSX file only.
    I am able to to download the data into XLS file using the FM: GUI_DOWNLOAD in SAP ECC 6.0and also opening the file . But when i download the data into XLSX file . I am able to download the data into GUI_DOWNLOAD. But while opening the file i am getting the below mentioned error.
    'Excel cannot open the file 'filename.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'
    Ok buttom is coming not able to open the file.
    When i use the FM: SAP_CONVERT_TO_XLS_FORMAT to download the XLS it self it is going abap DUMP that file type error.
    Any one help  any Function Module or how to download data through abap programing into XLSX file.
    Thanks.
    Murali.
    Message was edited by: Matthew Billingham - adjusted wording...

    If you want to download your ALV to an .XLXS format file, with all the formatting intact, please try the following code. I have tried to create a custom Function module Z_EXCEL_DOWNLOAD_TEST wherein I pass all the callback variables, the final ALV internal table and all the ALV details like field catalog, sort, layout, event list and so on, along with the concatenated file path and file name in I_FILE. I have used a custom class ZCL_SALVEXPORT_XML which is a copy of the standard class CL_SALV_EXPORT_XML_DIALOG, with few modifications in Method: EXECUTE and Method: DOWNLOAD. The methods where I have modified the code are also shown at the end.
    ****************Global declarations***********************
    TYPE-POOLS: slis,
    kkblo.
    TYPES: t_fccls(1) TYPE c OCCURS 0.
    TYPES: BEGIN OF ty_nosum,
    fieldname     TYPE kkblo_fieldname,           "Field name
    tabname       TYPE kkblo_tabname,             "Table name
    fieldname_dep TYPE kkblo_fieldname,           "Field name
    tabname_dep   TYPE kkblo_tabname,             "Table name
    index         TYPE sy-index,                  "Index
    END OF ty_nosum.
    TYPES: t_nosum TYPE TABLE OF ty_nosum INITIAL SIZE 0 WITH NON-UNIQUE DEFAULT KEY.
    TYPES: BEGIN OF ty_dep_field,
    s_dep_fieldcat TYPE kkblo_fieldcat,            "Field cat
    t_ref_fieldcat TYPE kkblo_t_fieldcat,          "Field cat
    END OF ty_dep_field.
    TYPES: BEGIN OF ty_ref_field,
    s_ref_fieldcat TYPE kkblo_fieldcat,           "Field cat
    s_dep_fieldcat TYPE kkblo_fieldcat,           "Field cat
    END OF ty_ref_field.
    TYPES: t_dep_field TYPE ty_dep_field OCCURS 0.        "
    TYPES: t_ref_field TYPE ty_ref_field OCCURS 0.
    TYPES: BEGIN OF ty_memory,
    object(20)  TYPE c,                        "Object
    memcount(4) TYPE c,                        "count
    END OF ty_memory.
    *ALV Customer Wrapper
    TYPES: BEGIN OF ty_type_header_info,
    tabname   TYPE kkblo_tabname,            "Table name
    fieldname TYPE kkblo_fieldname,          "Field name
    sequence  TYPE i,                        "Sequence
    field     TYPE char80,                    "Field
    pagno     TYPE sypagno,                   "Page num
    linno     TYPE sy-linno,                  "Current Line in List
    colno     TYPE sy-colno,                  "Current List Column
    END   OF ty_type_header_info,
    t_type_header_info TYPE SORTED TABLE OF ty_type_header_info
    WITH UNIQUE KEY tabname fieldname.
    TYPES: BEGIN OF ty_type_row_info,
    tabname   TYPE kkblo_tabname,            "Table name
    tabindex  TYPE syindex,                  "Index
    field     TYPE char80,                   "Field name
    pagno     TYPE sypagno,                  "Page num
    linno     TYPE sy-linno,                 "Current Line in List
    colno     TYPE sy-colno,                 "Current List Column
    END   OF ty_type_row_info,
    t_type_row_info TYPE SORTED TABLE OF ty_type_row_info
    WITH UNIQUE KEY tabname tabindex.
    TYPES: BEGIN OF ty_type_sel_header,
    tabname   TYPE kkblo_tabname,           "table name
    fieldname TYPE kkblo_fieldname,         "field name
    END   OF ty_type_sel_header,
    t_type_sel_header TYPE SORTED TABLE OF ty_type_sel_header
    WITH UNIQUE KEY tabname fieldname.
    TYPES: BEGIN OF ty_type_sel_row,
    tabname   TYPE kkblo_tabname,
    tabindex  TYPE syindex,
    END   OF ty_type_sel_row,
    t_type_sel_row TYPE SORTED TABLE OF ty_type_sel_row
    WITH UNIQUE KEY tabname tabindex.
    TYPES: BEGIN OF ty_type_sel_cell,
    tabname   TYPE kkblo_tabname,
    tabindex  TYPE syindex,
    fieldname TYPE kkblo_fieldname,
    END   OF ty_type_sel_cell.
    TYPES: BEGIN OF ty_type_selections,
    t_row_info         TYPE t_type_row_info,
    t_header_info      TYPE t_type_header_info,
    t_selected_headers TYPE t_type_sel_header,
    t_selected_rows    TYPE t_type_sel_row,
    s_current_cell     TYPE ty_type_sel_cell,
    set_headers        TYPE sap_bool,
    set_rows           TYPE sap_bool,
    set_current_cell   TYPE sap_bool,
    END   OF ty_type_selections.
    TYPES: BEGIN OF ty_stack3,
    r_grid         TYPE REF TO cl_gui_alv_grid,        "Y6DK050176
    r_salv_adapter TYPE REF TO if_salv_adapter,
    s_selections   TYPE ty_type_selections,
    r_print_state  TYPE REF TO if_alv_print_parameter_proxy, "Y6DK075821
    suppress_empty_data TYPE abap_bool,
    END OF ty_stack3.
    TYPES: t_stack3 TYPE ty_stack3 OCCURS 0.
    TYPES: BEGIN OF ty_stack,
    i_callback_program       TYPE sy-repid,
    i_callback_user_command  TYPE kkblo_formname,
    i_callback_top_of_page   TYPE kkblo_formname,
    i_callback_top_of_list   TYPE kkblo_formname,
    i_callback_end_of_page   TYPE kkblo_formname,
    i_callback_end_of_list   TYPE kkblo_formname,
    i_callback_pf_status_set TYPE kkblo_formname,
    i_callback_fieldcat_save TYPE kkblo_formname,
    i_callback_layout_save   TYPE kkblo_formname,
    i_tabname                TYPE kkblo_tabname,
    i_tabname_slave          TYPE kkblo_tabname,
    is_keyinfo               TYPE kkblo_keyinfo,
    is_layout                TYPE kkblo_layout,
    it_fieldcat              TYPE kkblo_t_fieldcat,
    i_fctype(1)              TYPE c,
    it_excluding             TYPE kkblo_t_extab,
    it_special_groups        TYPE kkblo_t_sp_group,
    it_sort                  TYPE kkblo_t_sortinfo,
    it_except_qinfo          TYPE kkblo_t_qinfo,
    is_sel_hide              TYPE kkblo_sel_hide,
    t_columns                TYPE kkblo_t_columns,
    t_filter                 TYPE kkblo_t_filter,
    s_lprint                 TYPE kkblo_lprint,
    print_line_break         TYPE char1,
    t_isetab                 TYPE kkblo_seldis,
    t_fccls                  TYPE t_fccls,
    t_sfinfo                 TYPE kkblo_t_sfinfo,
    t_ref_field              TYPE t_ref_field,
    t_dep_field              TYPE t_dep_field,
    flg_default_status(1)    TYPE c,
    flg_selections           TYPE char1,
    flg_allow_no_selection   TYPE char1,
    flg_input                TYPE char1,
    flg_called               TYPE char1,
    flg_popup                TYPE char1,
    flg_endlist              TYPE char1,
    listtype                 TYPE char1,
    actcols                  TYPE i,
    is_list                  TYPE char1,
    END OF ty_stack.
    TYPES: t_stack TYPE ty_stack OCCURS 0.
    TYPES: BEGIN OF ty_stack2,
    button_col1(20)                TYPE c,
    button_col2(20)                TYPE c,
    button_col3(20)                TYPE c,
    button_col4(20)                TYPE c,
    button_col5(20)                TYPE c,
    s_header                       TYPE kkblo_header,
    t_sfinfo_slave                 TYPE kkblo_t_sfinfo,
    t_suminfo                      TYPE kkblo_t_sfinfo,
    t_sfsave                       TYPE kkblo_t_sfinfo,
    t_nosum                        TYPE t_nosum,
    window_title                   TYPE rsmpe-tittext,  " Item_selection
    flg_scroll_to_line(1)          TYPE c, " Item_selection
    flg_top_of_page(1)             TYPE c,
    flg_subtot(1)                  TYPE c,
    flg_output_in_progress(1)      TYPE c,
    flg_grouplevels(1)             TYPE c,
    flg_groupedit(1)               TYPE c,
    flg_calculate_totals(1)        TYPE c,
    sumlevel                       TYPE sy-tabix,
    memory_stack1                  TYPE ty_memory,
    memory_stack2                  TYPE ty_memory,
    memory_outtab                  TYPE ty_memory,
    t_colmark                      TYPE kkblo_t_colmark,
    t_rowmark                      TYPE kkblo_t_rowmark,
    it_event_exit                  TYPE kkblo_t_event_exit,
    t_groups                       TYPE kkblo_t_grouplevels,
    t_filter_groups                TYPE kkblo_t_grouplevels,
    s_subtot_options               TYPE kkblo_subtot_options,
    flg_append_mode(1)             TYPE c,
    is_reprep_id                   TYPE kkblo_reprep_id,
    i_callback_before_line_output  TYPE kkblo_formname,
    i_callback_after_line_output   TYPE kkblo_formname,
    i_callback_foreign_top_of_page TYPE kkblo_formname,
    i_callback_foreign_end_of_page TYPE kkblo_formname,
    i_callback_list_modify         TYPE kkblo_formname,
    i_callback_top_of_coverpage    TYPE kkblo_formname,
    i_callback_end_of_coverpage    TYPE kkblo_formname,
    i_callback_grouplevel_change   TYPE kkblo_formname,
    i_callback_item_data_expand    TYPE kkblo_formname,
    i_callback_header_transport    TYPE kkblo_formname,
    i_callback_reprep_sel_modify   TYPE kkblo_formname,
    i_callback_subtotal_text       TYPE kkblo_formname,
    END OF ty_stack2.
    TYPES: t_stack2 TYPE TABLE OF ty_stack2 INITIAL SIZE 0.
    ** *--- iTables
    DATA: it_stack  TYPE t_stack WITH HEADER LINE.
    DATA: it_stack2 TYPE t_stack2 WITH HEADER LINE.
    ***ALV Customer Wrapper
    DATA: it_stack3 TYPE t_stack3 WITH HEADER LINE.
    CONSTANTS: BEGIN OF c_con_listtype,
    simple(1)    TYPE c VALUE 'S',
    hier_sequ(1) TYPE c VALUE 'H',
    matrix(1)    TYPE c VALUE 'M',
    END OF c_con_listtype.
    DATA:   gv_callback_program1      TYPE sy-repid,
    gv_callback_user_command1 TYPE kkblo_formname,
    gv_callback_top_of_page1  TYPE kkblo_formname,
    gv_callback_top_of_list1  TYPE kkblo_formname,
    gv_callback_end_of_page1  TYPE kkblo_formname,
    gv_callback_end_of_list1   TYPE kkblo_formname,
    gv_callback_pf_status_set1  TYPE kkblo_formname,
    gv_callback_layout_save1    TYPE kkblo_formname,
    gv_callback_fieldcat_save1  TYPE kkblo_formname,
    gv_callback_grouplevel_change1  TYPE kkblo_formname,
    gv_callback_before_line_otput1  TYPE kkblo_formname,
    gv_callback_after_line_otput1  TYPE kkblo_formname,
    gv_callback_foreign_top_of_pg1  TYPE kkblo_formname,
    gv_callback_foreign_end_of_pg1  TYPE kkblo_formname,
    gv_callback_list_modify1          TYPE kkblo_formname,
    gv_callback_top_of_coverpge1     TYPE kkblo_formname,
    gv_callback_end_of_coverpge1     TYPE kkblo_formname,
    gv_callback_item_data_expand1     TYPE kkblo_formname,
    gv_callback_header_transport1     TYPE kkblo_formname,
    gv_callback_reprep_sel_modify1    TYPE kkblo_formname,
    gv_callback_subtotal_text1       TYPE kkblo_formname,
    gv_layout1   TYPE  kkblo_layout,
    gv_fieldcat1  TYPE  kkblo_t_fieldcat,
    gv_fctype1  TYPE c,
    gv_event_exit1  TYPE  kkblo_t_event_exit,
    gv_excluding1   TYPE  kkblo_t_extab,
    gv_special_groups1  TYPE  kkblo_t_sp_group,
    gv_sort1  TYPE  kkblo_t_sortinfo,
    gv_filter1  TYPE  kkblo_t_filter,
    gv_except_qinfo1  TYPE  slis_t_qinfo_alv,
    gv_sel_hide1  TYPE  slis_sel_hide_alv,
    gv_reprep_id1   TYPE  slis_reprep_id,
    gv_screen_start_column1  TYPE i,
    gv_salv_adapter1   TYPE REF TO if_salv_adapter,
    gv_suppress_empty_data1  TYPE  sap_bool.
    FUNCTION z_excel_download_test.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_BYPASSING_BUFFER) TYPE  CHAR01 OPTIONAL
    *"     REFERENCE(I_BUFFER_ACTIVE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_PROGRAM) TYPE  SY-REPID OPTIONAL
    *"     REFERENCE(I_CALLBACK_USER_COMMAND) OPTIONAL
    *"     REFERENCE(I_CALLBACK_TOP_OF_PAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_TOP_OF_LIST) OPTIONAL
    *"     REFERENCE(I_CALLBACK_END_OF_PAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_END_OF_LIST) OPTIONAL
    *"     REFERENCE(I_CALLBACK_PF_STATUS_SET) OPTIONAL
    *"     REFERENCE(I_CALLBACK_LAYOUT_SAVE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_FIELDCAT_SAVE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_GROUPLEVEL_CHANGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_BEFORE_LINE_OUTPUT) OPTIONAL
    *"     REFERENCE(I_CALLBACK_AFTER_LINE_OUTPUT) OPTIONAL
    *"     REFERENCE(I_CALLBACK_FOREIGN_TOP_OF_PAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_FOREIGN_END_OF_PAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_LIST_MODIFY) OPTIONAL
    *"     REFERENCE(I_CALLBACK_TOP_OF_COVERPAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_ITEM_DATA_EXPAND) OPTIONAL
    *"     REFERENCE(I_CALLBACK_END_OF_COVERPAGE) OPTIONAL
    *"     REFERENCE(I_CALLBACK_HEADER_TRANSPORT) OPTIONAL
    *"     REFERENCE(I_CALLBACK_REPREP_SEL_MODIFY) OPTIONAL
    *"     REFERENCE(I_CALLBACK_SUBTOTAL_TEXT) OPTIONAL
    *"     REFERENCE(I_TABNAME) TYPE  SLIS_TABNAME OPTIONAL
    *"     REFERENCE(I_FCTYPE) DEFAULT 'R'
    *"     REFERENCE(IT_EXCEPT_QINFO) TYPE  SLIS_T_QINFO_ALV OPTIONAL
    *"     REFERENCE(IS_SEL_HIDE) TYPE  SLIS_SEL_HIDE_ALV OPTIONAL
    *"     REFERENCE(IS_REPREP_ID) TYPE  SLIS_REPREP_ID OPTIONAL
    *"     REFERENCE(I_SCREEN_START_COLUMN) DEFAULT 0
    *"     REFERENCE(I_OO_ALV) OPTIONAL
    *"     REFERENCE(IR_SALV_ADAPTER) TYPE REF TO  IF_SALV_ADAPTER OPTIONAL
    *"     REFERENCE(I_SUPPRESS_EMPTY_DATA) TYPE  SAP_BOOL DEFAULT
    *"       ABAP_FALSE
    *"     REFERENCE(I_FILE) TYPE  STRING OPTIONAL
    *"     REFERENCE(IT_FIELDCAT) TYPE  SLIS_T_FIELDCAT_ALV OPTIONAL
    *"     REFERENCE(IS_LAYOUT) TYPE  SLIS_LAYOUT_ALV OPTIONAL
    *"     REFERENCE(IT_SORT) TYPE  SLIS_T_SORTINFO_ALV OPTIONAL
    *"     REFERENCE(IT_FILTER) TYPE  SLIS_T_FILTER_ALV OPTIONAL
    *"     REFERENCE(IT_EXCLUDING) TYPE  SLIS_T_EXTAB OPTIONAL
    *"     REFERENCE(IT_SPECIAL_GROUPS) TYPE  SLIS_T_SP_GROUP_ALV OPTIONAL
    *"     REFERENCE(IS_KEYINFO) TYPE  SLIS_KEYINFO_ALV OPTIONAL
    *"     REFERENCE(IT_EVENT_EXIT) TYPE  SLIS_T_EVENT_EXIT OPTIONAL
    *"     REFERENCE(IS_LIST_SCROLL) TYPE  SLIS_LIST_SCROLL OPTIONAL
    *"     REFERENCE(IS_PRINT) TYPE  SLIS_PRINT_ALV OPTIONAL
    *"     REFERENCE(IS_LINEINFO) TYPE  SLIS_LINEINFO OPTIONAL
    *"     REFERENCE(I_REPID) TYPE  SYREPID OPTIONAL
    *"  TABLES
    *"      T_OUTTAB TYPE  STANDARD TABLE OPTIONAL
    *********** Local data declarations******************
    DATA: gv_list TYPE char1.
    DATA: gv_fcat_complete TYPE sap_bool.
    DATA: gv_buffer_active TYPE char01,
    wa_variant TYPE disvariant.
    DATA: gv_controller TYPE REF TO cl_salv_export_c8r.
    DATA: gv_xml           TYPE xstring.
    DATA: gv_s_xml_choice TYPE if_salv_bs_xml=>s_type_xml_choice.
    DATA: gv_t_xml_choice TYPE if_salv_bs_xml=>t_type_xml_choice.
    DATA: gv_param_lvc TYPE if_salv_export=>s_type_param_lvc.
    DATA: gv_data       TYPE REF TO data.
    DATA: gv_result_data TYPE REF TO cl_salv_ex_result_data_table.
    DATA: gv_flavour TYPE string.
    DATA: gv_version TYPE string.
    DATA:

  • Parameter in WEBADI How to Download the WebADI Excel File with Parameter

    Experts, How to Download the Oracle Web ADI Excel File followed by entering Parameters which means the spread sheet should display the data dynamically based on the parameter provided by the end user. Can anybody share any hint or idea? Regards, Gaurav Nagpal.

    Can anybody help me please!

  • Oracle WebADI: How to Download the WebADI Excel File with Parameter

    Hello Friends,
    How to Download the Oracle WebADI Excel File with Parameter??
    For Ex: How to download the Employees for Specific Department from Oracle WebADI.
    And After to change the specific changes on Employee Data to Upload.
    Thanks in Advance.

    Hi Team.
    Any Advise on it!!

  • How to download ANSI coding text file using function GUI_DOWNLOAD?

    Hi All,
      Is the coding page of the file created by funtion GUI_DOWNLOAD or WS_DOWNLOAD is ANSI or UTF-8? How to download a text file which's coding page is ANSI please?
    Is this correct?
    CALL function 'GUI_DOWNLOAD'
      exporting
      codepage = '4110'
    importing

    This Function Lodule will give the CODE PAGE VALUE
    SCP_CODEPAGE_BY_EXTERNAL_NAME ... You have to give type of tht ENcoding like ANSI ..etc
        call function 'GUI_DOWNLOAD'
          exporting
           filename                        = 'd:\customer_details.txt'
           filetype                        = 'ASC'
       CODEPAGE                        = code
          tables
            data_tab                        = t_customer_details
      FIELDNAMES                      =
         exceptions
           file_write_error                = 1
           no_batch                        = 2
           gui_refuse_filetransfer         = 3
           invalid_type                    = 4
           no_authority                    = 5
           unknown_error                   = 6
           header_not_allowed              = 7
           separator_not_allowed           = 8
           filesize_not_allowed            = 9
           header_too_long                 = 10
           dp_error_create                 = 11
           dp_error_send                   = 12
           dp_error_write                  = 13
           unknown_dp_error                = 14
           access_denied                   = 15
           dp_out_of_memory                = 16
           disk_full                       = 17
           dp_timeout                      = 18
           file_not_found                  = 19
           dataprovider_exception          = 20
           control_flush_error             = 21
           others                          = 22
        if sy-subrc <> 0.
          write : / 'Upload Failed' , sy-subrc.
        else.
          write : / 'Upload Completed'.
        endif.
      endif.
    Reward if helpful...

  • How to download the AppIntegrator zip file from the SAP Service Market Plac

    Hi All,
    I want to download com.sap.portal.howtos.webapp.par file from SAP Market Place. KIndly guide me how to download par file from market place.
    Regards,
    Bidyut

    Below documents will help you to download app integrator
    Step-By-Step Guide to implement Application Integrator
    Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator

  • How to download video and audio files

    Pl tell me how to download mp3 & mp4 files from fox browser

    hello afrozahamed, please have a look at the following article which should cover your question: [[How do I download music, photos and videos from the browser?]]

  • Multiple context mode, how to download the packet capture file

    Hi guys,
    Is there a way to download the packet capture file from a specific context? I know that I used to use https://<ASA_IP>/admin/capture/<capture> to download it if it is just one context. 
    The ASA uses mgmt 0/0 for management and it is connected in a separate OOB network. Only this network has TFTP servers for uploading the capture file. The context in question is in transparent mode. Its IP doesn't have access to any TFTP server.
    Thanks!
    Difan

    Hello Difan,
                         Please refer the following document.
    https://supportforums.cisco.com/document/69281/asa-using-packet-capture-troubleshoot-asa-firewall-configuration-and-scenarios
    Also what version of the ASA code are you using?
    Regards,
    Jai Ganesh K

  • How to download a csv/excel file stored in a server using OA Framwork

    Hi All,
    We have a requirement where we have to generate a CSV file using PL/SQL block and the user shoul download that csv file to his client machine whenever it requirs to him. We have generated csv file and save the same in a particular location in the server. As the CSV file size may be around 10 to 15 MB we feel the storing and retrieving of the csv file in a BLOB object is a performance hit. Now we want to dowload the file from the csv file path without storing the csv file into database BLOB object.
    Is this possible using OA framwork? if so please guide me how to do this.
    Thanks in advance.
    Regards,
    Sathesh.

    If u know following details you can use below method to download any file ( XLS/any) its generic method I have used in one of my project-
    1. File Name with Extension
    2. File path at which it has been placed
    3. Page Context (you must know i assume)
    public void DownloadFileFromServer(OAPageContext pgeContext, String file_name_with_path,
    String file_name_with_ext)
    System.out.println("Filename path "+file_name_with_path + "File Name:" + file_name_with_ext);
    HttpServletResponse responseVar = (HttpServletResponse)pageContext.getRenderingContext().getServletResponse();
    if (((file_name_with_path == null) || ("".equals(file_name_with_path))))
    System.out.println("File path is invalid.");
    File fileToDwnld = null;
    try
    fileToDwnld = new File(file_name_with_path);
    catch (Exception e)
    System.out.println("Invalid File Path or file does not exist.");
    if (!fileToDwnld.exists())
    System.out.println("File does not exist.");
    if (!fileToDwnld.canRead())
    System.out.println("Not Able to read the file.");
    String MADfileType = getMADMimeType(file_name_with_ext);
    System.out.println("File Type - " + MADfileType);
    responseVar.setContentType(MADfileType);
    responseVar.setContentLength((int)fileToDwnld.length());
    System.out.println("File Size is " + fileToDwnld.length());
    responseVar.setHeader("Content-Disposition", "attachment; filename=\"" + file_name_with_ext + "\"");
    InputStream inStr = null;
    ServletOutputStream outStr = null;
    try
    outStr = responseVar.getOutputStream();
    inStr = new BufferedInputStream(new FileInputStream(fileToDwnld));
    int ch;
    while ((ch = inStr.read()) != -1)
    outStr.write(ch);
    catch (IOException e)
    e.printStackTrace();
    finally
    try
    outStr.flush();
    outStr.close();
    if (inStr != null)
    inStr.close();
    catch (Exception e)
    e.printStackTrace();
    Edited by: aprak on Oct 18, 2011 1:08 AM
    Edited by: aprak on Oct 18, 2011 1:09 AM

  • How to Download a batch of files without having to click on each file

    I installed download helper and when i watch a video there are alot of files playing how do i download all of them without having to click on every file in the helper drop down box

    anthony siciliano had this to say:
    I use Smugmug for my photo website. To upload photos to that site, I must convert my PSD files to JPGs and limit the file size of each photo to 12 MB.
    Almost all photo sites impose a size limit on each photo. Sometimes the
    size amount varies. 12M is a lot ...
    Since I am now shooting with a 21 megapixel camera, most of the photo files are over 12 MB when converted to JPGs (many are in the 20 MB range).
    Usually, the size is dependent on the dimensions you choose, and the
    resolution. If you limit your photos to approx 1024x768 with a
    resolution of 72 dpi (which is pretty standard for screen-only
    resolution), you'll find that your photo file sizes will be much
    reduced. Are you sure you need the resolution or size that you are
    using? If you're not selling prints (perhaps you are), then using a
    smaller, screen resolution only version will help.
    Is there a way to convert a batch of photos from PSD files to JPGs and limit the file size of each photo to 12 MB?  Thanks!!
    >
    The LR2Mogrify plugin can do that, I believe.

  • How to download my uploaded .ipa files of an app?!

    Hi! I have an uploaded app on app store & need to get the .ipa files of that app from my account on iTunes Connect. How can i do that?!

    dmwizzard wrote:
    I installed an App from the OVI store on to my Memory card and Not the Phone memory - (As I should of)
    Later I formatted the Memory Card and of course lost the App. But for some reason my Phone still thinks the App is installed and won't let me download it again.
    * I have cleared the 'Downloaded' flag on OVI, I just need to do the same in my handset.
    * The App isn't shown 'Installations', nor is it listed in the installed 'App.manager'
    * I have tried a 'Factory Settings' reset but, not done a Hard reset.
    How can I remove this info from the phone so I can re-install the OVI app once more.???
    Cheers
    do you mean the Ovi Store will not let you re-download this app?
    If you want to thank someone, just click on the blue star at the bottom of their post

  • I can't upgrade to iCloud Drive this morning. How to download an iCloud Numbers file on my Mac today?

    Is there any way TODAY to download an iCloud Number document to use on my MacBook Pro's Numbers app?
    Yesterday (Wednesday, Sept. 17, 2014)  I made some updates on an iCloud Numbers document that I use to share data between my Mac at work and my Mac at home.
    This morning (Thursday, September 18, 2014), I can't access iCloud Numbers AT ALL.
    There was no warning yesterday that I wouldn't be able to access iCloud Numbers.
    When I click on Numbers iCloud a popup that tells me to upgrade to iCloud Drive to use it, but warns that I won't be able to use it on any of my devices that aren't upgraded to iOS 8 or Yosemite Beta. My only choices are "Learn more," "Not Now," or "Upgrade now." "Not now" simply puts me back into iCloud.
    I'm not in the position TODAY to upgrade all my Macs all at once, especially to a beta operating system (Yosemite).
    With no access to iCloud Numbers on either of my Macs, how do I download the latest version of the numbers document to save it?

    I was able to send (email) myself a copy of my iCloud Numbers documents through my iPad Numbers app . Thankfully, they were synced, so I didn't lose anything.
    This forced beta OS update has got to be a mistake.

  • How to download/save a AI file from Web

    Hi all,
    I need to download some ai files from my client's web application in which, whenever I click the links from their web, my acrobat pdf reader 8.0 will be pop-up and I cannot save the ai files under the acrobat pdf reader. Recently, I don't have any Adobe Illustrator program in my PC because my job is download all ai files and forward to my designers. Can anyone have any suggestion?
    thanks
    steven

    Hi Silk,
    I've tried this before. I've no idea why my client's application cannot right click the link. Probably, the web application is written by something related to Java. Even I use left or right click, my windows will be automatically popup the Acrobat PDF reader. I was trying to search some related discussion to disable the Acrobat PDF reader(8.0) popup but fail. Have any idea?
    Steven

  • How to download email attachment video file or document file

    Hello
    i am unable to download MP4 video file from my gmail account to my Iphone6 plus.
    When i just press on email attachment it plays on line but no option for downloading
    only Open,Add in reading list & Copy options showing
    Do you have some solution for this

    Hello jlremington and welcome to the forums
    Depending on the email integration type and software running on the device
    will determine if you are able to use this feature.  Can I get the version
    of software that is on the device? This can be found under Options -
    About.  Also what type of email account are the messages coming
    from?  Are you using a BES account or BIS account?  If your are using a BIS account what type of
    integrations are you using? POP, IMAP, OWA, Gmail, Yahoo, Hotmail etc…
    Message Edited by SmoothRider on 07-14-2009 02:32 PM
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • Why does My Verizon require me to answer my secret question all the time?

    I rarely login to My Verizon.  Let's face it, the account information for Verizon's site aren't exactly as fresh in memory as my mail account or social network authentication details. So every few months when I do need to check on something about my

  • Adhoc query v sapquery

    hi all,         can anyone explain what is          adhoc query in bi 7.0,          infoset query,          infoset,          inforecord,           infotype

  • How to create application log in SAP

    According to my reqirement,I need to display messages in the application log whenever some updation is done. How to do create application log and display messages in the application log.

  • Csv output w/o quotes

    I have seen a lot of good ideas regarding csv output (such as the trick to output more than 10000 rows), and I was hoping someone could steer me in the right direction with this question. How would I go about generating csv ouput that does not contai

  • Receipt material without purchase order

    Dear ALL, We want to create material receipt not without purchase order and try it by movement type 501 and its created. but problem is if material moving average is 0 then system post material without any account entry.  now i want system restrict t