You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/10/20 02:37:35 UTC

svn commit: r1709494 - /olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext

Author: chrish
Date: Tue Oct 20 00:37:35 2015
New Revision: 1709494

URL: http://svn.apache.org/viewvc?rev=1709494&view=rev
Log:
CMS commit to olingo by chrish

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext?rev=1709494&r1=1709493&r2=1709494&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext Tue Oct 20 00:37:35 2015
@@ -158,6 +158,7 @@ To read the content to a media entity, w
 
     ::::java
     private static final String MEDIA_PROPERTY_NAME = "$value";
+    private List<Entity> advertisments;
     
     public byte[] readMedia(final Entity entity) {
         return (byte[]) entity.getProperty(MEDIA_PROPERTY_NAME).asPrimitive();
@@ -166,8 +167,6 @@ To read the content to a media entity, w
 If we update the content of a media entity, we must also set the the Content Type of the content.
 
     ::::java
-    private List<Entity> advertisments;
-    	
     public void updateMedia(final Entity entity, final String mediaContentType, final byte[] data) {
         entity.getProperties().remove(entity.getProperty(MEDIA_PROPERTY_NAME));
         entity.addProperty(new Property(null, MEDIA_PROPERTY_NAME, ValueType.PRIMITIVE, data));