Server-side code for Android spectrogram app