Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GetObjectStream method doesn't return full stream (only get a few lines of the file) #23

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I tried to get an object from S3 by using GetObjectStream method. I added 
bucket and key as parameters, and got the full length of the stream.

below is my code.

 var stream = s3Service.GetObjectStream(bucketFullPath, key);

 int streamLength = FileSize;

 byte[] Data = new byte[streamLength];

 stream.Read(Data, 0, streamLength);

 stream.Close(); 

When I checked the Data[], I found it only contains a few thousands of 
valid byte, followed by massive white spaces.
I am using version 1.0.1 zip, with VS 2008

Any Help?

Original issue reported on code.google.com by rong.zh2...@gmail.com on 23 Sep 2009 at 7:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant