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

Similar Messages

  • Extremely slow file downloads from the 'net (Pavilion G5460uk)

    We have an HP Pavilion G5460uk desktop with Windows 7 (64-bit) updated to SP1 and current, and use IE10 and Chrome. Protection is by Norton360 supported with Spywareblaster and Spybot S&D, and also access to Norton 'Eraser', ESET scanner and Sophos virus remover.  The PC is ethernet-cabled into the router but with also use other laptops etc wirelessly (all all these are working fine, with the same antivirus setup etc, without the problems we have on the HP desktop).
    Performance on the internet seems fine EXCEPT that the desktop is now extremely slow at downloading any files (to the point that it is timed-out on the servers).  It is impossible to download anything large onto it directly from the 'net(we are using the other PC's to transfer files) - although MS updates seem to get on OK. 
    We tried HP 'Support Assistant' which recommends two updates: Ralink Wireless Network Controller (sp58084) & 802.11n WLAN (sp60924) updates.  Of course we cannot download these directly but it is unclear whether these are relevant to the problem anyway.
    It does not appear to be a network/internet, software currency or virus issue.  Some setting somewhere?  Please can someone advise on what now needs to be done.
    This question was solved.
    View Solution.

    Matter now resolved!   We thought that we had covered everything before bringing it here.  But just one dodgy router port connection is all it takes.  Thanks for your time.

  • Multiple file download issues

    Hi All,
    I have designed an APEX application to download multiple files. I have check box in each row of the file name and a download button.
    When the users checks set of checkboxes and click on the "Download" Button, i am expecting the marked files to be downloaded. I am encountering the below issues in this implementation(i.e single file download is fine):
    1. When ticks all the check boxes and click download, the files are never downloading. The target URL goes something like this :
    www.example.com/abc/bcd/wwv_flow.accept
    and there is a cross icon in the new page. No download happening.
    2. When ticks few files and leave rest of the files un-checked, there are either junk charactes in target page (or) only the last checked box file alone downloading.
    Please refer the code below and advice. Thanks very much in advance.
    Code:
    =====
    declare
    check_box_val varchar2(500):=' ';
    file_name varchar2(500):=' ';
    begin
    for i in 1..htmldb_application.g_f01.count
    loop
    check_box_val:=nvl(htmldb_application.g_f02(i),' ');
    if(check_box_val<>' ') then
    sho_pdf(check_box_val);
    end if;
    end loop;
    exception
    when others then
    null;
    end;
    sho_pdf.sql
    ========
    CREATE OR REPLACE PROCEDURE FDM_UAT14.sho_pdf(p_file in varchar2)
    AS
    l_blob BLOB;
    l_bfile BFILE;
    BEGIN
    DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
    l_bfile := BFILENAME ('UPDOWNFILES_DIR', p_file);
    DBMS_LOB.fileopen (l_bfile);
    DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB.fileclose (l_bfile);
    OWA_UTIL.mime_header ('application/octet',
    bclose_header => FALSE);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    HTP.p( 'Content-Disposition: filename="' || p_file || '"' );
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    DBMS_LOB.freetemporary (l_blob);
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    /

    I have read that "patch number 8548651" need to be applied in order to download multiple files in Single Page. Is it true? Pls refer this page :
    http://dgielis.blogspot.com/2010/01/oracle-application-express-patch-set.html
    8555172 -- BLOB download links are incorrect when multiple file items referenced on a page.

  • File Download issue of PPTX file

    Hi Everyone,
    I have a issue with my Content Server. Here is a brief description of the problem i am facing.
    I am uploading a Powerpoint file(pptx) with all pages having some animations. The file size is 5.27 MB.
    It properly checks-in the server. In the server also the size remains the same.
    But when i try to download the same file from native file link in the content server. I get the file with reduced size of 4.65MB. and in this file i see that some pages have lost the animations.
    It is using GET_FILE service to download the file.
    Please can anyone tell me wht is the problem here. it is very urgent.
    Thanks in advance.

    Yes, I am requesting for native file.
    I am using these all providers
    ServletIncomingProvider
    System Servlet Integration
    SystemDatabase
    System Database
    database
    SystemJspServer
    System Jsp Server
    jsp
    SystemServerSocket
    System Server Socket
    incoming
    SctLock
    Locking provider for SCT logging
    incoming
    JpsUserProvider
    Default JPS User Provider
    jpsuser
    DefaultFileStore
    Default File Store Provider
    FileStore
    good
    Info
    Test

  • Window 7 32 bit client machine dot net exe running in IE8 or IE9 from server security warning file download issue

    Help me in the issue, Asp dot net exe which run from server in IE 8 window 7 32 bit client machine show security file save download message. This app was running fine if we don't apply any window 7 or IE8 patches. same issue when running in
    IE9. I already run the caspol, add the server link to trusted site with low security. I wonder why it was working fine without any patches.
    I just found that client machine win 7 32 bit has dot net 4.5.1 installed when updated all the patches. after uninstall the dot net 4.5.1. the application worked fine. now I wonder what are the settings need to change to run the application with dot net 4.5.1
    installed on machine. as Microsoft always has these things in window updates. thanks in advance.

    Hi Gparhar,
    In case you are posting on .NET setup forum, I suspect it is not the right forum for your issue, we talks about "setup and deployment of .NET Framework.", if you have problem on installing and uninstalling .NET 4.5.1, we can share you some advice.
    For your specific case, I recommend you consult ASP.NET forum instead:
    http://forums.asp.net/
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Mod_osso folder protection and file download issue

    We are using 10.1.2.2 AS with SSO. I have a directory under the htdocs directory that I have specified to be protected via SSO. This part works fine.
    I have a protected directory of log files which works fine. Even a log file of 54M downloads fine.
    I have a protected DOCS folder that contains
    1 .doc file 4.9M,
    1 .doc file 78K
    1 .pdf file 2.1M
    After the user logs in via SSO, they can download the .pdf and the small .doc file, but the large .doc file gives the following error message:
    Internet Explorer cannot download largefile.doc from localhost
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
    This has also happened to me in the past with large .zip files.

    Hi!
    I had wondered whether it was the websites issue: i've since managed to get the application-my friend downloaded it onto his phone over the internet and Bluetoothed it to me, so i've got it anyway. Just a bit strange, as i transfereed the file to my Mac and it decompressed into a folder again...
    Oh well-i'm not into fiddling around so it can stay as it is! Thanks for the reply!

  • Powl File Download issue

    Hi All,
    I have a requirement of downloading data from a POWL feeder class into an ASCII format file. Within the method, GET_OBJECTS of the feeder class, I am calling the method cl_wd_runtime_services=>attach_file_to_response and passing the internal table data as below. The itab data has been converted to string format into variable lv_text.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
           EXPORTING
             text   = lv_text
           IMPORTING
             buffer = itxstring.
    CALL METHOD cl_wd_runtime_services=>attach_file_to_response
           EXPORTING
            i_filename      = 'TEST.txt'
            i_content       = itxstring
             i_mime_type     = 'NOTEPAD'
            i_in_new_window = abap_false
             i_inplace       = abap_false.
    On execution, this gives a dump 'Access using a zero object reference is not possible'.
    Does anybody have any idea of why this dump is occurring. Please let me know if there is any other way of downloading internal table data from POWL   into a file on presentation server.

    I solved this issue in my environment Apex 3.2.1
    I did not see this solution posted here so thought I should update this thread.
    It is basically the security that is preventing the call of your "download_my_file" proceedure.
    If you look in the Apache log you will see the error as well.
    There is a FUNCTION called "Wwv_Flow_Epg_Include_Mod_Local" owned by APEX_030200.
    You must edit this function to allow your own version of "download_my_file" to be authorized.
    Edit this part of the validation below to include YOUR function.
    Note that I used every possible combination of the function call in case you call it slightly differently from different places in your App.
    IN ('','DOWNLOAD_MY_FILE?P_FILE','SAFETYRISK.DOWNLOAD_MY_FILE?P_FILE','SAFETYRISK.DOWNLOAD_MY_FILE','DOWNLOAD_MY_FILE','PMO.DOWNLOAD_PMO_FILE','DOWNLOAD_PMO_FILE')
    Hope this helps.
    If nothing else I'll find my own note next time I have to look this up.
    Ray
    CREATE OR REPLACE FUNCTION APEX_030200.Wwv_Flow_Epg_Include_Mod_Local(
    procedure_name IN VARCHAR2)
    RETURN BOOLEAN
    IS
    BEGIN
    -- RETURN FALSE; -- remove this statement when you modify this function
    -- Administrator note: the procedure_name input parameter may be in the format:
    -- procedure
    -- schema.procedure
    -- package.procedure
    -- schema.package.procedure
    -- If the expected input parameter is a procedure name only, the IN list code shown below
    -- can be modified to itemize the expected procedure names. Otherwise you must parse the
    -- procedure_name parameter and replace the simple code below with code that will evaluate
    -- all of the cases listed above.
    -- IF UPPER(procedure_name) IN ('') THEN
    IF UPPER(procedure_name) IN ('','DOWNLOAD_MY_FILE?P_FILE','SAFETYRISK.DOWNLOAD_MY_FILE?P_FILE','SAFETYRISK.DOWNLOAD_MY_FILE','DOWNLOAD_MY_FILE','PMO.DOWNLOAD_PMO_FILE','DOWNLOAD_PMO_FILE') THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END Wwv_Flow_Epg_Include_Mod_Local;
    ----------------------------------

  • AL11 File Download Issue

    Hi,
    I had a report which is executed in Background and its output is stored in a .txt file on Application Server.
    I had used field seperator as '#' . I am downloading that file into an 'excel' file directly from AL11 (not from any ABAP coding) .
    File contains more than 70000 records, but when i look into the downloaded file , many rows are not getting downloaded correctly even everything is correct in AL11. Some rows has many fields missing , many rows get merge into one cell and some are coming correctly.
    So, can anyone help me that what is the issue. Is the field seperator is incorrect?
    Thanks in Advance

    Hi Mayank,
    I think you have some special chars in the downloded content. For that reason it is not coming in proper format.
    In my opinion you need to use '|' as seperator. Then d/l it in presenatation server in .txt format. Then open excel application then open the .txt file as '|' as separator.
    Regards,
    Amitava

  • Excel file download issue

    Hi Experts,
    I am downloading an excel file which is stored at the MII server using JSP file. I am using the below code for the same. I am able to download the excel file successfully but when I open the same I get some junk value as content. I mean to say the content is not at readable format. I have tested the java code using standalone program where it worked successfully.
    I  tested this JSP at MII 12.2 and MII 14.0 and both provided same result. I have attached the screenshot of excel how it looks after opening
    I want to know is this a problem with Netweaver web server?. I mean the way it runs JSP. Unfortunately I could not test this on another web server
    Any help on this is very much appreciated.
    <%
      String filePath = "C:\\myfile.xls";
      try
      FileInputStream in = new FileInputStream(filePath);
      response.setContentType("application/vnd.ms-excel");
      response.addHeader("content-disposition","attachment; filename=" + filePath);
      int octet;
      while((octet = in.read()) != -1)
      out.write(octet);
      in.close();
      out.close();
      catch(Exception e)
      out.println("Exception occured:"+e);
    %>
    Thanks
    Shaji

    Hi Christian,
    Thanks for your response.
    I tried that as well but same result. I get a alert message as below while opening the file.
    "Excel cannot open the file Demo.xls because the file format or file extension is not valid. Verify that file has not been corrupted and that the file extension matches the format of the file"
    I am trying to run the same file on another web server such as tomcat and see if the issue persist.
    Thanks
    Shaji

  • File download issue through ASA

    Hi,
    We have ASA 5540 with 8.2 SW. We are trying to download a file (3 MB pdf)  from https session which fails if done behind the firewall. In case, the client bypasses firewall, the file gets downloaded as usuall. Interesting thing here to note is that when client is behind the firewall, its takes a long time to download the file and the file size always 312 Bytes, of course its a corrupt file.
    We have chaged the MSS setting but did not help.
    Did anybody face such problem before?
    Thanks
    Saif

    Hello,
    I would like too see the logs at the time you are facing the issue, when the download its slow.
    Is it possible that you could provide your ASA configuration,
    Are you using a CSC-SSM or AIP-SSM?
    Regards,
    Julio.

  • WAN users experience extremely slow file downloads

    Help! I have been having issues lately with network throughput on any file that is accessed from an off-site location. Currently I have a Leopard server (running DNS, Firewall, NAT, VPN, iChat) that is providing authentication services to my users who are logging in from an off-site location. I also have a second server running Tiger server that is set up as an OD Master running AFP and providing authorization services to my users. This is where most of the files my users are accessing are located.
    I have run speed test after speed test on our internet connection that consistently yields a rock steady 337KB/sec UL and 319KB/Sec DL (We have bonded T1's @ ~3.072 Mbps) yet when users are trying to download or access files using AFP or FTP the server will sputter between 0-120KB/Sec and never achieve anywhere close to its maximum theoretical throughout. I have tried to confirm in as many ways as possible that this is a file service problem and not an internet connection issue. I regularly use Remote Desktop from my home to connect to the server that yields bursts and sustained speeds all the way up to 340KB/Sec. Again, bursts are not saying much, however when the server was displaying a screen saver in full color mode, the throughput was steady at ~3.072 Mbps. Furthering my suspicion that this is a service issue, I have set up a VPN that sends all traffic over the VPN and then logged in and visited Youtube and other download sites, all yielding the expected maximum 3.072 Mbps speeds when downloading files from the internet to my computer.
    In order to try and narrow down the problem further, I have turned off the VPN service (thinking that perhaps the overhead for encryption for multiple users was causing the low throughput) and tried both secure and insecure AFP and FTP downloads from the server. Again, this yielded the same pathetic throughput.
    Is there some issue with transferring files over the internet that I'm not aware of? I'm literally tearing my hair out trying to figure out where the problem is. Users are taking anywhere from 2-5 minutes to open small (<1M files and this is causing serious headaches. Alternatively, are there any other solutions that would enable users at multiple locations to access the same files at the same time?
    Thanks for any help you guys can provide, I'll be more then happy to answer any questions you have.

    Matter now resolved!   We thought that we had covered everything before bringing it here.  But just one dodgy router port connection is all it takes.  Thanks for your time.

  • Multiple File Download Issue

    Hi
    In my application there is a attachments section, which displays all the attachments in a table with file name as LinkToAction UI element, in the action handler of the link i am using CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE method to push the attachment to the client.
    when i click the 3 links simultaneously it opens the 2 attachments but the 3 rd click hangs and returns in page not found error.
    Is this behaviour anything to do with ICM parameters or a bug? I am running SAP_BASIS component SAPKB70010
    Thanks
    Abhi

    Thomas Jung wrote:>
    > What do you mean - "When you click three links simultaniously"? You can't really click them simultaniously.  Do you mean that >you just click all three really fast?  I'm a little confused. 
    when i click the first link it opens the download dialog, keeping that dialog untouched i am able to click the second link and it opens the download dialog, similarly when i click the third link it hangs.
    >The browser limits the number of simultanious downloads - generally to two
    I think this is the reason for the behaviour, when i open or save the second download dialog, the third dialog is opened, can we change this limitation of the browser?
    >It could be that the server cache is timing out waiting its turn for the third download.
    I think this is not the problem. if it times-out, it will return a short dump but it says page not found.
    Thanks
    Abhi

  • Large file download issue

    When we are downloading a large file 100MB + with Internet Explorer the
    workstation will at some point report that the connection was reset by the
    server and we lose the download. This is kind of random and I've only seen
    it in IE. I have and use Firefox at my desk and I have no trouble like
    this. But our campus standard is IE and I really would like to pin this down.
    My fear is the Packet filters. I went and looked at the packet filters we
    have set up and was shocked to see we had 77 filter exceptions. My last
    look only showed 45 so I need to sit down and review every filter exception
    and thin the heard. Anyway, below are the exception for http which is what
    I believe IE uses in downloading files. Right? and wanted a second option
    from you guys.
    We have NW 6.5 sp 5 BM 3.8 sp 4 ir3 and I use Craigs tuneup and proxycfg.
    the packet typ HTTP is defines as:
    Protocol TCP
    SRC Port ALL
    DEST Port 80
    ACK bit Filtering disabled
    Stateful Filtering enabled
    The filter exception are:
    #15
    Packet Type: HTTP
    Source: B57_1_EII
    All Circuits
    Any Address
    Destination: B57_2_EII
    All Circuits
    66.89.73.96/255.255.255.224
    Comment:
    #22
    Packet Type: HTTP
    Source: <All Interfaces>
    All Circuits
    Any Address
    Destination: CE1000_1
    All Circuits
    Any Address
    Comment:
    #24
    Packet Type: HTTP
    Source: B57_2_EII
    All Circuits
    Any Address
    Destination: <All Interfaces>
    All Circuits
    Any Address
    Comment: Added by BRDCFG to allow HTTP proxy.
    #67
    Packet Type: HTTP
    Source: B57_2_EII
    All Circuits
    12.22.25.0/255.255.255.240
    Destination: <All Interfaces>
    All Circuits
    192.168.3.7
    Comment: Inbound http for powerschool
    #75
    Packet Type: HTTP
    Source: B57_1_EII
    All Circuits
    192.168.3.6
    Destination: <All Interfaces>
    All Circuits
    Any Address
    Comment:
    Thanks
    David

    When I looked at the version level of Proxy.cfg I use that you wrote it was
    version 21, I did download the current version. Would the differences
    between the versions cause any of the behavior I've seen. I didn't see much
    in there that looked too different.
    Other Comments inside the threaded message:
    > On your stateful HTTP exceptions, you are:
    > #15 Allowing all HTTP to network 66.89.73.96/255.255.255.224
    To allow private LAN access to the Public IP subnet range to allow
    management of Routers etc. that are outside of this firewall.
    > #22 Allowing all HTTP to cross interface CE1000_1 - if this is the public
    > interface, you are allowing all outbound HTTP without using a proxy. If
    > this is the private interface, you are allowing all inbound HTTP through
    > any static NAT connection.
    CE1000_1 is the interface that is connected to our DMZ. We host 3 webserver
    in the DMZ for public access. One is our Groupwise Webaccess.
    > #24 Allowing all HTTP as long as it originates from the B57_2 interface.
    > If the public IP address were also specified, it would be one of the
    > default exceptions intended to allow proxy to send HTTP requests out from
    > the server to the Internet. Because source/destination IP address is
    > missing, it effectively allows traffic into the B57_2 interface as well,
    > assuming the B57_2 interface is public.
    #24 here is the default added by BM. I don't think I ever touched this one.
    This is a set of filters that were imported from our earlier BM versions
    when we built this box. Sounds like it should have the Public IP address
    listed as the source IP. Would you suggest adding that in?
    > #67 Assuming B57_2 is public, you are allowing HTTP traffic to come from
    > a specific network, into a host at 192.168.3.7, via static NAT.
    Correct. We have a turn key box with a windows application that is managed
    by the vendor via HTTP and that is their IP range and the target IP is
    192.168.3.7 and it hold a static NAT in the 66.89.73 range on the BM Server.
    > #75 Hard for me to tell what this is doing, as it appears the B57
    > interface is your public interface. It will allow any HTTP from IP
    > address 192.168.3.6 to anywhere, but only if that address is on the B57
    > side of the server, which sounds incorrect. I'm guessing that the
    > 192.168.3.x network is on the CE1000 side of the server, in which case
    > this is a useless filter exception.
    The Interface is B57_1_EII and this is the Private LAN interface. The
    intent is to allow the SPAM filter box http access to the internet without
    requiring a proxy. The box is unable to accept a proxy setting and the way
    it gets it's updates from the vendor is via HTTP.
    Thanks
    David

  • Urgent Quicktime Download Issue

    I have bought the full version of Quicktime and have it installed. I have downloaded an avi file (Xvid.PDTV [Ramp]) but it isn't showing any picture or playing any audio. Quicktime pointed me to the page that shows additional downloads but I'm not sure what I need.
    Can anyone help? I'd really appreciate it.
    Thanks.
    X

    Found the answer elsewhere on the forum.

  • Urgent: File download using HTTP

    Hello,
    I have some files stored on a Remote machine A. The machine A accepts HTTP connection only.
    I want to write a java program which runs on Machine B, creates a connection to machine A and gets/downloads the file and store it on machine B. The file is a 3gp/mp4 file.
    Can you please advise/suggest as how this can be done?
    Regards.

    Thanks for your reply.
    I am getting the following error now, can some one please advise how to fix this:
    HttpTest.java:12: incompatible types
    found : java.net.URLConnection
    required: java.net.HttpURLConnection
    (The openConnection method returns a URLConnection object and not a HttpURLConnection object)
    I also tried the below code:
    URL url = new URL("http","10.176.96.63",9000,"c:\\database.properties");
    InputStream is = url.openStream();
    This code gives an exception:
    java.net.SocketException: Unexpected end of file from server
    Can someone please help...
    Thanks.

Maybe you are looking for