|
|
•
• Using the Microsoft .NET client assembly, create a ApplicationManagerService object by invoking its default constructor.
• Set the ApplicationManagerService object’s Credentials data member with a System.Net.NetworkCredential value that specifies the user name and password value.
• Create a BLOB object by using its constructor. The BLOB object is used to store the LCA file that represents the application to import.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the LCA file and the mode in which to open the file.
• Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
• Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
• Import the application by invoking the ApplicationManagerService object’s importApplicationArchiveDocument method and passing the BLOB object. This method returns an ApplicationStatus object that specifies whether the application was successfully imported.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/importingApps.149.4.html