ASIHTTP upload white image
===

I'm using ASIHTTP to POST data to server, and all the data is received as it should 

I'm uploading the image with

        [request1 setData:imageData withFileName:@"upload.png" andContentType:@"image/png" forKey:@"Image"];


where imageData is NSData

    -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
    {
        NSString *mediaType = [info objectForKey:UIImagePickerControllerMediaType];
        [self dismissModalViewControllerAnimated:YES];
        if ([mediaType isEqualToString:(NSString *)kUTTypeImage]) {
                   
            UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"] ;
            UIGraphicsBeginImageContext(CGSizeMake(320,480)); 
    
            UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 
            UIGraphicsEndImageContext();
            CGSize kMaxImageViewSize = {.width = 100, .height = 100};
    
            //[self resizeImage:newImage newSize:kMaxImageViewSize];
            imageData=UIImageJPEGRepresentation([self resizeImage:newImage newSize:kMaxImageViewSize], 0.5); 
    
    }
    - (UIImage *)resizeImage:(UIImage*)image newSize:(CGSize)newSize {
        CGRect newRect = CGRectIntegral(CGRectMake(0, 0, newSize.width, newSize.height));
        CGImageRef imageRef = image.CGImage;
        
        UIGraphicsBeginImageContextWithOptions(newSize, NO, 0);
        CGContextRef context = UIGraphicsGetCurrentContext();
        
        // Set the quality level to use when rescaling
        CGContextSetInterpolationQuality(context, kCGInterpolationHigh);
        CGAffineTransform flipVertical = CGAffineTransformMake(1, 0, 0, -1, 0, newSize.height);
        
        CGContextConcatCTM(context, flipVertical);  
        // Draw into the context; this scales the image
        CGContextDrawImage(context, newRect, imageRef);
        
        // Get the resized image from the context and a UIImage
        CGImageRef newImageRef = CGBitmapContextCreateImage(context);
        UIImage *newImage = [UIImage imageWithCGImage:newImageRef];
        
        CGImageRelease(newImageRef);
        UIGraphicsEndImageContext();    
        
        return newImage;
    }

this is how i re-size the image. The problem that I have is, when the image gets saved on server I just get a white image, blank one. IS it a server problem or maybe something I dont send form the app