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

Expand binary field and a test. #976

Merged
merged 8 commits into from May 28, 2020
Merged

Conversation

kavics
Copy link
Contributor

@kavics kavics commented May 23, 2020

The feature can be also tested by a link something like this:
https://<sn-testapp>/odata.svc/Root/System/Settings?metadata=no&$expand=Binary&$select=Name,Type,Binary

The selection chain also can be used: $select=Binary/Text,Binary/Message

@kavics kavics requested a review from tusmester May 23, 2020 06:14
@kavics kavics marked this pull request as ready for review May 23, 2020 06:20
private object ProjectBinaryField(BinaryField field)
{
return RepositoryTools.GetStreamString(
field.Content.ContentHandler.GetBinary(field.Name).GetStream());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use the same binary provider here as anywhere else when serving binary values.

DocumentBinaryProvider.Instance.GetStream

@kavics kavics requested a review from tusmester May 25, 2020 01:03
@tusmester tusmester merged commit 2368329 into develop May 28, 2020
@tusmester tusmester deleted the feature/926-expand-binary branch May 28, 2020 07:00
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

Successfully merging this pull request may close these issues.

None yet

2 participants