This method transfers a file to the HTTP(S) server.
Parameters
Name | Explanation |
---|---|
RemoteFilePath | The destination on the HTTP(S) server where the file is to be saved. Includes path and file name |
TransPercent | The percentage of the file that is tranferred before the ImageKit Progress event is generated |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The HTTPPutFileEx method transfers a file to the HTTP(S) server. This method can only be executed from the client computer. It does not operate on the server. The TransPercent parameter sets the amount of transfer in percentage before the ImageKit Progress event fires. For example, if the TransPercent = 10, the ImageKit Progress event will fire 10 times, 1 time for each 10% of file transferred.
The file to be transferred is specified by the FileName property.
Example Code:
Visual Basic
If ImageKit1.File.HTTPConnect("www.newtone.co.jp", "", 443, True,
"User", "Password") = False Then Exit Sub
ImageKit1.File.FileName = "C:\Images\001.jpg"
Call ImageKit1.File.HTTPPutFileEx("images/001.jpg", 10)
Call ImageKit1.File.HTTPDisconnect()
Visual C++
if (ImageKit1.GetFile().HTTPConnect("www.newtone.co.jp", "", 443,
TRUE, "User", "Password") == FALSE) return;
ImageKit1.GetFile().SetFileName("C:\\Images\\001.jpg");
ImageKit1.GetFile().HTTPPutFileEx("images/001.jpg", 10);
ImageKit1.GetFile().HTTPDisconnect();