Results 1 to 1 of 1
  1. #1
    emesol0 is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default How can I get a RealMedia file from a web site?

    Dear all;

    I've a problem in getting a file from a server. I've established an HttpUrlConnection to the following URL:

    http://somesite.com/files/1.rm

    and I got the input stream of that file and wrote it to mt hard drive using the outputstream class; everything worked fine but after a couple of days when I try to download the same file (or any other file) the server automatically redirects me to the main page of the web site and the input stream I get is the HTML code of the main page instead of the bytes of the RM file....

    is there another way to download that file using urlconnections or sockets?

    please help!
    Last edited by emesol0; 01-24-2008 at 08:17 PM.

Similar Threads

  1. New java site for beginers
    By windyawarnapura in forum Java Software
    Replies: 1
    Last Post: 03-14-2008, 06:02 PM
  2. Code to connect to a web site
    By suji in forum Networking
    Replies: 1
    Last Post: 02-15-2008, 04:05 PM
  3. Site hacked
    By tim in forum Suggestions & Feedback
    Replies: 3
    Last Post: 02-02-2008, 09:47 AM
  4. An amateur Java Tutorials Site
    By elasolova in forum Reviews / Advertising
    Replies: 1
    Last Post: 01-18-2008, 09:23 PM
  5. Printing all IP address of a site
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-24-2007, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •