last day (14 days later) » 

7:06 AM
thank your helping but i couldn't send file to server
 
now send me your code
 
i copied the code from github page of AFNetwowking.
 
did you changed the code?
 
no :(
but it doesn't work
 
i will send you code written by me.
it's working forking for me like a charm.
try it OK?
 
7:10 AM
Ok.
when you send?
 
i am looking for it :)
please wait :P
 
OK, wia
sorry. i mean, i am waiting :)
 
i found it
AFHTTPRequestSerializer *serializer = [AFHTTPRequestSerializer serializer];
        NSData *imageData = UIImageJPEGRepresentation(image, 0.5);

        int randNum = rand() % (10000 - 100)+100;
        NSString *num = [NSString stringWithFormat:@"%d.jpg", randNum];

        NSMutableURLRequest *request = [serializer
                                        multipartFormRequestWithMethod:@"POST"
                                        URLString:PostUrl
                                        parameters:params
2
params is json string.
like that
    NSDictionary *SabitParams2 =@{@"parametre":[[NSString alloc] initWithFormat:@"%i",2],@"username":UserName, @"password" : PassWord,@"telefon":Numaralar,@"refid":[[NSString alloc] initWithFormat:@"%i",RandNum],@"startdate":Tarih};
 
i will try it.
thank
 
7:30 AM
it woooorked..
thank you (very very very)x34512341234 much :D
 
:)
i am happy for you..
;)
 

last day (14 days later) »