Dumping the chunks of log_data as .bin is it similar to Qground control .bin

So using Log_entry ,Log_request_data and log_data i got the chunk of log data from the drone
https://mavlink.io/en/messages/common.html#LOG_DATA
lines that are similar to this
LogData{id=1, ofs=66788, count=90, data=[B@d724048} (this is after converting the log to string)

i got something similar so am i supoosed to dump the data as it is in the .bin file
is it similar to what we get in the logs download section of QGC or anything needs to be done before so it matches that ??