Click or drag to resize

IDocStorageServiceSaveFile Method

Saves a file to the document storage repository

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
DocStorageFileInfo SaveFile(
	IAppContext cxt,
	Stream stream,
	InputStreamType streamType,
	string pk,
	string name,
	string mimeType,
	string docType,
	string desc,
	string docId
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
stream
Type: System.IOStream
The stream of file content.
streamType
Type: NetQuarryInputStreamType
The type of stream.
pk
Type: SystemString
The primary key to the owning record in the originating mapper.
name
Type: SystemString
The "pretty" name of the file.
mimeType
Type: SystemString
The document MIME content type (e.g. "image/gif").
docType
Type: SystemString
The application-specific document type.
desc
Type: SystemString
The document description.
docId
Type: SystemString
The ID of the existing document that this document should replace if it exists.

Return Value

Type: DocStorageFileInfo
A DocStorageFileInfo object
See Also