Converts file containing dataurl data to binary file