in reply to How to eliminate text portion of a binary file?
This one-liner seems to do the job.
perl -pe"BEGIN{ $/='#### end of header'; <>}" mixed.dat > bin.dat [download]