I have next code and i only can save in WS images png, the camera images and JPG images downloaded cannot save in web service. This code save right image PNG i try with UIImageJPEGRepresentation and UIImagePNGRepresentation but is the same result. I have iOS7
我有下一个代码,我只能保存在WS图像png中,下载的相机图像和JPG图像无法保存在Web服务中。此代码保存右图像PNG我尝试使用UIImageJPEGRepresentation和UIImagePNGRepresentation,但结果相同。我有iOS7
NSData *originalPhoto = UIImageJPEGRepresentation(_imagenView.image,0.5f);
//NSData *originalPhoto =UIImagePNGRepresentation(_imagenView.image);
NSString *string = [originalPhoto base64EncodedStringWithOptions:kNilOptions]; // iOS 7+
NSString *encodedString = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(
NULL,
(CFStringRef)string,
NULL,
CFSTR("!*'();:@&=+$,/?%#[]\" "),
kCFStringEncodingUTF8));
// NSString *base64PhotoString = [originalPhoto base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
1 个解决方案
#1
0
The problem, there wasn't code ios,i can solved create php.ini in directory and put this lines:
问题,没有代码ios,我可以解决在目录中创建php.ini并把这行:
upload_max_filesize = 16M;
post_max_size = 1000M;
extension=pdo.so;
extension=pdo_mysql.so;
#1
0
The problem, there wasn't code ios,i can solved create php.ini in directory and put this lines:
问题,没有代码ios,我可以解决在目录中创建php.ini并把这行:
upload_max_filesize = 16M;
post_max_size = 1000M;
extension=pdo.so;
extension=pdo_mysql.so;