aspose file tools
The moose likes Beginning Java and the fly likes Read a music file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Read a music file" Watch "Read a music file" New topic
Author

Read a music file

Mike Brooks
Greenhorn

Joined: Oct 07, 2007
Posts: 14
Hello,

I have a program that is sending files using sockets. My question is how go I could about reading/scanning a music file to send and then recreate the file at the other end.

Thanks and Regards
Mike
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

Just read it and send it one byte at a time, just like any other file. It may be a music file to something which can play music, but to a socket it's just an array of bytes.
Mike Brooks
Greenhorn

Joined: Oct 07, 2007
Posts: 14
Hey,

In my code here i get an error at the line



Just wondering if i doing something wrong



Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Tell us more details. What sort of error? Compiler or run-time? What is the error message or stack trace? People can only help if they know such details.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35239
    
    7
Do you really have a directory called "sdcard" in your file system root?


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read a music file
 
Similar Threads
Retrieve Properties of Files
WA #1.....word association
one week of art squished into a few minutes
Project in applets
getting a filename