Android Question FreeDB: Has anyone coded FreeDB access in B4J?

GuyBooth

Active Member
Licensed User
Longtime User
I am still using a VB6 program that accesses the FreeDB database using an ActiveX control.
Has anyone done anything in B4A to obtain data from the FreeDB system?

I am looking for a library that would pull the data into my (B4A) B4J app.
 
Last edited:

GuyBooth

Active Member
Licensed User
Longtime User
I don't know "FreeDB" but you can access any db by several methods (I use SQLite and MySql a lot - could be any other, too). See jRDC2 or maybe php or other methods.
No … FreeDB is a specific database for looking up CD track information. I am looking for code that helps extract CD ID information that will be submitted to FreeDB to pull the data.
 
Upvote 0

inakigarm

Well-Known Member
Licensed User
Longtime User
You're access Freedb from local or to a server?
If Freedb it's local, maybe it's time to traslate freedb to MYSQL and access the MYSQL DB from b4A; some links attached (if you 'google' for it, maybe you'll found more links)
http://www.wiw.org/~chris/archive/concept/fdb/FreeDBToMySQL/FreeDB_to_MySQL.html
https://sourceforge.net/p/freedb2mysql/code/HEAD/tree/

If it's server, it seems that remote access is via CDDBP protocol and HTTP; if the server uses HTTP maybe http requests could work (should be studied properly)
https://metacpan.org/pod/release/ZOCCAV/Net-FreeDB2-0.8.2.6/Connection/HTTP/HTTP.pm
http://freedb.musicbrainz.org/~cddb/cddb.cgi
 
Upvote 0

hibrid0

Active Member
Licensed User
Longtime User
You will use NodeJs+express to make an API to comunicate with FreeDB and then is too easy to connect with B4A, B4i o B4j.
If not exist packege for for FreeDb on npm, then you will create one.

Adodb npm package will help you to start, this package use vbscript to comunicate with local db and send to NodeJs
 
Upvote 0

GuyBooth

Active Member
Licensed User
Longtime User
You will use NodeJs+express to make an API to comunicate with FreeDB and then is too easy to connect with B4A, B4i o B4j.
If not exist packege for for FreeDb on npm, then you will create one.

Adodb npm package will help you to start, this package use vbscript to comunicate with local db and send to NodeJs

I'm afraid NodeJs means nothing to me at all. I do not want to write an API, I would really like to find an existing one that I can somehow connect to B4x (probably B4J).

The first thing that has to happen is to extract the CD ID from the disc. My VB6 ActiveX control did that, as well as handling all the communication and response with the FreeDB database. I'm really looking for a library that has all that built in.
 
Upvote 0

potman100

Active Member
Licensed User
Longtime User
Should be an easy convert, I take it the vb6 activex was using XmlHttp or Win Http ?

Just convert the calls using http jobs for the access to the FreeDB database.

I am a little puzzled about what you want to do ? "extract the CD ID from the disc"

How would the android device see the Cd ?
 
Upvote 0

GuyBooth

Active Member
Licensed User
Longtime User
Should be an easy convert, I take it the vb6 activex was using XmlHttp or Win Http ?
It's an ocx control, I have no idea how to obtain the source code.
I am a little puzzled about what you want to do ? "extract the CD ID from the disc"
Perhaps "read" would be a better word than "extract".
How would the android device see the Cd ?
I have modified the title to what it should be, but this thread truly belongs in the B4J forum. So used to asking questions about B4A.
I have now asked a similar question there
https://www.b4x.com/android/forum/threads/how-to-access-music-cd-info-toc-cd-id-serial-number.99403/
 
Upvote 0
Top