Play a wav file retrieved from a database on the iPhone?
<p>I have alot of wav files stored in sqlite3, but when I retrieve one of them, I can't play it. The retrieve code is </p>

<p>NSData *soundData = (NSDATA *)sqlite3_column_blob(statement, 0);
mPlayer = [[AVAudioPlayer alloc] initWithData:soundData error:&amp;error];</p>

<p>The data is stored as binary and it's there when I search for it using sqlite3.</p>
