Problem with fetching audio attachments #6

rehabaam opened this Issue Nov 8, 2011 · 0 comments


None yet
1 participant

rehabaam commented Nov 8, 2011

I tried to fetch an audio file with extension "amr" using attachments method in CTCoreMessage but in vein. When I debug the code, I see it's reading "Content-Type: audio/amr" from the mail but when it reaches this block:
if (singlePart.attached) {
CTBareAttachment *attach = [[CTBareAttachment alloc]
[attachments addObject:attach];
[attach release];

It evaluates "singlePart.attached" as false, then returns 0 objects for attachments. Do you think it's related to audio encoding? what is the proper case to handle audio extensions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment