EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSimpleSFTPClient.UploadStream help

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#34993
Posted: 11/12/2015 16:20:17
by mee b (Basic support level)
Joined: 11/12/2015
Posts: 4

I try to use TElSimpleSFTPClient.UploadStream but this error raised:
I passed stream file to UploadStream.

at SBSftp.TElSftpClient.OpenFileSync(String Filename, Int32 Modes, TElSftpFileAttributes Attributes)
at SBSimpleSftp.TElSimpleSFTPClient.OpenFile(String Filename, Int32 Modes, TElSftpFileAttributes Attributes)
at SBSimpleSftp.TElSimpleSFTPClient.UploadStream(Stream LocalStream, String RemoteFileName, TSBFileTransferMode Mode, Int64 RestartFrom)
at SBSimpleSftp.TElSimpleSFTPClient.UploadStream(Stream LocalStream, String RemoteFileName, TSBFileTransferMode Mode)
at SFTPLib.SFTPManager.UploadStream(Stream localfile, String parRemoteName)

I am using SBB 12.0.265 with an evaluation license.
#34995
Posted: 11/12/2015 16:32:41
by Eugene Mayevski (EldoS Corp.)

1) Please upgrade to version 14.
2) your message doesn't contain any information about the error. Please provide one.


Sincerely yours
Eugene Mayevski
#34997
Posted: 11/12/2015 16:41:26
by mee b (Basic support level)
Joined: 11/12/2015
Posts: 4

I attached the error.
this version (SBB 12.0.265 ) has any problem for uploadstream?


my code is:
System.IO.Stream localfile= new System.IO.MemoryStream(FileUpload1.FileBytes);
_client.OnProgress += OnProgress;
_client.UploadStream(localfile, parRemoteName, TSBFileTransferMode.ftmOverwrite);


#34998
Posted: 11/12/2015 16:53:11
by Eugene Mayevski (EldoS Corp.)

There are no problems with version 12, but we don't provide support for old versions to unlicensed users.

In your case the message is too generic to make any conclusions but I guess that you pass the filename in a parRemoteName parameter, which is not valid. Could you please show me the exact value of what you pass in parRemoteName?


Sincerely yours
Eugene Mayevski
#34999
Posted: 11/12/2015 17:01:38
by mee b (Basic support level)
Joined: 11/12/2015
Posts: 4

I set parRemoteName ="Outgoing".
this is sftp out going folder
#35002
Posted: 11/13/2015 00:41:07
by Eugene Mayevski (EldoS Corp.)

You must specify complete file name with absolute path, such as "/path/to/remote/filename.ext". Note the leading slash.


Sincerely yours
Eugene Mayevski
#35015
Posted: 11/13/2015 11:08:50
by mee b (Basic support level)
Joined: 11/12/2015
Posts: 4

thanks for your support and guidance.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 3927 times

Number of guests: 6, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!