How to convert byte array to char array or string to char array ?

İ've been trying to convert byte array to char array by using arduino but i could not do it. I must get the information through arduino mega with rf522 and send it to mysql database. What should i do to convert byte array to char array or string to char array ? Can anybody give some useful C code about it ?

For example: our RFID card id is in a byte array

byte ID[] = {213,80,125,4};

I am trying to convert it to

char id[] = {'2','1','3'......};

What should i do to convert byte array to char array

That is not converting a byte array to a char array.

The sprintf() function can be used to convert the elements of a byte array to a NULL terminated char array.