ios Upload Image and Text using HTTP POST

Here’s code from my app to post an image to our web server: // Dictionary that holds post parameters. You can set your post parameters that your server accepts or programmed to accept. NSMutableDictionary* _params = [[NSMutableDictionary alloc] init]; [_params setObject:[NSString stringWithString:@”1.0″] forKey:[NSString stringWithString:@”ver”]]; [_params setObject:[NSString stringWithString:@”en”] forKey:[NSString stringWithString:@”lan”]]; [_params setObject:[NSString stringWithFormat:@”%d”, userId] forKey:[NSString stringWithString:@”userId”]]; … Read more

What is the best place for storing uploaded images, SQL database or disk file system? [closed]

I generally store files on the file-system, since that’s what its there for, though there are exceptions. For files, the file-system is the most flexible and performant solution (usually). There are a few problems with storing files on a database – files are generally much larger than your average row – result-sets containing many large … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)