Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
5 subscribers
Views
3020 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Bilk File Upload
Shivam Gupta
over 8 years ago
i am using Content Service for bulk file upload
i have to use upload method to fetch the 'ContentOutputStream' for file uploading to Knowledge Center
and the upload method is called as
ContentOutputStream outStream = cs.upload(doc, arg1);
//here cs is instance of ContentService
which is created as
ContentService cs = ServiceLocator.getContentService(sc);
//here sc is ServiceContext which is created as
ServiceContext sc = ServiceLocator.getAdministratorServiceContext();
//* these lines of codes are provided #
forum.appian.com/.../
But i am getting an error as "Could not initialize class com.appiancorp.suiteapi.common.ServiceLocator"
can some1 help
//log file attached
OriginalPostID-238850
log.txt
Discussion posts and replies are publicly visible
Parents
0
samiullahm
over 8 years ago
Can you check with this definition
ServiceContext sc= WebServiceContextFactory.getServiceContext("Administrator");
ContentService cs = ServiceLocator.getContentService(sc);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
samiullahm
over 8 years ago
Can you check with this definition
ServiceContext sc= WebServiceContextFactory.getServiceContext("Administrator");
ContentService cs = ServiceLocator.getContentService(sc);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data