Play a wav file retrieved from a database on the iPhone?
        Posted  
        
            by user312917
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user312917
        
        
        
        Published on 2010-04-09T22:18:41Z
        Indexed on 
            2010/04/09
            22:23 UTC
        
        
        Read the original article
        Hit count: 209
        
iphone-sdk
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
NSData *soundData = (NSDATA *)sqlite3_column_blob(statement, 0); mPlayer = [[AVAudioPlayer alloc] initWithData:soundData error:&error];
The data is stored as binary and it's there when I search for it using sqlite3.
© Stack Overflow or respective owner