Download file from portal is too slow,why?

Hi all:
I created a hyperlink to download file on the portal and the file is in the portal. The file is dowloaded slowly by 1K~2K, but I used FTP to dowload the file by 300K ,Why? how to solve it?
please help!!!! THANKS!!!!

Hi Namrata,
You need to define the table field type as binary and develop and RFC with one i/p parameter of binary type.
UPload:
From front end you can browse and upload the file using file upload ui element then send the binary file to the RFC input.
Download:
Get the binary format file from rfc by passing ID as parameter and download it using IWDCachedWebResource.
Regards
Deepak

Similar Messages

  • How to Download EAR file from Portal?

    Hello All,
    I have an application iview sap.co.f16 in my portal. I need to change some of its code as per the requirements. I observed that the type of the application is java.
    Can anyone please guide me how to download the source file from portal so that I can make required cahnges...
    Thanks in advance for your help!
    Regards,
    Bhavya.

    Hi
    in the server it will be present in the following location
    EAR files not deployed in Portal. So we can't download from the Portal. We can download from Portal Server Path only
    \usr\sap\<SID>\JC<instance no>\SDM\root\origin\<abc.com>\appl\global\<wd component name>\LOCAL\
    Thanks
    Regards
    Vijay K

  • How can i download file from a pageflow portlet in Webloigc Portal?

    How can i download file from a portlet in Webloigc Portal?
    My Question is, when i download files used codes in a pageflow listed below,
    it didn't work. but in non-portal environments, it worked well.
    How can I download a file from a portlets in portal??
    Thx in advanced.
    this.getResponse().setContentType ( "application/ms-excel" ) ;
    this.getResponse().setHeader ( "Content-Disposition" ,"attachment;filename="
    +new String("Excel.xls".getBytes(),"iso-8859-1")) ;
    sth.write(this.getResponse().getOutputStream());

    i always use an old fashioned method when i have to do this, i create a new jsp that contains a scriptlet that writes to the ServletOutputStream.
    <i>outputWriter.jsp</i>
    // define your own class to get file here, otherwiser use netui-data:callControl tag
    <code><pre>
    File file = FileControl.getFile(fileName);
    String fileName = (String) request.getParameter("fileName");
    response.setContentType(file.getContentType());
    ServletOutputStream sos = response.getOutputStream();
    InputStream is = file.getInputStream();
    for(int i = 0; (i = is.read()) != -1;)
    sos.write(i);
    sos.close();
    </pre>
    </code>
    i then call this jsp from the jsp to which i forward in my action using a simple url rewrite with file name on the url.
    <a href=outputWriter.jsp?fileName=nameOfFileToDownload                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Download PAR file from portal or Service marketplace

    Hi,
    Can you tell me that how we can download the par file from portal 7.3 or from marketplace.
    give me the path also.
    Regards,
    Shashank

    Hi
    Please check the process :
    http://scn.sap.com/community/netweaver-portal/blog/2012/05/10/customizing-logon-page-on-portal-73

  • Why can't I download file from any websites?

    Whenever I try to download files from filesharing sites like mediafire, I click the download button and the page appears to be loading and nothing happens.
    After several tries, I found out that while the page is loading, it is actually downloading the file because the time it takes for the page to load before the "open" or "save file" windows come out depends on the size of the file. And immediately after I click "save file" the download is done, and I can open whatever I downloaded. The time ranges between 5min to 30min depending on the file size.
    Usually the "save file" window will display immediately when I click on the download button, the the fire fox download window will show the progress of the download and % of completion. But no, for me nothing appears in the download window, and I don't get to see the progress of my download until it is apparently "completed" after the webpage finished loading.
    I have tried every solution that I know, cleaning my browser history and cookies, resetting firefox, clearing up my computer's registry, even did a clean reinstall of firefox, wiping everything including my bookmarks, but none of these solves the problem. I am also pretty sure that my firefox extension are not the ones to blame as I did do a test download after a clean reinstall, which did not work as well.

    My problem is fixed after I set the firefox connection settings from "use system proxy setting" to "no proxy". After setting to no proxy, the downloads happens as it should.
    but my question now is what is system proxy? and what is the difference between using these 2 different options?

  • I just got a new Imac, and downloaded files from my old PC. Now, when I go to Finder, I have 1500 files in an area called developer. What is this, and can they be deleted? There are also 78 files listed as Other!  Most of these files I do not recognize.

    I just got a new IMac, and tried to download files from my old PC. When I go to,Finder, I have 1500 files under Developer, an 78 files under Other.
    Most of these files I do not recognize. Can they be trashed? Why did they transfer? I used a flash drive for the transfer. Also, is there a way to transfer my older email files to this new computer?
    Thanks for any and all help, I really need it.
    Tom

    Did you use the Migration Assistant to help set up the new iMac using some of the files in the older PC? Some likely won't mean much, unless you have applications that can use or convert them. There's also a way to use the software Time Machine to import data files from an external or another computer, so you may have used that, too.
    Hopefully someone with experience in a similar issue will reply...
    Good luck & happy computing!

  • About "Upload and download files from ADF into blob type colum."

    hi
    Using JDeveloper 10.1.3.3.0 I have tried the example available for download from this blog post by Jakub Pawlowski:
    "Upload and download files from ADF into blob type colum."
    at http://kuba.zilp.pl/?id=1
    First a thank you to Jakub for this interesting example.
    I have a question about a PDF file that I uploaded using the example.
    The file has a size of 10445518 bytes.
    After I upload that file, the blob column has a value with a size of 10445516 bytes, 2 bytes less.
    SQL> select file_name, dbms_lob.getlength(stored_file) from blob_table;
    FILE_NAME
    DBMS_LOB.GETLENGTH(STORED_FILE)
    ADF-DeveloperGuide-4GL-B25947_01.pdf
                           10445516If I download that file using the example, it has the same size as the blob value, 10445516 bytes.
    If I open the downloaded file, using Adobe Reader 8.1.1, it first shows this message:
    "The file is damaged but is being repaired."
    After that, there is not problem using the PDF file in Adobe Reader.
    I have tried this with both Internet Explorer 6 and Firefox 2.0.0.11.
    I have also tried this with other (smaller) files, and those upload and download correctly.
    question:
    Why are those 2 bytes lost during upload?
    many thanks
    Jan Vervecken

    Hi!
    I can only post you my code that works for me and as I said I had same problems but can't remember what solved them. My code:
      public void fileUploaded(ValueChangeEvent event)
        FacesContext fc = FacesContext.getCurrentInstance();
        UploadedFile file = (UploadedFile) event.getNewValue();
        if (file != null && file.getLength() > 0)
          // here I have some messages written and a call to the method on AM to save the uploaded file to the DB
      private BlobDomain newBlobDomainForInputStream(InputStream in)
        throws SQLException, IOException
        BlobDomain loBlob = new BlobDomain();
        OutputStream out = loBlob.getBinaryOutputStream();
        writeInputStreamToWriter(in, out);
        in.close();
        out.close();
        return loBlob;
      private static void writeInputStreamToWriter(InputStream in,
                                                   OutputStream out)
        throws IOException
        byte[] buffer = new byte[8192];
        int charsRead = 0;
        while ((charsRead = in.read(buffer, 0, 8192)) != -1)
          out.write(buffer, 0, charsRead);
       * Launch the upload - see fileUploaded() for actual upload handling.
       * @return null navigation event - we stay on this page
      public String UploadButton_action()
        if (this.getMyInputFile().getValue() == null)
          FacesContext context = FacesContext.getCurrentInstance();
          FacesMessage message =
            new FacesMessage(FacesMessage.SEVERITY_WARN, JSFUtils.getStringFromBundle("fileupload.emptyfielderror"),
                             null);
          context.addMessage(this.getMyInputFile().getId(), message);
        return null;
       * Setter for inputFile UI Component.
       * @param inputFile inputFile UI component
      public void setMyInputFile(CoreInputFile inputFile)
        this.myInputFile = inputFile;
       * Getter for inputFile UI Component.
       * @return inputFile UI component
      public CoreInputFile getMyInputFile()
        return myInputFile;
      }fileUploaded is a valueChangeListener on inputFile and UploadButton_action is as the name says the action for upload button.
    Hope this helps. If not, than your problem is probably not the same as mine was, although the message about file corrupted was the same.
    Next thing you can check in this case is if your file exceeds max file upload size. I don't know the exact default value, but if the file is too long I think this upload logic will upload only a part of the file and save it to the DB which can also lead to the same file corrupted error.
    You can set the max upload value in web.xml like this:
    <context-param>
    <!-- Maximum memory per request (in bytes) -->
    <param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
    <!-- Use 5000K -->
    <param-value>5120000</param-value>
    </context-param>
    <context-param>
    <!-- Maximum disk space per request (in bytes) -->
    <param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
    <!-- Use 10,000K -->
    <param-value>15360000</param-value>
    </context-param>

  • DATA TRANSFER - How to get a SINGLE SPACE in the downloaded file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Hi,
    I don't know if this works:
    perform SET_TRAIL_BLANKS(saplgrap) using 'X'.  
    perform SET_FIXLEN(saplgrap) using '0' '060'.   "put length of your line from-to
    ... download ...
    It will put space at the end of your line, according to the length.
    Hope it works,
    Chang

  • I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    Hard Drive:  The Hard Drive is on my camera (Sony Handycam)
    Just needed some info on what is going on with your particular system.
    Knowing the exact camera model will also assist us.
    If this camera is standard AVCHD you should be able to connect with USB to Mac with FCE open and use Log and Transfer without all the fiddling around converting etc.
    What FCE does during ingest is convert files to AIC. (Apple Intermediate Codec)
    FCE cannot read the individual files in the BDMV folder, that's why all the converting is required when you use that method.
    BTW: regards formatting drives/cards/memory on cameras; it is wise to use the actual device to format rather than a computer. This is a prime cause of read/write goof ups with solid state media. This applies to still or video cameras.
    Keeping the COMPLETE card/memory structure in tact is vital for successful transfers.
    Try here for some trouble shooting tips:
    https://discussions.apple.com/message/12682263#12682263
    Al

  • Can't download file from any browser and download manager

    i confused wit my MBP, becaus MBP can't download file from internet ( via USB modem & Wi-fi)..
    can you help me to fix it ??
    i use iGetter, and it not responding to download, safari too..

    I was able to download the trial from rarlab.com. What happens when you click on a download? You need to make sure you select to download the Mac version. The .exe files do not run on a Mac.
    BTW, you might want to check out GUI Tar  https://www.macupdate.com/app/mac/14503/gui-tar
    The other two sites also work for me. What exactly happens when you click on a link to download? Do you know how to find your downloads?
    How to download YouTube videos using Safari or Firefox
    6 Different Ways to Download Videos from YouTube to your Mac

  • Where can i get an example of Viewing wap, downloading files from wap site?

    as we know, almost every simulator has this function. now i wanna write the same function via MIDP, how?
    And, anyone know nextel i730, it's very weird that it cannot download file from the wap site but other phones can do it from the same site.
    any help would be appreciated.

    WAP = HTTP. Just open a http page in midp and read the data. Displaying WAP in MIDP is another thing, since it does not have facilities for that. Why should it anyway? All phones that hava java, already have a W(AP/EB) browser.

  • Seeks algorithms for downloading file from WWW

    I have a big question for how many different ways for me to download file from WWW.
    Can someone list those methods and the "Java offical" classes/libraries that needed?
    Also which is the BEST and most EFFICIENCY?
    Here are some methods:
    1a. Download from html [bytes by bytes]
    - Create a connection to the url (use Url)
    - While not EOF
    - Read the file (use BufferedReader)
    - Write to another file (use BufferedWriter)
    - Close all connection
    1b. Download from html [line by line]
    - Create a connection to the url (use Url)
    - While not EOF
    - Read the file line by line (use BufferedReader)
    - Write to another file (use FileWriter)
    - Close all connection
    Can someone tell me which class I can use to monitor the connection? (i.e. the file size, connection speed, time required, size downloaded, etc)
    Can someone tell me how I can compress the data before downloading it from the web just like those download managers?
    Can someone tell me how I can divide the file as those download managers do?
    Thx

    I have a big question for how many different ways for
    me to download file from WWW.
    Can someone list those methods and the "Java offical"
    classes/libraries that needed? Most of your questions are answered in the Custom Networking tutorial, in particular this page here:
    http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
    Also which is the BEST and most EFFICIENCY?It depends on a lot of things, particularly on the speed of your network connection.
    Can someone tell me which class I can use to monitor
    the connection? (i.e. the file size, connection speed,
    time required, size downloaded, etc)There's a tutorial about input and output there too.
    Can someone tell me how I can compress the data before
    downloading it from the web just like those download
    managers?You can't do anything to the file before it gets to your side of the connection. You must be mistaken about the capabilities of those download managers.
    Can someone tell me how I can divide the file as those
    download managers do?Not me.

  • I can't download files from my friends

    When trying to download files from my friend. All it says on the file is that it is waiting or I can cancel. Can someone help me figure out why?

    Hi,
    What exactly are you trying to copy from your iPad to your PC?
    Regards,
    Steve

  • Cannot download files from filesonic

    I cannon download a file from Filesonic using the "slow download" button. Normally when in click on the the "slow download" it take me to screen where I have to wait 30 seconds. With the latest upgrade this no longer happens.

    That sounds odd...
    Any error messages? What happens when you try to download an item? Have you tried downloading to a specific, non-desktop, folder?

  • [HELP] Download file from FTP server

    hi,
    I want to write a java program that can download and upload files from ftp server. Currently I only manage to upload a file to ftp server but i cant download file from ftp server. Here is the source code that only allow user to upload file. Anyone can give me some guidelines so that my program can download and also upload file? thx.
    import java.io.*;
    import java.net.*;
    public class FTPUpload {
    private static final int CTRLPORT = 21;
    private static Socket ctrlSocket;
    private static PrintWriter ctrlOutput;
    private static BufferedReader ctrlInput;
    private static byte[] localHostAddress;
    public final static String DIR = "C:\\zip\\";
    public static void main(String[] args) {
    try {
    String host = "192.168.1.1";
    String loginName = "testuser";
    String password = "password";
    String dirName = "/home/testuser";
    String fileName = "hello.zip";
    ctrlSocket = new Socket(host, CTRLPORT);
    localHostAddress = ctrlSocket.getLocalAddress().getAddress();
    ctrlOutput = new PrintWriter(ctrlSocket.getOutputStream());
    ctrlInput = new BufferedReader(new InputStreamReader(ctrlSocket.getInputStream()));
    ctrlOutput.println("USER " + loginName);
    ctrlOutput.flush();
    ctrlOutput.println("PASS " + password);
    ctrlOutput.flush();
    ctrlOutput.println("CWD " + dirName);
    ctrlOutput.flush();
    ctrlOutput.println("TYPE I");
    ctrlOutput.flush();
    FileInputStream fis = new FileInputStream(DIR + fileName);
    Socket dataSocket = dataConnection("STOR " + fileName);
    OutputStream outstr = dataSocket.getOutputStream();
    int n;
    byte[] buff = new byte[1024];
    while ((n = fis.read(buff)) > 0) {
    outstr.write(buff,0,n);
    dataSocket.close();
    fis.close();
    ctrlOutput.close();
    ctrlInput.close();
    ctrlSocket.close();
    }catch (Exception e) {
    e.printStackTrace();
    private static Socket dataConnection(String ctrlcmd)
    throws IOException,UnknownHostException {
    String cmd = "PORT ";
    ServerSocket serverDataSocket = new ServerSocket(0,1);
    for (int i=0;i<4;i++) {
    cmd = cmd + (localHostAddress[i] & 0xff) + ",";
    cmd = cmd + (((serverDataSocket.getLocalPort())/256) & 0xff)
    + ","
    + (serverDataSocket.getLocalPort() & 0xff);
    ctrlOutput.println(cmd);
    ctrlOutput.flush();
    ctrlOutput.println(ctrlcmd);
    ctrlOutput.flush();
    Socket dataSocket = serverDataSocket.accept();
    serverDataSocket.close();
    return dataSocket;
    }

    Or just use a java.net.URL("ftp://...) ..., get its input stream, and away you go ...

Maybe you are looking for

  • Diff b/n CreateStatement and PreparedStatement

    Difference Between CreateStatement and PrepareStatement Which one is Better Performance and why?

  • Sync ipod 3rd to new imac without loosing apps

    I have an ipod 3rd generation and we just went from an old G4 with OS 10.4.11 to a new imac with 10.6.8 OS.  I would like to transfer all of my apps from the old computer to the new one.  Anyone have any ideas?  I tried to copy the old itunes to the

  • /usr/lib/lwp in Solaris 8

    Okay, I have seen earlier posts that suggests to put /usr/lib/lwp in front of your LD_LIBRARY_PATH for Solaris 8 and for JDK 1.3.1. A lot have said that increased the performance by 10 to 20%. From what I can see, this will effectively use libthread.

  • Building a responsive form

    dear team, am trying to build a responsive form in fluid grid but I can't. Here's the link to what I've done http://www.paragonmagazine.com/fluid/firstpage.php please view in a mobile device and give me your advice. Thank you

  • Missing device data

    Device data missed but device register data is still there, how can I recover the device? (re-install the same device) Thank you.