Objective
It allows to upload a new document into the library where the content is provided in Base64Binary. DST must be provided.
Parameters
Parameter | Description | Type |
document | The content of the document to upload to the DM Library. | String |
form | The name of the form used to create new folders. | String |
library | eDOCS library | String |
user | User name | String |
password | User password | String |
properties | This parameter represents all the properties that must be provided to create a document on the library and they are defined on the profile. Properties must be passed as a string. | String |
client | Optional parameter for the client code | String |
project | Optional parameter for the project code | String |
Notes:
- By default, the new document is created without security. The document MUST be closed during the process.
- To specify the extension of a document, it is necessary to include the FILE_EXTENSION tag into the properties parameter.
For instance, <FILE_EXTENSION>docx</FILE_EXTENSION>
Rest Invoke
- http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
- UriTemplate:
- “/UploadDocumentAsBinary/?document={document}&form={form}&library={library}&user={user}&password={password}&properties={properties}&client={client}&project={project}”
- “/UploadDocumentAsBinaryDST/?document={document}&form={form}&library={library}&user={user}&dst={dst}&properties={properties}&client={client}&project={project}”
Example
http://localhost:8732/GSService/xml/UploadDocumentAsBinary/?document=RXN0byBlcyB1bmEgcHJ1ZWJhIHBhcmEgc3ViaXIgdW4gZG9jdW1lbnRvIHkgY29udmVydGlyIHN1IGNvbnRlbmlkbyBhIEJhc2U2NA==&form=LAWPROF&library=DMTESTLEGAL&user=admin&password=owc123&properties=SolutionSchema admin DEFAULT DEFAULT DEFAULT admin SolutionSchema ACROBAT
The method returns the new document number if it has been properly uploaded into the library.
DST Example
http://localhost:8732/GSService/xml/UploadDocumentAsBinaryDST/?document=RXN0byBlcyB1bmEgcHJ1ZWJhIHBhcmEgc3ViaXIgdW4gZG9jdW1lbnRvIHkgY29udmVydGlyIHN1IGNvbnRlbmlkbyBhIEJhc2U2NA==&form=LAWPROF&library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&properties=SolutionSchema adminUTHOR_ID> DEFAULT DEFAULT DEFAULT adminTYPIST_ID> SolutionSchema ACROBAT