HTTPUploadThroughPutDirectly Method
Description
Directly upload a specific local file to the HTTP server through HTTP PUT method without loading it into Dynamic Webcam.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V7.0 | Since V7.0 | Since V7.0 |
Syntax
Boolean ObjectName. HTTPUploadThroughPutDirectly(String HTTPServer, String LocalFile, String HTTPRemoteFile)
Parameters
String HTTPServer: the name of the HTTP server.
String LocalFile: specifies the path of a local file.
String HTTPRemoteFile: the name of the file to be created on the HTTP server. It should a relative path on the web server.
Return value
Boolean.
TRUE indicates success. FALSE indicates failure.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Remarks
HTTPRemoteFile parameter should include the HTTP directory of the file.
Write permission of the specified directory is needed for uploading.
See also
FTPUserName property, FTPPassword property, FTPPort property, ProxyServer property, FTPDownload(), FTPUpload(), HTTPPort property, IfSSL property, HTTPUserName property, HTTPPassword property, HTTPDownload(),, HTTPUploadThroughPost()
Sample
A JavaScript sample is provided.
...
<script language="javascript" type="text/javascript">
Webcam = document.getElementById("iDynamicWebcam");//iDynamicWebcam is the id of the Dynamic Webcam on the page (An object or an embed).
function btnUploadDirectly_onclick()
{
Webcam.HTTPUploadThroughPutDirectly("localhost", "D:/temp/testData.zip", "/temp/testData.zip");
}
</script>
