Skip to Content

Offline Application - oData - Offline Media Stream Setup

Hi all,

i made an offline application with the SAP Web IDE and the "SAPUI5 Master Detail Kapsel Offline Application" with Datas from my SAP-backend via an oData-Service. The Registration is on our SMP 3.0.9.

And now i want to get Media-files like images, pdfs,... into my Offline Application.

I've built an Media-Stream in my oData-Service to get an image.

"'000010005901')/$value" - everything works fine and i cann see the jpg image in my browser for example.

Now i've found the informations for the "Offline Media Stream Setup" -

But i don't understand how i have to define the request: (Getting Started with Kapsel - Part 10 -- Offline OData (SP09+) did also not help me, because in the chapter "Binary Data/Attachments" is no description for this topic)

"definingRequests" : {

  "req1" : { "url" : "/Drivers", "retrieveStreams" : true }


At the moment in my app it looks like this, because i'm referencing from QmelSet to Viqmel - this works fine.

"definingRequests": QmelSet: "/QmelSet?$expand=Viqmel"

How do i've to implement this line of code for the Media-Stream and does anybody have an example for me, how to get the Media-Files into my Application (Donwloadlink or directly shown).

I'm a Beginner in this topic.

Thank you very much!!!

I've also added my metadata-file - important are only the Qmel and Viqmel. (2.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 05, 2015 at 08:01 AM

    Hi Björn,

    I have tried that above approach, but I didn't find a way to implement GET_ENTITYSET for a media entity object.

    Instead of setting the entity in the gateway as media, I have unchecked and implemented GET_ENTITY/GET_ENTITYSET and returning the document content as raw string(xstring). This is working for me but it effect on the performance to download bunch of documents.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 01, 2015 at 10:42 AM

    Hi Bjorn,

    I would like to include @Daniel Van Leeuwen to comment on this issue.

    Kind Regards,

    Add comment
    10|10000 characters needed characters exceeded