Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8261847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:33:20+00:00 2026-06-08T03:33:20+00:00

As a kind of personal project, I’m trying to develop a Java Applet that

  • 0

As a kind of personal project, I’m trying to develop a Java Applet that will stream from a collection of music that I will host on the same machine as the applet. I know when you request files in an applet, it looks for them in the files of the computer which is accessing the applet. I, however, want to access files that are hosted on the same server as the applet.

My intention is to, when the client wants to stream a specific song, the server will begin loading the data and streaming the data to the client. I think this would be possible using the URL class in Java, but would that not be going out to the internet only to come back to the very same server to get its files? Or will it recognize that the files are local and access them without going out to the web?

Summary: What is the best way for an applet to access files that are hosted on the same server as itself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:33:22+00:00Added an answer on June 8, 2026 at 3:33 am

    An applet runs on the client machine. In order to access files the server you’re going to have implement functionality on the server-side to expose those files to your client. There are various ways to do this in Java – the most common would be:
    1) a custom servlet or
    2) a web service

    Here are some links to articles which could be helpful:

    • Can a web service return a stream?
    • FileServlet serving from absolute path

    As an aside I think your question is quite broad. You’re probably going to have to investigate one or both of the methods above, try to implement one of them and then come back to SO with more specific questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

as a personal project I am trying to write a wiki with the help
I'm trying to unit test in a personal PHP project like a good little
I'm trying to develop a small plugin-based training calculator as a home project (designed
Kind of a follow up to a question from yesterday. I have a hash
Kind of like this question I have many text snippets that I use many,
I'm building a site like SO using PHP as a personal project. I started
I'm doing a school project about maintaining a personal Database. but my tutors didn't
So, I'm about to embark on a fairly lengthy, time consuming project that could
I'm new to .Net and trying to learn things. I'm trying to develop a
I've finished a personal project now just going through my code cleaning things up.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.