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 8831251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:16:05+00:00 2026-06-14T08:16:05+00:00

I am new to database handling. I am creating a karaoke player in Java,

  • 0

I am new to database handling. I am creating a karaoke player in Java, where I need to have a database. I don’t have to get material (sound and text file) directly from hard disk, but I want a database (SQL Server, Oracle, etc) to store them, so that I can have an object, which can refer/point to them. Is it possible??

public class SoundPlayer extends JComponent
{

String windowName;
Clip clip;Clip clip2;
public static void main(String[] args) throws UnsupportedAudioFileException,     
IOException, LineUnavailableException, InterruptedException
{


JFrame f=new JFrame("hh");
f.getContentPane();

       f.pack();
f.setVisible(true);
}
private String String;

public SoundPlayer(File file) throws UnsupportedAudioFileException, IOException,  LineUnavailableException, InterruptedException {
   AudioInputStream ain=AudioSystem.getAudioInputStream(file);
   try
   {
       DataLine.Info info=new DataLine.Info(Clip.class,ain.getFormat());

       AudioFormat inFormat = ain.getFormat();
               clip=(Clip) AudioSystem.getLine(info);
//rest code

The object should be available in my program, so that I can access it.

  • 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-14T08:16:06+00:00Added an answer on June 14, 2026 at 8:16 am

    Yes, it’s possible (look at BLOB support in Oracle and JDBC), but the generally accepted way to do this is to store the files in the file system, and then just store the path to the file in the database.

    As it looks like you’re writing a desktop application, you have to think about how to access this information. If this is a single-user application with a local database, then you’ll be fine with files in the local file system and paths in the database.

    If this is a multi-user system with a shared database, then you’ll probably want to create a server that handles requests from the desktop app. It can look up the path in the database, get the file, and return it to the desktop app.

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

Sidebar

Related Questions

I am creating a new database to manage wish lists. Solution A: Two tables,
I'm creating a new database in my Activity like this: @Override public void onCreate(Bundle
I am creating a new database model using Entity Framework 4.3 Code-FIrst; using Fluent
I have an old database and a new database. The old records were converted
Assuming that best practices have been followed when designing a new database, how does
I am looking for best approach to handling database connection. I have designed my
hi there mates :) i'm new with database and database handling and i was
For my new heavy database read application ,i need to use GWT and mysql.
I have a singleton class which manages data and database handling of my application.
I'm attaching a new database programatically using VB.net application. I wrote DB scripts and

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.