Hi Vincenzo,

In general Olingo support creation of media resources as described here:

  http://msdn.microsoft.com/en-us/library/dd942074.aspx

A precondition is that the EntityType is flagged with the HasStream
attribute:

  <EntityType Name="MyMediaResource" m:HasStream="true">

I am not sure if this feature is already supported by the JPA processor.
Maybe Chandan can clarify this.

If not then I recommend to open a feature request here:

  https://issues.apache.org/jira/browse/OLINGO

Regards,
Stephan

On 05.12.13 18:33, "Vincenzo Turco" <[email protected]> wrote:

>Hi all,
>I am using Olingo with great satisfaction in my current project and would
>be really grateful if I could get any help on an issue I'm facing.
>Apologies in advance if this is not the appropriate DL for this kind of
>questions.
>
>I am successfully exposing my database using an ODataJPAServiceFactory.
>One of the entities in my db represents a "File" and has a property of
>type
>Edm.Binary which at the db level is a BLOB. In my understanding this kind
>of situation should be handled with a media-type entity. In the "advanced"
>section tutorial, I can see that such scenario is handled by Olingo in the
>case of a read operation.
>
>However, I'd need to perform a create (i.e. upload) operation as well.
>I would highly value if anyone could help me achieve the upload/download
>feature with olingo.
>
>Apologies in advance if my question is naive of poorly described, but I'm
>pretty new to odata and olingo.
>Thanks a lot for your support and attention
>Regards
>
>-- 
>
>
>Vincenzo Turco

Reply via email to