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 11 of 11
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    reading mp3 ID3 tags?

    Hello,
    i was wondering if any one could give me some info on how to get mp3 ID3 tags in ASP?

    I've seen it done, but don't really have any idea how,
    just looking for info like song lenth, bitrate, and so on.


    thanks in advance for your time!
    -SiX

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    ya i tried that one before i posted here,,
    and it comes up with errors..

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    What errors?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    this error:

    ADODB.Stream error '800a0bb9'

    Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

    /test.asp, line 26


    line 26:

    objStream.Type = adTypeBinary


    any ideas?
    thanks again for your time!
    -SiX

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    The problem could be in the METADATA tag that imports constants from DLL.
    The ADO version might not compatible in your server. See this great link for possible solution.

    At the moment, try hardcoding the type to 1 which is the value of adTypeBinary constant.

    objStream.Type = 1 'adTypeBinary
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #7
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    ya tired that too, and still the same error,

    also that really understand that article you pointed me at,
    but i'll keep searching,

    thanks again for your time and effort,
    -SiX

  • #8
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    This is strange. I added the code, and with the exception of added another double quote for:
    <td>" & strAlbum & "</td></tr>"
    I didn't get any errors for my mp3s in "C:\mp3s\" (which I created and added 3 mp3s for this test)


    I forced your error by removing meta tag. You must leave the meta tag in. Just because it is commented out does not mean you don't need it. Remember to keep this line, or else your code wont work.
    <!-- METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type Library" -->

    'For more information on using METADATA check out:
    ' Using METADATA to Import DLL Constants
    ' http://www.4guysfromrolla.com/webtech/110199-1.shtml


    I am not sure what you use HTML comment tags (<!-- -->) instead of < >, if anyone has information about that, I would like to know.
    Right now I assume it has something to do with "Using METADATA to Import DLL Constants" and the way you use <!-- --> for #include.

    I also remember hearing something about using <!-- --> to hide javascript that can't be used by some browsers or something like that. I would really like to know why this and above is. Really.

  • #9
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Quote Originally Posted by angst
    ya tired that too, and still the same error,

    also that really understand that article you pointed me at,
    but i'll keep searching,

    thanks again for your time and effort,
    -SiX
    Error message still the same and still on the same line?

    I was thinking that the UUID used in the METADATA tag is not compatible with ADO version installed in your server. The article I linked provides a list of different UUID to use based on the ADO version installed in your server. The UUID used in the 4guys code is for ADO2.5 which came with Win2000. Is that the same in your case?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #10
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    Quote Originally Posted by glenngv
    Error message still the same and still on the same line?

    I was thinking that the UUID used in the METADATA tag is not compatible with ADO version installed in your server. The article I linked provides a list of different UUID to use based on the ADO version installed in your server. The UUID used in the 4guys code is for ADO2.5 which came with Win2000. Is that the same in your case?

    ya, i'm running windows 2000 server to test it on.
    tomorrow morning i'll have time to do more testing.

    and i'll reply back here with my findings.


    thanks again for your help!
    -SiX

  • #11
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    Do you still have the meta tag there with the HTML comment tags?
    You need it there, and what SP are you on?


  •  

    Posting Permissions

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