[
https://issues.apache.org/jira/browse/OLINGO-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephan Klevenz resolved OLINGO-139.
------------------------------------
Resolution: Done
> Use of binary data
> ------------------
>
> Key: OLINGO-139
> URL: https://issues.apache.org/jira/browse/OLINGO-139
> Project: Olingo
> Issue Type: Question
> Affects Versions: V2 1.0.0
> Reporter: M Carissimi
> Assignee: Stephan Klevenz
>
> Hello,
> I have read your sample on how to use Media Resources by invoking method
> setHasStream(true) on an EntityType and I can see how this can be used to
> retrieve binary data using $value.
> I am trying to understand how this differs from the use of Binary properties.
> From what I can see, the media content of Binary properties is embedded (in
> an encoded format) in the odata feed, where as media content accessed via the
> $value property is only returned when requested.
> I have a table where binary data is stored in two separate columns. Do I need
> to use Binary properties for these two columns and always embed the encoded
> binary data in the odata feed or can I use the $value method to retrieve
> binary data only when requested? How would I configure this as the
> setHasStream(true) is applicable to the whole EntityType rather than to a
> single property?
> Cheers
> Miki
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)