Forums

Home » Mobile » Liferay Mobile SDK

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nha Duong
IOS Update Article
May 19, 2014 2:39 AM
Answer

Nha Duong

Rank: New Member

Posts: 24

Join Date: February 20, 2014

Recent Posts

i want update article
i try with method follow.
1- (NSDictionary *)updateArticleWithGroupId:(long long)groupId folderId:(long long)folderId articleId:(NSString *)articleId version:(double)version titleMap:(NSDictionary *)titleMap descriptionMap:(NSDictionary *)descriptionMap content:(NSString *)content type:(NSString *)type ddmStructureKey:(NSString *)ddmStructureKey ddmTemplateKey:(NSString *)ddmTemplateKey layoutUuid:(NSString *)layoutUuid displayDateMonth:(int)displayDateMonth displayDateDay:(int)displayDateDay displayDateYear:(int)displayDateYear displayDateHour:(int)displayDateHour displayDateMinute:(int)displayDateMinute expirationDateMonth:(int)expirationDateMonth expirationDateDay:(int)expirationDateDay expirationDateYear:(int)expirationDateYear expirationDateHour:(int)expirationDateHour expirationDateMinute:(int)expirationDateMinute neverExpire:(BOOL)neverExpire reviewDateMonth:(int)reviewDateMonth reviewDateDay:(int)reviewDateDay reviewDateYear:(int)reviewDateYear reviewDateHour:(int)reviewDateHour reviewDateMinute:(int)reviewDateMinute neverReview:(BOOL)neverReview indexable:(BOOL)indexable smallImage:(BOOL)smallImage smallImageURL:(NSString *)smallImageURL smallFile:(LRJSONObjectWrapper *)smallFile images:(NSDictionary *)images articleURL:(NSString *)articleURL serviceContext:(LRJSONObjectWrapper *)serviceContext error:(NSError **)error;

but parameter "smallFile", "images" i don't know. when i pass empty value then An error occurred "Could not find a no-arg constructor for java.io.File" UserInfo=0xb3c2af0 {NSLocalizedDescription=[ ]: Could not find a no-arg constructor for java.io.File}".
Help me!
Bruno Farache
RE: IOS Update Article
May 19, 2014 6:15 AM
Answer

Bruno Farache

LIFERAY STAFF

Rank: Liferay Master

Posts: 520

Join Date: May 14, 2007

Recent Posts

Nha,

I think this is related to something we discussed previously. The SDK doesn't support binary upload.
Nha Duong
RE: IOS Update Article
May 20, 2014 1:11 AM
Answer

Nha Duong

Rank: New Member

Posts: 24

Join Date: February 20, 2014

Recent Posts

Yes. I see
What the way to work ? ex: AFNetworking. I don't understand more Liferay System.
Everyone passed this or have idea to work it. Give me!.
Thanks!
Bruno Farache
RE: IOS Update Article
May 20, 2014 4:26 AM
Answer

Bruno Farache

LIFERAY STAFF

Rank: Liferay Master

Posts: 520

Join Date: May 14, 2007

Recent Posts

Why don't you try the solution I gave in that other thread?
Nha Duong
RE: IOS Update Article
May 20, 2014 10:12 PM
Answer

Nha Duong

Rank: New Member

Posts: 24

Join Date: February 20, 2014

Recent Posts

Yes! (i done)
But the difficult is paramtter together to image.
ex . I have 2 image .?
Bruno Farache
RE: IOS Update Article
June 2, 2014 11:21 AM
Answer

Bruno Farache

LIFERAY STAFF

Rank: Liferay Master

Posts: 520

Join Date: May 14, 2007

Recent Posts

Nha,

We have added support for binary upload, check the last release 6.2.0.5 and the documentation about it. Thanks for you feedback!