...

View Full Version : reading mp3 ID3 tags?



angst
08-11-2004, 09:15 PM
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

miranda
08-12-2004, 10:31 PM
http://www.4guysfromrolla.com/webtech/tips/t041701-1.shtml

angst
08-13-2004, 02:09 AM
ya i tried that one before i posted here,,
and it comes up with errors..

glenngv
08-13-2004, 03:48 AM
What errors?

angst
08-13-2004, 02:05 PM
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

glenngv
08-13-2004, 02:34 PM
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 (http://www.atgconsulting.com/adotypelibs.asp) for possible solution.

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

objStream.Type = 1 'adTypeBinary

angst
08-13-2004, 08:24 PM
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

Morgoth
08-14-2004, 09:39 AM
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.

glenngv
08-16-2004, 03:50 AM
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?

angst
08-17-2004, 10:24 PM
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

Morgoth
08-18-2004, 11:10 PM
Do you still have the meta tag there with the HTML comment tags?
You need it there, and what SP are you on?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum