Iphone 如何从我的应用程序在evernote中存储zip文件

Iphone 如何从我的应用程序在evernote中存储zip文件,iphone,ios,evernote,Iphone,Ios,Evernote,我正在将我的全部数据存储在zip文件中。 现在我想通过我的应用程序在Evernote中存储该zip文件。 我有一些样本(通过谷歌搜索),使用这些样本,我只能存储图像,但我无法通过我的应用程序在Evernote中存储zip文件 请提供帮助有没有办法在evernote中存储zip文件 我正在使用以下代码发布图像及其描述 -(IBAction)authenticate:(id)sender { EvernoteSession *session = [EvernoteSession s

我正在将我的全部数据存储在
zip文件中
。 现在我想通过
我的应用程序
在Evernote中存储该
zip文件

我有一些样本(通过谷歌搜索),使用这些样本,我只能存储图像,但我无法通过我的应用程序在Evernote中存储
zip文件


请提供帮助有没有办法在evernote中存储zip文件


我正在使用以下代码发布图像及其描述

-(IBAction)authenticate:(id)sender  
{    
   EvernoteSession *session = [EvernoteSession sharedSession];  
   [session authenticateWithViewController:self completionHandler:^(NSError *error) {
      if (error || !session.isAuthenticated)  
     {

            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                  message:@"Could notauthenticate" delegate:nil
                                  cancelButtonTitle:@"OK" otherButtonTitles:nil];
            [alert show];
        } else {
            NSLog(@"authenticated! noteStoreUrl:%@ webApiUrlPrefix:%@", session.noteStoreUrl, session.webApiUrlPrefix);
        }
    }];
}`

-(iAction)Postdata:(id)发送方{
NSString*文件路径=[[NSBundle mainBundle]pathForResource:@“setting_tablecell”类型:@“png”];
NSData*myFileData=[NSData dataWithContentsOfFile:filePath];
NSData*dataHash=[myFileData md5];
EDAMData*EDAMData=[[EDAMData alloc]initWithBodyHash:dataHash大小:myFileData.length body:myFileData];
EDAMResource*resource=[[EDAMResource alloc]initWithGuid:nil noteGuid:nil数据:edamData mime:@“image/png”宽度:0高度:0持续时间:0活动:0识别:0属性:nil更新序列枚举:0可选数据:nil];
NSString*noteContent=[NSString stringWithFormat:@]
""
""
“你好,照片便条。”
“
” “Evernote徽标:” “
” "%@" “”,[ENMLUtility mediaTagWithDataHash:dataHash mime:@“image/png”]; NSMutableArray*资源=[NSMutableArray阵列WithArray:@[resource]]; EDAMNote*newNote=[[EDAMNote alloc]initWithGuid:nil title:@“测试照片注释Nyt”内容:noteContentHash:nil contentLength:noteContent.length创建:0更新:0删除:0活动:是更新序列枚举:0 notebookGuid:nil标记GUID:nil资源:资源属性:nil标记名:nil]; [[EvernoteStore]createNote:newNote成功:^(EDAMNote*note){ NSLog(@“已成功创建注释”); }失败:^(N错误*错误){ NSLog(@“创建注释时出错:%@”,错误); }]; }
创建EDAMResource对象时,将mime类型更改为“application/zip”

EDAMResource* resource = [[EDAMResource alloc] initWithGuid:nil noteGuid:nil data:edamData mime:@"application/zip" width:0 height:0 duration:0 active:0 recognition:0 attributes:nil updateSequenceNum:0 alternateData:nil];
创建EDAMResource对象时,将mime类型更改为“application/zip”

EDAMResource* resource = [[EDAMResource alloc] initWithGuid:nil noteGuid:nil data:edamData mime:@"application/zip" width:0 height:0 duration:0 active:0 recognition:0 attributes:nil updateSequenceNum:0 alternateData:nil];

在everynote中存储sql数据的最佳方式是什么