Downloading netweaverlibraries problem

Hi,
I am trying to modify the old webdynpro applications (developed in the NDS 2.0 and EP 6.0), in the NDS 70 and EP 70, when I uploaded my project, I am getting classpath errors and netweaverlibraries missing error.
I tried to search for the JavaDevelopment role in the portal 7.0 to add to my user and to download the netweaverlibraries file, therefore I can add it to the Libraries in the NDS.
The problem is, I cant find the JavaDevelopment role in the portal. Is there any otherway that I can download netweaverlibraries file from anywhere.
Please let me any work-around.
Thanks,
Raj.

Hey Raj,
You will get some .sca files after downloading the PDK.
You need to use the SDM to deploy it to the portal.
You need admin access to the SDM tool on the box which your portal is installed on. Once deployed, you will see in the web dynpro content admin on the portal all the tutorial apps have been deployed. Then you will also see the JavaDev role under user admin.
Tony.

Similar Messages

  • Hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?

    hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?
    ta

    You're welocme
    Depending on the size of the app or the connection speed when using Wi-Fi it could take a little longer to download. You can also try to download it onto your computer, might be faster, and sync it to the phone after that.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I have about 80,000 photos on my Mac. I wanted to use icloud.  I needed to download the newer version so, for 14.99 I downloaded.  Problem is, now I have lost my photos! I tried 3x to but it always stops working.  HELP!

    I have about 80,000 photos on my Mac. I wanted to use icloud.  I needed to download the newer version so, for 14.99 I downloaded.  Problem is, now I have lost my photos! I tried 3x to but it always stops working.  HELP!

    What version of iPhoto did you have before upgrading to Mavericks and iPhoto 9.5?
    OT

  • How I resolved my Apple TV download speed problems

    I have been experiencing download speed problems with my Apple TV2 for a while. The performance was so bad that I couldn't buy or rent movies from Apple TV, because it would take hours to even start the download. I wasn't sure if the problem was with my ISP (Comcast), the modem, or the wireless router.
    I just logged in to my wireless router (Cisco Linksys E300) and changed the following two settings:
    Network Mode = Wireless-N Only
    Channel Width = 20 Mhz Only
    After restarting my Apple TV2, movie streaming is now perfect. It took less than one minute to start the streaming of a recently purchased movie.
    I recalled reading some time ago that a Network Mode which allows switching between B, G and N wireless modes can cause problems with streaming. Perhaps each time switching occurs, the Apple TV has to renegotiate with the iTunes Store. I'm not sure that the "Channel Width" setting is necessary or relevant, but since I'm happily streaming again, I don't really care.
    I hope that this helps others resolve this problem.

    If you have home sharing enabled on the Apple TV and an IOS running on the same network you can use the remote app. Otherwise, you will need to purchase a new remote.

  • Tried bit alas did not help. It's too much of a coincidence that I got download then problem immediately after.Still think its Apples fault.Only about 4 of every 10 e mails affected!!!!!

    Tried  bit alas did not help. It's too much of a coincidence that I got  download then problem immediately after.Still think its Apples  fault.Only about 4of every 10 e mails affected!!!!!

    I'd suggest you follow up in the thread you started in regards to the problem rather than starting new topics:
    https://discussions.apple.com/message/24982409#24982409
    If you start a new topic part way through discussing an issue, people don't know what you're referring to. It's also consider impolite to post all in caps in Internet forums, as using caps is considered to be shouting.
    Regards.

  • Download doc problem when copied from APEX_APPLICATION_FILES to local table

    Good morning!
    As the subject indicatesm, I am experiencing problems downloading a document I have copied from APEX_APPLICATION_FILES to my local table FILE_SUBJECTS
    and would be very grateful if someone could help.
    Here is the problem:
    I can successfully upload a document into APEX_APPLICATION_FILES and dowload it from there too.
    I can copy the record from APEX_APPLICATION_FILES into my local table FILE_SUBJECTS and delete that entry from APEX_APPLICATION_FILES but I cannot download it from my local table, it keeps pointing me to a page which cannot be found, so I'm guessing there is something wrong with either, my INSERT INTO statement or, my link in the report.
    My INSERT INTO statement is:
    INSERT INTO file_subjects (id,filename,updated_by,updated_on,blob_content,mime_type)
    SELECT id, filename, name, updated_by, updated_on,blob_content,mime_type
    FROM APEX_APPLICATION_FILES
    WHERE APEX_APPLICATION_FILES.filename = :P2_FILE_NAME;
    REPORT LINK
    I have tried just a normal column link in my report like: #ID# (this works when looking at APEX_APPLICATION_FILES)
    but I have also tried the following:
    #OWNER#.DOWNLOAD_MY_FILE?p_file=#ID#
    where download_my_file is a procedure:
    create or replace PROCEDURE "DOWNLOAD_MY_FILE" (p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --apex_application.g_flow_id := 166;
    --if not(APEX_CUSTOM_AUTH.IS_SESSION_VALID) then
    -- owa_util.status_line(404, 'Page Not Found', true);
    -- return;
    --end if;
    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;
    -- 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 a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end DOWNLOAD_MY_FILE;
    Many thanks in advance!
    Sue

    Sue,
    If you are running XE or running with the EPG versus the http server, you need to grant access to the procedure you are using for it to be run properly..
    You may need to look at this function, if you are using XE or have the EPG setup for your database.. http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e12856/adm_wrkspc.htm#BABEFDHI [Look for the section called *Restricting Access to Oracle Application Express by Database Access Descriptor (DAD)*]
    Thank you,
    Tony Miller
    Webster, TX

  • File Download - new Problem

    Hi java guru's
    I'm trying to write a download pgm using servlet and JSP. The actual problem is, when i'm trying to download a file, the output stream writes all the comtent of the file on the browser itself even if it's a .exe file instead of opening a "Save as" dialog box
    Can you guru's suggest me a best way to overcome this problem!
    Thanks in advance

    Hello friends,
    We can download any files in two ways
    1. calling java script function
    2. read/write operation(io).
    Both codes are working fine. try it and if u face any problem.Please let me know,
    Friendly,
    Jawahar
    bangalore. India
    [email protected]
    =================================
    java script code
    ==============================
    <%
    <!-- file relative path is here -->
    String path ="/jsp/xxx.xls";
    <!-- file name is here -->
    String fileName="xxx.xls";
    %>
    <html>
    <head>
    <title>Down load forms</title>
    </head>
    <body onLoad="window.open('<%=path%>');">
    <table border="0" align="center" width="100%">
    <tr><td height="181"><font face="verdana" color="#5599cc" size="2" align="center">you have selected the file <%=fileName%</font> </td></tr> </table></body></html>
    ==========================================
    Read/write IO operation is here
    ==========================================
    <%
    String files = null;
    String fileName=null;
    <!-- file path is here -->
    String file=".... any path";
    File f = new File(file);
    FileInputStream in = new FileInputStream(f);
    int length = (int)f.length();
    if(length != 0)
    byte[] buf = new byte[length];
    ServletOutputStream op = response.getOutputStream();     
    response.setContentType ("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\""+fileName+"\"");
    while ((in != null) && ((length = in.read(buf)) != -1))
    System.out.println("BUFFER $"+buf.length+"$");
    System.out.println("Bytes read in: " + Integer.toString(length));
    op.write(buf,0, buf.length);
    op.close();
    %>     
    <%@ page import="java.io.*,javax.servlet.*,java.util.*,java.sql.* " contentType="text/html" %>
    <html>
    <head>
    <title>Welcome to the download form page</title>
    </head>
    <body bgcolor=#FFFFFF>
    ==========================================

  • Podcasts in both iPhone and iPad will play for a minute and then reset back to the beginning, can only stream, cannot download - no problem on PC laptop with exact same Podcasts with exact same internet set up.  What is the fix?

    This is incredibly frustrating - we had a IPhone 4s that had no problems here for about 7 monts.  We have a new IPhone 4s and recently a new IPad 2.  Ever since the mandatory switch to using the Podcasts App for iOS based products (my PC laptop works fine), the podcasts will say "cannot be downloaded at this time" and will stream for 30 seconds to a few minutes, then abruptly start over at the beginning. We cannot fast forward ahead properly in the new clunky interface, and the secondary screen where you get to see the "tape player" going through podcast does not skip when you move the timer icon anywhere in the podcast.  It is though they are running in parallel.
    We are talking podcasts by the BBC, NPR, etc and the Lenovo doesn't have any issues bc the whole system is inside ITunes.
    I have looked all over the internet and cannot find a fix, please help.

    Hi jhyiesla,
    Im not sure wether I got you right or not. But my advice/s would be as follows:
    These steps help you get rid of old apps you downloaded years ago and you do not use anymore.(Also frees space on your mac after emptying the trash)
    1) go to iTunes and delete all applications in it. Make sure to move them to trash! Do not empty your trash yet. Its your backup if step 3 doesnt appear.
    2) connect both your devices(one after each other) and make a backup. !!!Dont press the Sync button, press the Back Up Now Button
    3) Then it asks you if you want to backup applications as well. Confirm. (This is how apps get transferred manually)
    4) Then Sync your devices... The first time it might be, that there are some additional apps loaded to your devices you dont want to.. delete them on your Device (not iTunes) and after that you should be good every time you sync again.
    5) now you can empty your trash on your mac.
    Further,
    - You should regularly connect your devices with iTunes to make sure they are backed up. (Even if you have activated iCloud backup, the iTunes backup is more proper i.e.. Apps)
    - If you hate scrolling through a list of apps in iTunes, you can re/install apps directly on iOS not via iTunes. I absolutely never go to the "Applications" section in iTunes. I install and delete apps directly on iOS.
    jl

  • BSP File Download  - .TIF problems

    Dear all!
    I haven't been able to fix this problem,
    please see my post for further information. I am using SAP.help coding to display files in BSPs (6.20, "BSP with flow logic" pages used). See the coding below.
    Somehow .tif files can not be displayed. Every other mime type works fine.
    Thanks,
    Chris
    Dear all!
    In a quite complex file upload and download scenario which works fine we use the following coding to display files received from the backend in our page.
    OnInitialization: receives file backend data such as filesize, content(xstring) and mimetype.
    This works all fine. Mimetype is delivered correctly.
    OnInputProcessing:
    This has been taken from the help.sap.com documentation -
        runtime->server->response->set_data( mycontent ).
          runtime->server->response->set_header_field(
            name   = 'Content-Disposition'
            value = lv_downname ).
        runtime->server->response->set_header_field( name  = 'Content-Type' value = mymimetype ).
        runtime->server->response->set_header_field( name  = 'Content-Length' value = myfilesize ).
        runtime->server->response->delete_header_field( name = 'Cache-Control' ).
        runtime->server->response->delete_header_field( name = 'Expires' ).
        navigation->response_complete( ).
    RESULT:
    the file is displayed fine. When trying to save the displayed file locally on the hard disc, the mimetype is not available. The system (Windows XP) provides only .bmp as file type. Also the context menu entry "Properties" of the displayed file shows NOT AVAILABLE as mimetype.
    Is this a common problem? How can I achieve to have the mimetype information available for a save?
    Thankx,
    Christoph
    Message was edited by: Christoph Aschauer
    Message was edited by: Christoph Aschauer
    Message was edited by: Christoph Aschauer
    Message was edited by: Christoph Aschauer

    Hi,
    I am getting an error, when I try to download the document from the bsp-page.
    I have uploaded the document to the server-cache as mentioned above. If I test it on the standalone machine, everything works fine. But when I have to connect to the BSP-Application through an EP I am getting the error:
    BSP Exception: Das Objekt test.doc in der URL /sap(bD1kZSZjPTEwMCZwPTM1MjUwJnY9NiUyZTQmaT0xJnM9U0lEJTNhQU5PTiUzYWR0aXRtZXpfVE1FXzA3JTNhLUVVb2Y3MHRUN2JnMGFYMUNLeUVPakRRWmZBTTJVVE5aS21Lc0FRQi1BVFQ=)/bc/bsp/sap/zportal_rueckme/test.doc?sap-syscmd=nocookie ist nicht gültig.
    Test.doc is the name of the document I wish to download.
    Here comes the sample code.
      DATA: cached_response TYPE REF TO if_http_response.
      CREATE OBJECT cached_response
        TYPE
          CL_HTTP_RESPONSE
        EXPORTING
          add_c_msg        = 1.
      cached_response->set_data( l_document_x ). " l_document_x is a xstring
      cached_response->set_header_field( name  =   
                                        if_http_header_fields=>content_type
                                                              value = l_mime_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 180 ).
      CONCATENATE
                  RUNTIME->application_url
                  '/' l_file_name INTO e_url.
        cl_http_server=>server_cache_upload( url      = e_url
                                             response = cached_response ).
    Later I navigate to that URL:
            NAVIGATION->GOTO_PAGE( URL = e_url ).
    Any suggestions are appreaciated!
    Regards,
    Max

  • Need urgent help on file download servlet problem in Internet Explore

    I have trouble to make my download servlet work in Internet Explore. I have gone through all the previous postings and done some research on the internet, but still can't figure out the solution. <br>
    I have a jsp page called "download.jsp" which contains a URL to download a file from the server, and I wrote a servlet (called DownloadServlet) to look up the corresponding file from the database based on the URL and write the file to the HTTP output to send it back to the browser. <br>
    the URL in download.jsp is coded like <a href="/download/<%= currentDoc.doc_id %>/<%= currentDoc.name %>">on the browser, it will be sth like , the number 87 is my internal unique number for a file, and "myfile.doc" is the real document name. <br>
    in my web.xml, "/download/" is mapped to DownloadServlet <br>
    the downloadServlet.java looks like
    tem_name = ... //read DB for file name
    // set content type
    if ( tmp_name.endsWith(".doc")) {
    response.setContentType("application/msword");
    else if ( tmp_name.endsWith(".pdf")){
    response.setContentType("application/pdf");
    else if ( tmp_name.endsWith(".ppt")){
    response.setContentType("application/vnd.ms-powerpoint");
    else if ( tmp_name.endsWith(".xls")){
    response.setContentType("application/vnd.ms-excel");
    else {
    response.setContentType("application/download");
    // set HTTP header
    response.setHeader("Content-Disposition",
    "attachment; filename=\""+tmp_name+"\"");
    OutputStream os = response.getOutputStream();
    //read local file and write back to browser
    int i;
    while ((i = is.read()) != -1) {
    os.write (i);
    os.flush();
    Everything works fine in Netscape 7.0, when I click on the link, Netscape prompts me to choose "open using Word" or "save this file to disk". That's exactly the behavior I want. <br>
    However in IE 5.50, the behavior is VERY STRANGE.
    First, when I click on the URL, the popup window asks me to "open the file from its current location" or "save the file to disk". It also says "You have chosen to download a file from this location, ...(some url).. from localhost"
    (1) If I choose "save the file to disk", it will save the rendered "download.jsp" (ie, the currect page with URL I just clicked, which isn't what I want).
    (2)But if I choose "open the file from its current location", the 2nd popup window replaces the 1st, which also has the "Open ..." and "Save.." options, but it says "You have chosen to download a file from this location, MYFILE.doc from localhost". (notice it shows the correct file name now)
    (3) If I choose "Save..." on the 2nd window, IE will save the correct file which is "myfile.doc"; if I choose "Open ...", a 3rd replaces the 2nd window, and they look the same, and when I choose "Open..." on the 3rd window, IE will use Word to open it.
    any ideas?
    </a>

    Did you find a solution to this problem? I've been wrestling with the same issues for the past six months. Nothing I try seems to work. I've tried setting the contentLength(), inline vs. attachments, different write algorythms, etc. I don't get the suggestion to rename the servlet to a pdf file.

  • Download file problem for binary data?

    Dear All,
    I have wrote a jsp file to do download page. I have used a piece of code from the JDC to this. This code will prompt the download dialog box each time user clicks the download button. The code itself will set the content type for different application. The code is like below:
    try
    java.io.File fileobj = new java.io.File(strFolder + strFile);
    response.setContentType(application.getMimeType(fileobj.getName()));
    response.setHeader("Content-Disposition","attachment; filename=\""
    + strFile + "\"");
    java.io.FileInputStream in = new java.io.FileInputStream(fileobj);
    int ch;
    while ((ch = in.read()) != -1) {
    out.write(ch);
    out.flush();
    in.close();
    } catch(Exception e)
    The code can download and handle text file correctly when it is openned in the text editor or inside the IE. But when a PDF file or Image is downloaded and openned in the PDF viewer or image viewer, it is corrupted and cannot be viewed. What is the problem? Any ideas?
    So, I wonder this code can handle binary data or not. It is seen like there is no different code to handle text and binary data in Java/Jsp.
    Thank you very much!
    Best Regards,
    Rockyu Lee
              

    Add following lines to .tld file (custom tag definition)
    <tag>
    <name>downloadbinary</name>
    <tagclass>org.rampally.DownloadBinaryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    Add following line to JSP files.
    In JSP, keep one line of source. Make sure that there are no space and additional line feeds at the any where
    in the JSP files except JSP tags.
    <%@ taglib uri="/WEB-INF/taglibs/mb.tld" prefix="mytags" %>
    <mytags:downloadbinary />
    I am hoping that you have all required parameters such as fileName to download, etc.
    in your session or request object.
    Tag class ....
    public class DownloadBinaryTag extends TagSupport {
         public int doEndTag() throws JspException {
              // TODO: get binary data from filename or
              // binary data buffer from datase.
              // I am making it simple .. assume that it is a request parameter for
              // you test easily.
              String fileName = request.getParameter( "filename" );
              java.io.File file = new java.io.File( fileName);
              java.io.DataInputStream dis;
              try {
                   dis = new java.io.DataInputStream(new FileInputStream(fileName));
              } catch (FileNotFoundException e) {
                   // do error handling ...
                   return EVAL_PAGE;
              BinaryUtil.sendBinaryFile( dis, (HttpServletResponse) pageContext.getResponse(), contentType );
              return EVAL_PAGE;
    public class BinaryUtil
         static public void sendBinaryFile( DataInputStream dis,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   int len;
                   byte[] data = new byte[128 * 1024];
                   while ((len = dis.read(data, 0, 128 * 1024)) >= 0)
                        sout.write(data, 0, len);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
         static public void sendBinaryFile( byte[] data,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   sout.write(data);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
    You may have to change 'inline' to 'attachment' if you do not want IE to inline the document.
    That's all!!.. Hope this helps...!

  • File Download - 403 problem

    Hi Folks,
    From long time away from here, I am back.
    In my application we are using only ADF Faces. There is a functionality in my application to download some files that have been previously uploaded by any user.
    The problem is that the file is not written in a file system. It is inside database.
    When the user clicks the download button from an af:table, it starts a method from a backing bean that goes to the database and gets the binary code from there.
    It writes the binary array in the response output but since the download has not started by the user the IE 7 and 8 shows the information bar stating that Internet Explorer has blocked this site from download...
    I have read that it is a default behaviour from IE7 and 8 when the user does not click in a link directly pointed to a file in a server.
    I tried to put the site in Trusted Sites.
    The only solution that I found was to enable "Always prompt for downloading". It works but I cannot use this solution since the application is going to run in a big Brazil TV Channel company throughout the country and change it is very difficult.
    I so that the difference between the REQUEST HEADERS is the Transfering-Enconding chunked, but it is related to content-lenght, when it is not specified. I tried to specify content-lenght and it did not work.
    When I click the bar and choose download file option, it redirects to the same page that I was, changing the afrSOMETHINGMode from 0 to 2 and adding the afrWindow to null.
    It gets me a 302, another two other GETs are done witouht success to the context root and at the last one I get the 403.
    Does any body have any light?
    Thanks in advance.

    Hi Mr. Puthanampatti,
    I used your above code for a download button.
    When I click the button the window will arise and we can download the file.
    But after that the button will not become enable.
    Normally when the task is over the button will automatically enabled. Butt here it is not happening and we can click the button only one time without refreshing the page.
    (I assumed you have used res for HttpServletResponse)
    the code I had used is mentioned below. Please tell me what can I do...??
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)externalContext.getResponse();
    File file = new File(dir1, pdffile1);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try {
    input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
    response.reset();
    response.setContentType("application/pdf");
    response.setContentLength((int)file.length());
    response.setHeader("Content-disposition", "inline; filename=\"" + pdffile1 + "\"");
    output = new BufferedOutputStream(response.getOutputStream(), 10240);
    byte[] buffer = new byte[10240];
    int length;
    while ((length = input.read(buffer)) > 0) {
    output.write(buffer, 0, length);
    output.flush();
    } finally {
    close(output);
    close(input);
    facesContext.responseComplete();Thanks a lot.
    Dinuka.

  • Download link problem

    Hi,
    I am using apex 4.1. I have a report item where a file path(Eg.     *\\172.18.19.182\Case Studies Reoriented\MDM\Telenor_MDM_CaseStudy.pdf*) is stored. I build a report where this item is shown as a link in if I click on it, the file should be downloaded.
    But the link is not generating as I am expecting, it is generating as (*http://172.18.41.50:8080/apex/p?n=\\172.18.19.182\Case%20Studies%20Reoriented\MDM\Telenor_MDM_CaseStudy.pdf*) and as a result I cant download it. Please help me.
    Regards,
    Kaushik

    Hi Kaushik,
    Please let me know what the current link properties in your report are since that's where the problem and the solution are.
    If I generate a report with query :
    select 'www.google.com' as SITE from dual;
    And I set the column SITE as column link and as link address #SITE# I get the same problem you are experiencing ( the generated url is http://apexsite/apex/www.google.com )
    Using the exact same report with a slightly different query it works great
    select 'http://www.google.com' as SITE from dual;
    If your URL's are in a table/column and you don't want to change them to http:// format you can also change the column link to :
    http://#SITE#
    regards
    Bas

  • Flex 3 download file problem

    Hi,
    My Flex 3 app uses a php script to download a file, it seems
    like it works with the file appearing on the desktop but the file
    is only 1 byte long. The php and Flex are running on Leopard,
    here's the php (I think it's from some Adobe sample code), any help
    appreciated.
    $query = "SELECT * FROM uploads WHERE upload_id = $id";
    $result = mysql_query($query, $conn);
    if(mysql_num_rows($result))
    $row = mysql_fetch_assoc($result);
    $fn = $row["upload_filename"];
    $ft = $row["upload_filetype"];
    $fs = $row["upload_filesize"];
    $the_file = '../../uploads/' . $id;
    header("Content-Type:$ft\n");
    header("Content-disposition:
    attachment;filename=\"$fn\"\n");
    header("Content-Length: $fs\n");
    readfile($the_file);
    Thanks,
    Paul

    Sorry, guys...
    Don't you hate it when just after you post a question you
    discover a stupid mistake. Found the problem - dumb typo.
    Paul

  • Vsftpd and large downloads - cache problem

    Today I have raised vsftpd to transfer a lot of files (~30 GB) to my friend's machine. At start all was ok - full download speed was 2 MB/s, and iotop showed these MB's read from FS. When about 4 GB where downloaded  from me, strange things happened. Despite config file (max_clients and max_per_ip were 10, friend was using 10 simulateonous connections in filezilla), many following messages appeared in log (xxx.xxx.xxx.xxx - friend's address):
    Tue Aug 24 16:30:05 2010 [pid 2] CONNECT: Client "xxx.xxx.xxx.xxx", "Connection refused: too many sessions."
    Also the speed felt dramatically - at start there was ~220 KB/s per connection, now lower than 10 KB/s. iotop shows only eventual 124 KB reads from vsftpd. Cache filled all my memory (600 MB data - it's running KDE4 plus some documents and Opera opened):
    $ free -m
    total used free shared buffers cached
    Mem: 3862 3806 55 0 441 2766
    -/+ buffers/cache: 599 3263
    Swap: 2047 0 2047
    Also responsiveness of system changed strangely - operations with disk are as fast as usual, but with RAM became much slower. E.g., I use pacman-cage, and now pacman -Syu works many times slower. I know that reboot would take away this problem, but it's only partial solution.
    Is it the intended caching behavior? (IMO, it's rather not)
    How can be I/O optimized to not to overload cache?
    P.S. My vsftpd.conf:
    listen=YES
    # User access parameters
    anonymous_enable=YES
    anon_upload_enable=NO
    local_enable=YES
    write_enable=NO
    download_enable=YES
    connect_from_port_20=YES
    # Userlist
    #userlist_deny=NO
    userlist_enable=NO
    #userlist_file=/etc/vsftpd/vsftpd_users
    force_dot_files=YES
    hide_ids=YES
    deny_file={lost+found}
    ls_recurse_enable=YES
    local_umask=026
    ascii_download_enable=NO
    # Limits
    max_clients=10
    max_per_ip=10
    #connect_timeout=60
    data_connection_timeout=3000
    idle_session_timeout=6000
    # Messages
    dirlist_enable=YES
    dirmessage_enable=YES
    ftpd_banner=Welcome to Stonehenge-III FTP archive
    # Encryption
    ssl_enable=NO
    allow_anon_ssl=NO
    force_local_data_ssl=NO
    force_local_logins_ssl=NO
    ssl_tlsv1=YES
    ssl_sslv2=NO
    ssl_sslv3=NO
    rsa_cert_file=/etc/vsftpd/vsftpd.pem
    pam_service_name=vsftpd
    # Chroot everyone
    chroot_local_user=YES
    passwd_chroot_enable=YES
    chroot_list_enable=NO
    #local_root=/srv/ftp/
    # Logging
    xferlog_enable=YES
    P.P.S. Tried to find appropriate forum. If I was wrong, please move it to a better one.

    since your on a fast network, lower your timeout values, they are much too high, also, increase your connections to 15, but tell your friend to only download using 10 or lower connections.
    are the files downloaded small (many files) or large ones. check /var/log/everything.log for related error messages, e.g, I/O, file descriptors.

Maybe you are looking for

  • Internet connects, but doesn't work properly

    I know there are a lot of topics on this, but mine is pretty specific. I'm using a Macbook I bought last August (Model Identifier MacBook4,1) and running OS 10.5.6 (I can't update to 10.5.7 because I`m having trouble connecting. Recently I noticed a

  • Problem in account payment program

    Hi guru's after giving rundate and idetification paramenter , after selecting schedule proposal the msg is comming like dis payment proposal could not be carried out.... give me solution

  • Create a New Login for Developer Support in Azure Portal

    I'm a developer supporting a client using Azure.  Can they create an account for me to manage endpoints etc. in Azure?  Or do I have to ask them for their admin login credentials. Thanks

  • Can't print from my photoshop elements 10

    I can't print to my Epson R3000 printer from the Photoshop Elements 10 I have installed on a Mac OS 1.7.5

  • Spotify on Lumia 1020 (Denim) extremely slow and buggy

    Hi, Does anyone have the same problem and got rid of it? I just got the Lumia 1020 with the Denim Update (previously Samsung Galaxy S4) and it is so slowly - it needs 20-30 seconds to open the app. Moreover, changing between Playlists needs more time