Read file on server and send json histograms