google-api-dotnet-client: Storage: file not found with slash inside the path
What steps will reproduce the problem?
code snipped:
var certificate = new
X509Certificate2(@.....", "notasecret", X509KeyStorageFlags.Exportable);
ServiceAccountCredential credential = new ServiceAccountCredential(
new ServiceAccountCredential.Initializer(serviceAccountEmail)
{
Scopes = new[] { StorageService.Scope.DevstorageReadOnly }
}.FromCertificate(certificate));
// Create the service.
var storageService = new StorageService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
});
//this could be downloaded
//var getRequest = storageService.Objects.Get("bucket_di_prova", "nomesenzaspazi.jpg");
/this one can not be downloaded
var getRequest = storageService.Objects.Get("bucket_di_prova", "test/nomesenzaspazi.jpg");
Console.WriteLine(getRequest.Generation);
using (var fileStream = new System.IO.FileStream(
"C:\\Users\\LucaDC\\Downloads\\nomesenzaspazi.jpg",
System.IO.FileMode.Create,
System.IO.FileAccess.Write))
{
getRequest.Download(fileStream);
}
What version of the product are you using? Google.Apis.Storage.v1beta2 Client
Library 1.8.1.410
What is your operating system? windows 7
What is your IDE? Visual Studio express 2010
What is the .NET framework version? 4.5
the object "test/nomesenzaspazi.jpg" saved in the file system contains the
text: NOT FOUND, the object "nomesenzaspazi.jpg" is saved correctly (an image)
Original issue reported on code.google.com by giordano...@noovle.it on 28 Mar 2014 at 12:15
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 35