File download uielement resource attribute

Hello,
I am following the blog [link|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproforJava-+FileDownloadUIElement]
this works fine except for the fact that resource attribute is indeed needed for filedownload element coz it otherwise gives a dump
so how should I populate the resource ? if i just simple keep a resource type attribute then the dump is gone but there is no file.
thanks in advance
B

Hi,
If you are using 7.0 then you need to bind the file download ui to an attribute of type binary and if you are using CE 7.1 then ui must be binded to an attribute of type Resource.
The best way to set the binary attribute is
wdContext.currentContextElement().setBinary(str.getBytes());
And for CE 7.1, set the Resource attribute like
IWDResource resource = WDResourceFactory.createResource(str.getBytes(), "MyFile", WDWebResourceType.TXT);
wdContext.currentContextElement().setResource(resource);
Regards,
Amol

Similar Messages

  • Problem with FIle DownLoad

    Hi All,
    I am working on project where I need to display all the files (on the UI screen)which are in  windows folder with a download link.
    I used IWDDownload UI element for  downloading the file. Its working fine but problem is , when ever I download a file for first time its working fine. Later what ever I download other files, I was able to see only first file download. I guess this is problem with context binding but I am not sure.
    I used for loop to iterate all the files in folder and I binded the file name to IWD Download UI element using bindText option.I am creating UI elements dynamically in wdDoModifyView and it will call another method to bind to context.(As SAP Suggested not to modify any context elements in wdDoModifyView method).
    Please help me in this regard.
    Ramesh

    Ramesh,
    You need N dynamic binary attributes or IWDResource (in newer versions), one per file. Create them either in wdDoInit of view or in some suitable action handler.
    Then you have to populate IWDResource or set bytes of binary attributes. Check corresponding WD tutorials how to do this.
    In wdDoModifyView create IWDFileDownload control per every attribute and bind either "data" property (to binary attribute) or "resource".
    Valery Silaev

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

  • File Download

    Hi All -
    I need help in downloading a Blob type attribute from database using af:fileDownloadActionListener.
    Here is the scenario:
    On a database Blob attribute having a simple text type file I have created BlobDomain VO attribute.
    I am displaying the fileName and FileData (Blob attribute) in the form of a table on Ui page and on fileName I have created a af:commandLink and added af:fileDownloadActionListener to it.
    The fileData is shown perfectly in the af:table, but when I download the file or open it via Browser Open / Save functionality all I get is below given garbage data.
    Here are the codes:
    Page:
    ====
    <af:commandLink id="ot12" text="#{row.FileName}">
    <af:fileDownloadActionListener contentType="#{application/rtf}"
    filename="#{row.FileName}"
    method="#{claimAttachmentBean.fileDownload}"/>
    </af:commandLink>
    Backing Bean:
    ========
    public void fileDownload(FacesContext facesContext, OutputStream outputStream) throws IOException{
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("DelmeAttachmentIterator");
    String strFilename = (String)dciter.getCurrentRow().getAttribute("FileName");
    BlobDomain doc = (BlobDomain)dciter.getCurrentRow().getAttribute("FileData");
    try {
    InputStream in;
    in = doc.getBinaryStream(); //doc.getInputStream();
    byte[] buf = new byte[1024];
    int count=0;
    while ((count = in.read(buf)) >= 0) {
              outputStream.write(buf, 0, count);
    in.close();
    outputStream.flush();
    outputStream.close();
    doc.closeInputStream();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (Throwable e) {
    e.printStackTrace();
    Part of Garbage Data that I get always:
    ========================
    "<HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 22/12/2008, postxslt.pl [1012] v1
    Source: amsug304304.xml
    File: amsug304304.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <<!-- $Header: amsug304304.htm 120.5 2008/12/29 12:01:50 appldev noship $ -->
    <!--BOLOC 2085773_TTL--><TITLE> Advertising on the Web to Promote a Product (ORACLE MARKETING)</TITLE><!--EOLOC 2085773_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <<BODY BGCOLOR="#F8F8F8">
    <A NAME="T304304"></A><A NAME="AdvonthWebtoProaPro"></A>
    Please suggest what could be the issue here.
    Regards -
    Rohit
    Edited by: Rohit Makkad on Jul 13, 2010 4:05 AM

    Hi
    Can you please try with the contentType="application/x-download" to see if there is any difference.
    AFAICS your code is the same as mine...
       * Download a file using a download listener
       * @param itr - the iterator containing the blob
       * @param Attribute - the name of the blob fild
       * @param os - output stream from the downlload listener method
       * @throws IOException
        public static void downloadListener( DCIteratorBinding itr, String Attribute, OutputStream os ) throws IOException {
          Row r = itr.getCurrentRow();
          BlobDomain file = (BlobDomain)r.getAttribute(Attribute);
          InputStream in = file.getBinaryStream();
          byte[] buf = new byte[1024];
          int count;
          while ((count = in.read(buf)) >= 0) {
                  os.write(buf, 0, count);
          in.close();
          os.flush();
          os.close();
          file.closeInputStream();     
       }Regards
    Paul
    Edited by: Paul (MITsa) on 13-Jul-2010 06:55

  • File name conflict in File Download filter in Policy Studio

    Hi,
    I am trying to use File Download filter to download the file from sftp server and saving it on local machine using Save to File filter. File format is ABC_MMDDYYYY,zip
    i need to get the name of the file at run time. what would be Attribute Selector i should use in File Download filter for File name. I tried ABC_${date}
    but its not able to understand that format. i tried lot nothing seems to be working.
    Please help.

    i am Getting Auth Fail error in trace logs when creating Policy for SFTP File Download and Saving it.
    Problem Description
    Getting Auth Fail error in trace logs when creating Policy for SFTP File Download and Saving it on server.
    Steps to Reproduce
    1. Create a policy with Add HTTP Header and FileDownload filter with SFTP server details (need to specify fingerprint)
    2.Add Save to File filter with correct path and file name.
    3.Add scheduler that runs after every 20 sec
    4.Verify file at Save location and check trace logs.

  • File download from fnd_lobs

    Hi all !
    I am trying to implement a file download process into an existing table (table for requisition_lines_all).
    I first want to test the code written in the dev guide but it is not working !
    I extend the ReqLinesNotificationCo with the code :
              OAViewObject fndLobs = (OAViewObject)oaapplicationmodule.findViewObject("testDownloadVO");
              if ( fndLobs == null )
                   fndLobs = (OAViewObject)oaapplicationmodule.createViewObject("testDownloadVO", "oracle.apps.fnd.server.FndLobsVO");
              fndLobs.setWhereClause("file_id = :1");
              fndLobs.setWhereClauseParam(0, "402426");
              fndLobs.executeQuery();
              OAMessageDownloadBean downloadBean =
                             (OAMessageDownloadBean)createWebBean(oapagecontext, MESSAGE_DOWNLOAD_BEAN);
              downloadBean.setViewUsageName("testDownloadVO"); // always gives full name of view instance
              downloadBean.setViewAttributeName("FileName"); // for display text of the link
              downloadBean.setContentViewAttributeName("FileData"); // the file content
              // if content type is stored in a view attribute, it can be retreived through
              // data bound value. Otherwise, a static value can also be set:
              // e.g. downloadBean.setFileContentType("text/html")
              //OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(downloadBean, "FileContentType");
              //downloadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
              downloadBean.setFileContentType("application/pdf");
              OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(downloadBean, "application/pdf");
              downloadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
              downloadBean.setPrompt("Attached Document");
              oawebbean.addIndexedChild(downloadBean);
    When testing, the page returns :
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition FileId of type Attribute not found
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2928)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2725)
    I thought this code should create a column with always the same file (file id = 402426), but ... No way !
    Did I miss something ?
    Thanks
    regards

    Check the column alias for the file_id. You are using file_id but the alias mapping is set to fileid. Make sure of column alias and save the VO, test.
    --Shiv                                                                                                                                                                                                                                                                                                                               

  • Peformance Turning for File Download / Upload with Enabled SharePoint Audit

    Greetings all, may I ask your help for Peformance Issues?
    Background:
    I tried to create a ASP.NET Web Page to download/upload/list SharePoint file and deployed to IIS website in same application server (will NOT use web part as some users are NOT allowed to direct access confidential workspace)
    Besides, for Audit Log record purpose, the page will impersonate (without password) the logged in user:
    SPUserToken userToken = web.AllUsers[user].UserToken;
    SPSite s = new SPSite(siteStr, userToken);
    For File Listing, the web service can provide fast response, and we are using service A/C for connection (as no auting for listing, but require audit for file download upload)
    Several implemeation options tested for File Downloiad / Upload, but issues occured and finding listed below:
    Issues
    1) SharePoint Object Model
    When I open Site (using new SPSite), it's too slow to respond. (under 1s for all operations, but require 10~50s for open SPSIte. e.g.
    using(SPSite s = new SPSite(siteStr) //50s
    How can I download/upload file without open SPSite object (using SharePoint object model, but user token should be kept to allow SHarePoint identifiy user actions. e.g. Updated by Tom, NOT system administrator)?
    2) SharePoint default web service
    For file download, I tried to use SharePoint Web Service for download file, it's quick but how can SharePoint record the audit log to downloaded user, and not service A/C? ( e.g. View by Tom, NOT system administrator)
    With Windows SSO solution, please note system should NOT prompt to ask user password for use impersonation
    3) HTTP Request API (for file download)
    As mentioned in point 2, if the system cannot get password from user, SharePoint also recorded service A/C in audit log... ><
    Thank you for your kine attention.
    .NET Beginner 3.5

    Thank you for prompt response, please find my reply with Underline:
    Hi,
    Maybe I'm not quite clear about the architecture you have now.
    Is your asp.net application deployed in separate IIS site but in the same physical server as SharePoint?
    Yes
    "we are using service A/C for connection", can you please explain the 'A/C'?
    Domain User, Local Admin and also SharePoint Service Admin A/C
    Opening SPSite is relatively slower but shouldn't take 50 sec. However it depends on your server hardware configuration. You should meet the minimum hardware requirements for SharePoint.
    Assigned double resources based on minimum hardware requirements.
    For details, 50s is the load test result. But for other SharePoint operation, it takes around/under 3s reponse time.
    Are you using SharePoint Audit log? Exactly If so then why don't you just put the hyperlink to the documents in your asp.net page. User maybe have to login once in SharePoint site but
    it depends on your security architecture. For example if both of your sites in local intranet and you are using windows integrated authentication, SSO will work automatically  User is NOT allowed
    to access SharePoint site/server (not implemented for sepreate server yet, as performance issues occured for
    separate site in same server)  directly from Internet, the
    middle server with web interface created for user request.
    Whatever I understands gives me the feeling that you download the file using HTTPWebRequest C# class. However regarding security it depends on how authentication is setup in asp.net web site and in sharepoint. If both site uses windows integrated security
    and they are in the same server, you can use the following code snippet:
    using (WebClient webClient = new WebClient())
    webClient.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
    webClient.DownloadFile("file ur in sharepoint", "download directory");
    Thanks, will try and reply later
    But still, as I've mentioned, not quite clear about the whole architecture.
    A) Request Handling
    1) User use browser to request file listing and/or download file (hereafter called: File Download Request) from custom ASP.NET page (Let's say In Server 1, IIS 1)
    2) ASP.NET page  or File Handler ashx (Server 1, IIS 1) call custom web service, SharePoint deault/OOTB web service or using SharePoint Object Model to access SharePoint Document Library (in Server 1,
    IIS 2)
    3) Both SharePoint and IIS Web Site
    (Server 1, IIS 1 & IIS2) using the same service A/C
    4) The web service , File Handler return file obeject to IIS1
    5) IIS 1 reply File Download Request to user
    B) Application Architecture (In testing environment)
    1) no load balancing
    2) 1 DB server (Server 2)
    3) 1 Application Server (with IIS 1 - ASP.NET, IIS 2, SharePoint Web Site with default SharePoint Web Service, IIS 3 SharePoint Admin Site & IIS 4 Custom SharePoint Web Service)
    4) Sepreate AD Server (Server 3)
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com
    .NET Beginner 3.5

  • Application for file download

    Hi!
    I am really a beginner in this technology and recently i am working on a project where i have to let the users to download files that are stored in a specified location in the server. Please suggest a way by which this can be accomplished.
    Sorry in advance if this is not worth enough to post.
    Thanks
    Sutirtha

    Simplest approach would be provide a hyperlink in your HTML/JSP page and provide the file URL in HREF attribute of anchor tag. When user clicks on that link, browser will automatically display download dialog to user.
    Example: DownLoad Test File
    Thanks,
    Mrityunjoy

  • Problem in XML file download

    types: begin of type_s_data,
             record(65000) type c,
           end of type_s_data.
    data: w_xml_out type string.
    data: t_xml_tab type table of type_s_data with header line,
    Source code
          t_code    type table of type_s_data with header line,
    After populating t_code table,
    convert internal table data into XML document
      call transformation id
           source code = t_code[]
           result xml w_xml_out.
    append XML docu to internal table
      append w_xml_out to t_xml_tab.
    Download to XML file
      call function 'GUI_DOWNLOAD'
        exporting
      BIN_FILESIZE                    =
         filename                        = filename
         filetype                        = 'BIN'
        append                        =
      write_field_separator           = sep
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
        tables
         data_tab                        = t_xml_tab
      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.
        message e016 with 'Error during file download'(002).
      endif.
    Problem here is when intrernal table data/size is large, only part of the data is getting displayed in the file and at the bottom of the file showing an error message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End element was missing the character '>'. Error processing resource 'file:///C:/Documents and Settings/sowjanya.suggula/De...
    RECORD
    ^
    >RECORD>
      </item>
    wehn i change data  declaration as
    data: t_xml_tab type table of string with header line.
    when i execute the program, giving me a short dump.please suggest me a soluion for this.
    Regards,
    Sowjanya

    Hi Sowjanya,
    Kindly go through this link below:
    It Uploads XML to internal table and vice versa :
    Upload XML to internal table and vice versa in SAP 4.6C
    Hope it helps
    Regrds
    Mansi

  • Extremely urgent-file download issue

    My problem is I hava tabular form with ATTACHMENTS(Select List), ID, Report_Name(linked to download the file). Report_Name has attribute to direct to the URL #OWNER#.download_my_file?p_file=#ID#&p_id=#ATTACHMENTS#
    ATTACHMENTS returns (1,2,3,4,5,6) respectively. Even If select a report_type and click the report name, the URL that I receive has a null value for p_id. Any ideas why this is happening? Once I click the link I get URL not found because my URL only has <b>download_my_file?p_file=2399328756440204&p_id=</b>.It doesn't have the value for p_id. If I substitute manual values <b>download_my_file?p_file=2399328756440204&p_id=1</b> it is working fine.Any help will be extrememly helpful.
    Here is my download_my_file proc code
    create or replace PROCEDURE "DOWNLOAD_MY_FILE" (p_file in number,p_id in number) AS
    v_id NUMBER:=p_id;
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    IF v_id = 1 THEN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    IF v_id = 2 THEN
    SELECT MIME_TYPE, SUMMARY_FILE_CONTENT, SUMMARY_NAME,DBMS_LOB.GETLENGTH(SUMMARY_FILE_CONTENT)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    IF v_id = 3 THEN
    SELECT MIME_TYPE, SCREENER_FILE_CONTENT, SCREENER_NAME,DBMS_LOB.GETLENGTH(SCREENER_FILE_CONTENT)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    IF v_id = 4 THEN
    SELECT MIME_TYPE, DISCUSSION_GUIDE_FILE_CONTENT, DISCUSSION_GUIDE_NAME,DBMS_LOB.GETLENGTH(DISCUSSION_GUIDE_FILE_CONTENT)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    IF v_id = 5 THEN
    SELECT MIME_TYPE, BRIEFING_DOCUMENT_FILE_CONTENT, BRIEFING_DOCUMENT_NAME,DBMS_LOB.GETLENGTH(BRIEFING_DOCUMENT_FILE_CONTENT)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    IF v_id = 6 THEN
    SELECT MIME_TYPE, MR_PLAN_FILE_CONTENT, MR_PLAN_NAME,DBMS_LOB.GETLENGTH(MR_PLAN_FILE_CONTENT)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;
    /*IF v_file_name is null THEN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    END IF;*/
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'),FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does asave as
    htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    Edited by: Shaan Venkat on Jul 7, 2009 1:01 PM

    http://forums.oracle.com/forums/search.jspa?objID=f137&q=upload+text+to+table
    Re: File Browse, File Upload
    hope this help you

  • Jar Files download Slow in IE but not FireFox

    We have an application (PTC Windchill) that uses jar files within the application. These jar files contain our customizations and get downloaded to the users when they require certain functionality within the application. Each time we update our build (update the customizations) new jar files are required to be downloaded to the client. Recently, we have seen an increase in the number of clients that the downloads take an extremely long time. The jar files add up to about 70mb and on a machine that we consider to be working correctly, this takes less than a minute. On some machines, it takes as long as 20 minutes. We are unable to determine what the difference is between computers (both have the same version of JRE, OS, IE and updates etc.). What is interesting, is the files download quickly on FireFox, every time on every machine. We initially thought this was an IE issue, but we can't pin point it. Also, the files transfer fine through the OS so we don't believe it is network or NIC related. This started out as just a few computers but seems to be growing. We have found upgrading to Apache 2.x.x from 1.3.27 fixes the problem, but breaks something else in our application, therefor is not a solution. This would appear to be an IE and Apache compatibility issue, but why it works with some clients and not others, puzzles us. I was hoping someone out there may have some ideas of what the issue is. It is probably something simple, but not simple to find. Any help is much appreaciated.
    Thanks,

    It's probably an IE problem.
    The installed JREs on the client machines have no relationship with downloading via a browser.
    It works fine with firefox because this latter is an open source and frequently upgraded. There are lot of firefox plugins and extensions for downloading tasks: https://addons.mozilla.org/en-US/firefox/search?q=download&status=Array
    You can allocate more resources for your server and use a multi-thread donwload servlets but it will not resolve the problems of the client side IE browser.

  • File Download error in IE7 in Webdynpro Abap

    Hi Guru,
    I am Sandeep , My problem is realated to file download from IE. When I use IE6 my code works fine on the PRD server , But when I use IE7 , it gives an error  " Internet Exlpore cannot download the file ".
    But it works fine on Quality server either i am using IE6 or IE7.
    And i use the same code in other event , it works fine.
    Please help me.
    Regards,
    Sandeep.

    Hello Sandeep,
    Probably someone will help you if you paste here part of the source code.
    The issue could be due to different reasons, for example the one described here:
    [Note 1428974 - file name is garbled while downloading resource using IE6|https://service.sap.com/sap/support/notes/1428974]
    Cheers,
    Diego.

  • Zip file download

    Hi,
    I want perform two tasks. One is displaying the page content and then to prompt the user tow save /download the zip file.
    I used the below code.
    <script>
    window.open("/path/software.zip",1,1);
    </script>
    Sequence of flow is, once the user submits the form, thanks content needs to be displayed along with user needs to be propted to downlod / save the zip file. It was functioning perfectly earliest but now it neve opens up. Window opens but no action there after. Can any one suggest how we can over come this issue.
    Thanks in advance.

    If you link to a Zip file, just as you would to any other
    file, it will
    download.
    And by the way, DW has no provision for special file
    downloads. You would
    have to add that coding yourself.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Fred Hunt" <[email protected]> wrote in
    message
    news:fqjepd$iat$[email protected]..
    >I want to provide sample/trial software from my web-site
    in .zip (or .exe
    >if easier). Dreamweaver allows for music and video
    downloads but not other
    >file types. Any ideas?
    >
    > EffAitch

  • Update IDM Account and Resource attribute

    How can i update the resource attribute of users while updating their IDM account from file upload?

    Hi
    we have a similar requirement ?Were you able to solve it and how please let us know.
    Thanks

  • ZIP File has damaged contents - Multiple file download

    Hi,
    I am using ZIP API in Web Dynpro JAVA for multiple file download scenario.
    Issue:--->
    Some files are not opening correctly after unzipping the ZIP file.
    Example-1: some PDF files gives out message that " "
    Example-2: Also, a JPG file shows only upper half of the image.
    So in all, the content of generated ZIP file are damaged.
    Any idea why this is happening?
    Thanks & regards,
    Amey

    And this is the code I'm using:-
    Unzipped PDF files give this error --> There was an error opening this document. The file is damaged and could not be repaired
    for(int i = 0; i < l_int_NodeSize; i++){
         g_SearchOutputEle = g_SearchOutputNode.getCtx_vn_SearchOutputElementAt(i);
         java.net.URL url = new URL(g_SearchOutputEle.getFileUrl());
         java.net.URLConnection urlConnection = url.openConnection();
         java.io.InputStream inputStream = url.openStream();
         int arraySize = urlConnection.getContentLength();
         byte[] byteArray = new byte[arraySize];
         DataInputStream dis = new DataInputStream(inputStream);
         dis.read(byteArray);
         ZipEntry zipEntry = new ZipEntry("Name-"+i);
         zipEntry.setSize(byteArray.length);
         zos.putNextEntry(zipEntry);
         zos.write(byteArray);
         zos.closeEntry();
    zos.close();
    byte[] byteOutArray = baos.toByteArray();
    IWDResource resource = WDResourceFactory.createResource(byteOutArray, "Downloads.zip",WDWebResourceType.UNKNOWN);
    String urlString = resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
    IWDWindow win_MultiFileWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlString);
    win_MultiFileWindow.setWindowSize(0,0);
    win_MultiFileWindow.show();
    Edited by: Amey Mogare on Mar 30, 2010 7:49 AM

Maybe you are looking for

  • Need help with Inventory System

    I am trying to throw together a semi-elegant inventory viewing system for a web site I am creating. The current website is going to be scrapped and remade relatively soon, so I really just want a quick and dirty solution. As such, I have been using s

  • Different retina display

    I and my friend have two iPhone 4 and bought in different time. One about in august and the other one in november. I noticed that the display are very different, on the new one I'm able to see black lines between a row of pixels and another one. The

  • Help in the query

    hi folks, Help me to build the query here. Tables BKPF - fields belnr, blart        BSEG - fields kunnr,wrbtr, zuonr I need to get the data into a single internal table whose strucutre consists of fields kunnr, blart,wrbtr and zuonr the common field

  • CO-product configuration in REM scenario

    I am trying to configure co-product scenario with REM process. Is it possible? If any one worked on this scenario please let me know what are the special consideration we need to take or any SAP note available? Thanks in advaice. Rajesha Vittal

  • Portal Content Navigation

    Hi I am in the process of building a new Portal for a client and at present I am very new to the Product although have already built a basic one. One of the requirements is that they want to hold documentation (in the form of Word and Adobe docs) on