[Visual Basic] Public Function FtpUploadByteArrayToFile(ByVal remoteHost As String, ByVal remotePath As String, _ ByVal data As Byte()) As Boolean
[C#] public bool FtpUploadByteArrayToFile(string remoteHost, string remotePath, byte[] data);
パラメータ
- remoteHost
- DNS スタイルのドメイン名、または IP アドレス
- remotePath
- リモート パスの名称
- data
- バイト配列のデータ
戻り値
成功の場合は true 、失敗の場合は false を返します。
解説
FTP プロトコルの場合に有効です。
使用例
[Visual Basic.NET]
Dim Ret As Boolean
'ユーザ名とパスワード
ImageKit1.File.FtpCredentials = New NetworkCredential("user", "password")
'パッシブモード接続
ImageKit1.File.FtpPassive = True
'バイト配列のアップロード、dataはあらかじめ設定しておくこと
Ret = ImageKit1.File.FtpUploadByteArrayToFile("www.newtone.co.jp", "test/test.jpg", data)
[Visual C#.NET]
bool Ret;
//ユーザ名とパスワード
ImageKit1.File.FtpCredentials = new NetworkCredential("user", "password");
//パッシブモード接続
ImageKit1.File.FtpPassive = true;
//バイト配列のアップロード、dataはあらかじめ設定しておくこと
Ret = ImageKit1.File.FtpUploadByteArrayToFile("www.newtone.co.jp", "test/test.jpg", data);
参照
ImageKit.File メンバ | Newtone.ImageKit.Win.ImageKit