Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Stream mp3s in a zipped folder? Or DOwnload as a zip file?

    Hello,

    I was wondering if it was possible to stream mp3s from a zipped folder. Like say I have uploaded an album like Jay_z-the_black_album.zip, is there any way i can stream a track from the zip file like 01-intro.mp3? Or maybe the other way around like upload the folder of mp3s and download the folder as a zip? Please let me know thanks

  • #2
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You wont be able to stream the mp3's directly from within a compressed file. You will either have to download the zip as you suggested, or unzip the archives on the server.

    Hope it helps

    Scott

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    If you have access to something like php, asp, asp.net, jsp, cgi etc you should be able to open the zip in the script and pipe the bytes directly to the output stream.

    However, why have you put mp3s in a compressed zip archive in the first place? They will not be very compressed as mp3 is already a compressed format. This is just a waste of processing power to try and compress/decompress them. You would be better off with uncompressed archives or individual files.

  • #4
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    yes, a zip file with mp3 shouldn't be any smaller than the mp3 by itself.


  •  

    Posting Permissions

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