Subject: Re: Small binary files are getting transferred but not the larger ones in libssh2 SFTP

Re: Small binary files are getting transferred but not the larger ones in libssh2 SFTP

From: kali muthu <direct2kali_at_gmail.com>
Date: Wed, 16 Mar 2011 19:35:35 +0530

I have resolved my issue and it is on my end only. I used the redirection
operator (<<) for writing into the file which actually writes formatted data
and just found out that in C++ iostream::write will write
data unformatted into the file. Thanks guys for your support and it was
indeed invaluable. Kudos to you and again thanks a lot.

-- 
Regards,
Kali
On Wed, Mar 16, 2011 at 3:23 PM, Jose Baars <peut_at_peut.org> wrote:
> Op 3/16/2011 9:47 AM, kali muthu schreef:
>
>
>> Is there any other way to transfer these kind of files? Or is this issue
>> specific to me?
>>
>
> Obviously you have not yet understood what a binary file is.
> Please read the Wiki page again. Binary files have NUL characters. Always.
>
> Your program contains a severe bug: it stops reading when a NUL
> character is found in the data. That is wrong.
>
> Throw your program away, and start afresh using a libssh2 example.
>
>
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-03-16