LEADTOOLS JPEG 2000 (Leadtools.Jpip assembly)
LEAD Technologies, Inc

Encode Method






The Leadtools.Jpip.RequestFields to be transmitted to the JPIP server.
A System.String value identifying the server URI.
An array of bytes to be sent in the request message body. This value can be null.
Encodes JPIP parameters and creates a valid System.Net.HttpWebRequest.
Syntax
public HttpWebRequest Encode( 
   RequestFields fields,
   string path,
   byte[] postedData
)
'Declaration
 
Public Function Encode( _
   ByVal fields As RequestFields, _
   ByVal path As String, _
   ByVal postedData() As Byte _
) As HttpWebRequest
'Usage
 
Dim instance As HttpRequestEncoder
Dim fields As RequestFields
Dim path As String
Dim postedData() As Byte
Dim value As HttpWebRequest
 
value = instance.Encode(fields, path, postedData)
public HttpWebRequest Encode( 
   RequestFields fields,
   string path,
   byte[] postedData
)
 function Leadtools.Jpip.RequestEncoder.HttpRequestEncoder.Encode( 
   fields ,
   path ,
   postedData 
)
public:
HttpWebRequest^ Encode( 
   RequestFields^ fields,
   String^ path,
   array<byte>^ postedData
) 

Parameters

fields
The Leadtools.Jpip.RequestFields to be transmitted to the JPIP server.
path
A System.String value identifying the server URI.
postedData
An array of bytes to be sent in the request message body. This value can be null.

Return Value

An System.Net.HttpWebRequest ready to transmit the JPIP request to the server.
Remarks

If postedData is specified, the System.Net.HttpWebRequest will be created with a POST method and all fields will be encoded to the message body.

You can use the postedData parameter to optimize the process of encoding when sending cache information.

If postedData is null the System.Net.HttpWebRequest will be created with a Get method with the fields encoded in the request URL.

Example
For an example, refer to HttpRequestEncoder.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HttpRequestEncoder Class
HttpRequestEncoder Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Jpip requires a JPIP Module and a server license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features