KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

SudzC upload large File #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using SudzC on iPhone to communicate with a ASP .NET web service.
Everything is ok when I upload a small Audio file but when I try a large one  
(>50MB) everything get stuck and my application crashes.

Any suggestions?

Here is my code

        uploadingLabel.text = @"Uploading, Please wait...";
        activityIndicator.hidden = NO;
        uploadingLabel.hidden = NO;    

        WebsiteWebServiceSite* service = [WebsiteWebServiceSite service];
        service.logging = YES;

        NSData *data = [NSData dataWithContentsOfURL:url];
        NSLog(@"%d",data.length);
        // Returns NSString*. 
        [service insertSitePatientAudioFile:self action:@selector(insertSitePatientAudioFileHandler:) soundFile:data  code: CodeTextField.text];

Original issue reported on code.google.com by ngeorgou...@gmail.com on 3 Jun 2012 at 5:34