I upload .wav file to django, and problem is that lib wave from
python, can't open it 'cause it doesnt have RIFF id. I made this test:

print request.FILES['file'].read(20)
f = open('C:/audio_test/Cricket.wav')
print f.read(20)
validation, error = sa.validation(request.FILES['file'])

I print first 20 bytes of uploaded file, and then 20 bytes of file
directly from hdd.

Output:

♠ WAVEfmt ↕   ☺ ☺ DČ
RIFF~╚♠ WAVEfmt ↕

As we can see django loses first 6 bytes of file somewhere. I dont
know why, and I cant make wave lib works without it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to