8000 Unable to retrieve part of an object through CloudFilesProvider.GetObject · Issue #628 · openstacknetsdk/openstack.net · GitHub
[go: up one dir, main page]

Skip to content

Unable to retrieve part of an object through CloudFilesProvider.GetObject #628

@harshanandmv

Description

@harshanandmv

I am able to get the entire file using CloudFilesProvider.GetObject. But not able to pass in a range to retrieve part of that object. Its supported by Swift, but the SDK doesnt support it.

System.IO.Stream stream = new System.IO.MemoryStream(110);
Dictionary<string, string> headers = new Dictionary<string,string>();

headers["Range"] = string.Format("bytes={0}-{1}", 0, 99);

cloudFilesProvider.GetObject("images", "test.jpg", stream, 4096, headers, region, false, null, false, null);

I get a System.ArgumentException with "The 'Range' header must be modified using the appropriate property or method."

Can someone help?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0