Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read a music file  RSS feed

 
Mike Brooks
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

In my code here i get an error at the line



Just wondering if i doing something wrong



 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really have a directory called "sdcard" in your file system root?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!