This
functionality retrieves a document from the SMS Server. There are different methods - one
method retrieves the complete document in a file whose path is specified by the
userUser,
another method retrieves the complete document in a buffer and yet another
method retrieves a specified pPage of the document in a buffer.
Usage in Visual
C++/Visual Basic Application
Usage in Visual C++/Visual Basic
Application
Prototype
int WINAPI NGISGetDocInFile(
LPTSTR cabinetName, LPISINDEX isIndex,
LPTSTR userIndex, LPTSTR fileName,
LPTSTR siteName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
isIndex |
A pointer to a variable of type ISINDEX. The structure
ISINDEX contains information ( |
|
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
fileName |
Full Path of the file in which the document data will be fetched. |
Not null |
Input Parameter |
siteName |
Name of the |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.
Prototype
int WINAPI NGISGetDocInFile_MT (
CSocket * m_pSock, LPTSTR siteAddress, short portId,
LPTSTR cabinetName, short siteId, short
m_sVolumeId,
int m_nDocIndex, LPTSTR userIndex,
LPTSTR fileName, LPTSTR siteName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
m_pSock |
A pointer to a variable of type Csocket |
A valid socket connection to JTS |
Input Parameter |
siteAddress |
IP |
IP |
Input Parameter |
portId |
Port on which JTS Server is running. |
short>0 |
Input Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
siteId |
Index of the |
short > 0 |
Input Parameter |
m_sVolumeId |
Index of |
short>0 |
Input Parameter |
m_nDocIndex |
Index of the document in |
int>0 |
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
Null |
Input Parameter |
fileName |
Full path of file in which Image Server will |
Not null |
Input Parameter |
siteName |
Name of the |
N/A |
Output Parameter |
Output Parameters
This method
returns an integer which will be 1 in case of success else an error code will
be returned.
Prototype
int WINAPI NGISGetPage ( LPTSTR
cabinetName, LPISINDEX isIndex, LPTSTR userUserIndex,
short pageNo, TCHAR ** buf
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
isIndex |
A pointer to a variable of type ISINDEX |
|
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
pageNo |
Page |
int >0 |
Input Parameter |
buf |
Output Parameter buffer in which page data is returned. |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.
Prototype
int WINAPI NGISGetPageInFile_MT (
CSocket * m_pSock, LPTSTR siteAddress, short portId,
LPTSTR cabinetName, short siteId,
short m_sVolumeId,
int m_nDocIndex, LPTSTR userUserIndex, short pageNo,
LPTSTR fileName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
m_pSock |
A pointer to a variable of type CSocket |
A valid socket connection to JTS |
Input Parameter |
siteAddress |
IP |
IP address where JTS running |
Input Parameter |
portId |
Port on which the JTS Server is running. |
short>0 |
Input Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
siteId |
Index of |
short > 0 |
Input Parameter |
m_sVolumeId |
Index of |
short>0 |
Input Parameter |
m_nDocIndex |
Index of the document in |
int>0 |
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
pageNo |
Page |
short >0 |
Input Parameter |
fileName |
Full path of file in which Image Server will |
Not null |
Input Parameter |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.
Prototype
public int
JPISGetDocInFile( String cabinetName, JPISIsIndex isIndex,
String docFileName, JPDBString siteName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not null |
Input Parameter |
isIndex |
An object of type JPISIsIndex |
|
Input Parameter |
docFileName |
Full Path of the file in which the document data will be fetched. |
Not null |
Input Parameter |
siteName |
Name of the |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.
Prototype
public int JPISGetPage ( String cabinetName, JPISIsIndex isIndex,
String userUserIndex ,
int
pageNumber, ByteArrayOutputStream buf
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
isIndex |
An object of type JPISIsIndex |
|
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
pageNumber |
Page |
int > 0 |
Input Parameter |
buf |
Output Parameter buffer in which page data is returned. |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer which will be 1 in case of success else an error code
will be returned.
Prototype
public int
JPISGetPage_MT ( JtsConnection jtsCon, String jtsAddress, short portId,
String cabinetName, short siteId, short
volumeId,
int docIndex, String userUserIndex, int pageNumber,
ByteArrayOutputStream buf
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
JtsCon |
This object holds a connection to the JTS Server. However, it can be sent as
null, as a new
socket connection to JTS using second two parameters (jtsAddress and portId)
is created inside the function when the parameter is sent as null. |
Object of class JtsConnection having a connection to JTS |
Input Parameter |
JtsAddress |
IP |
IP address where JTS running |
Input Parameter |
portId |
Port on which JTS is running. |
short>0 |
Input Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
siteId |
Index of the |
short > 0 |
Input Parameter |
volumeId |
Index of |
short>0 |
Input Parameter |
docIndex |
Index of the document in the |
int>0 |
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
pageNumber |
Page |
int > 0 |
Input Parameter |
buf |
Output Parameter buffer in which page data is returned. |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.
Prototype
public int JPISGetDocInFile_MT
( JtsConnection jtsCon, String
jtsAddress, short portId,
String cabinetName, short siteId, short volumeId,
int docIndex, String userUserIndex, OutputStream buf,
JPDBString oSiteName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
JtsCon |
This object holds a connection to the JTS. However, it can be sent as
null, as a new
socket connection to JTS using second two parameters (jtsAddress and portId)
is created inside the function when the parameter is sent as null. |
Object of class JtsConnection having a connection to JTS |
Input Parameter |
JtsAddress |
IP |
IP |
Input Parameter |
PortId |
Port on which port JTS is running. |
short>0 |
Input Parameter |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameter |
SiteId |
Index of the S |
short > 0 |
Input Parameter |
VolumeId |
Index of the |
short>0 |
Input Parameter |
DocIndex |
Index of the document in |
int>0 |
Input Parameter |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameter |
Buf |
This is output stream in which document data is returned. |
N/A |
Output Parameter |
oSiteName |
Name of the |
N/A |
Output Parameter |
Output Parameters
This
method returns an integer which will be 1 in case of success else an error code
will be returned.
Prototype
public int JPISGetDocInFile_MT (
JtsConnection jtsCon, String jtsAddress, short portId,
String
cabinetName, short siteId, short volumeId,
int
docIndex, String userUserIndex, String docFileName,
JPDBString oSiteName
)
Input Parameters description
Name |
Description |
Valid Values |
Type Of Parameter |
jtsCon |
This object holds a connection to the JTS. However, it can be sent as
null, as a new
socket connection to JTS using second two parameters (jtsAddress and portId)
is created inside the function when the parameter is sent as null. |
Object of class JtsConnection having a connection to JTS |
Input Parameters |
jtsAddress |
IP |
IP |
Input Parameters |
portId |
Port on which port JTS is running. |
short>0 |
Input Parameters |
cabinetName |
Name of the Image Cabinet to which the User wants to
connect. |
Not Null |
Input Parameters |
siteId |
Index of the |
short > 0 |
Input Parameters |
volumeId |
Index of |
short>0 |
Input Parameters |
docIndex |
Index of the document in |
int>0 |
Input Parameters |
UserIndex |
This parameter is reserved and it can be used with the
default value. |
null |
Input Parameters |
docFileName |
Full path of file in which Image Server will bring full
data of document. |
Not null |
Input Parameters |
oSiteName |
Name of the site from where document is fetched. |
N/A |
Output Parameters |
Output Parameters
This
method returns an integer that will be 1 in case of success else an error code
will be returned.