How does the mnist data given convert into input spikes?

Thanks!