Click or drag to resize

IDocStorageServiceSaveDocumentFromUrl Method

Save a document to the document storage repository where the source is a URL

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
string SaveDocumentFromUrl(
	IAppContext cxt,
	string url,
	string relatedID,
	string fileName,
	string mimeType,
	string documentType,
	string description,
	string docId,
	DocStorageOptions options
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
url
Type: SystemString
The URL for the file to save.
relatedID
Type: SystemString
The primary key to the owning record in the originating mapper.
fileName
Type: SystemString
The "pretty" name of the file.
mimeType
Type: SystemString
The document MIME content type (e.g. "image/gif").
documentType
Type: SystemString
The application-specific document type.
description
Type: SystemString
The document description.
docId
Type: SystemString
The ID of the existing document that this document should replace if it exists.
options
Type: NetQuarry.ServicesDocStorageOptions
Options regarding the document save.

Return Value

Type: String
The document ID in the repository.
See Also