LabVIEW Cloud Toolkits

cancel
Showing results for 
Search instead for 
Did you mean: 

File corruption by 'Trim whitespace' while uploading to S3 bucket

I am using toolkit example,'Upload File to Bucket.vi'. When I uploaded TDMS file to AWS s3 buckets, the file size was reduced. The problem is caused by 'Trim Whitespace.vi' in internal API. 

chisbae_0-1596075399188.png

We can reproduce this problem with a simple example I attached. When we upload txt. file generated from attached vi(Write test txt.vi), The size of the file is reduced from 600 KB to1Byte. Because space constant has been deleted. 

 

The biggest problem is that sometimes the uploaded TDMS doesn't open when downloaded again. It's not always like that, but the white space of the file divided into Chunk units disappears, so the file seems to be completely destroyed. Has anyone experienced the same problem? Do you know how to solve it?

 

 

 

 

 
 

 

 

Message 1 of 3
(1,901 Views)

In the manual related to AWS S3, 'Trim' function that functions the same was found. However, it has not yet been found how this function is related to LabVIEW Toolkit.

0 Kudos
Message 2 of 3
(1,893 Views)

I came across this a similar bug while writing an API for S3 Glacier. I got timeout 56 when uploading TDMS parts that started or ended with whitespace because the request body was incomplete.

 

The request body should not be trimmed in Make HTTP Request v4.vi. Is there a reason for Trim Whitespace to be there in the first place?

0 Kudos
Message 3 of 3
(1,445 Views)