You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to download file for storj V3 network , for this purpose . i am using download_read function of the libuplinkc library
I have uploaded 999.4 KB of file on storj V3 network by using upload_write . i have created an array of size 200,00 and uploaded byte data on storj V3 network after reading data in chunk .
upload_write function is working fine it is uploading data of size 200,00 but when i am trying to download or read data from storj V3 network using download_read. i have some issue .
I passed length 200,00 to function download_read function but function downloads maximum 7408 size of stream from the storj V3 network .
I have added some print statement to the libuplinkc library.
Output of the following code
Question :
What is maximum size of downloading & uploading stream of data (upload function is uploading 200,00 size of data but download function is only downloading 7408 size of data )?
Why download function is downloading max size of 7408 ?
The text was updated successfully, but these errors were encountered:
The amount of data being returned by Read depend on the different buffer sizes in uplink and storagenode, which may vary and change.
There are buffers in multiple places and Read returns as much as possible immediately without doing extra requests.
The length should be regarded as a the buffer size and returned size as how much was read. This does not imply anything about how much data actually can be read. So, in one call it could return 100B and in another 1MB.
To download all the content, you need to call download_read until you read 0 bytes or receive an error.
I am trying to download file for storj V3 network , for this purpose . i am using download_read function of the libuplinkc library
I have uploaded 999.4 KB of file on storj V3 network by using upload_write . i have created an array of size 200,00 and uploaded byte data on storj V3 network after reading data in chunk .
upload_write function is working fine it is uploading data of size 200,00 but when i am trying to download or read data from storj V3 network using download_read. i have some issue .
I passed length 200,00 to function download_read function but function downloads maximum 7408 size of stream from the storj V3 network .
I have added some print statement to the libuplinkc library.
Output of the following code
Question :
The text was updated successfully, but these errors were encountered: