Skip to Content
0
Apr 22, 2009 at 01:37 PM

Attachment in MI 7.1

19 Views

Hi all,

I'm currently exploring the possibilities to send attachments with MI7.1 to the mobile device. I've made everything in backend and middleware for this and i've managed to get the attachments on the client. In my case, the attachments are jpg files. Now I want to show the jpg on the client using the image ui element. To do this, i've read a blog written by Narajani, which described the procedure: using a calculated string attribute in the view context, bind the ui element to this attribute...

I'm not able to see the image, however i've checked the string attribute and it was not empty, it contains a url like:

//localhost:50080/dispatcher/demo.sap.com~attachorderapp/Components/com.sap.demo.attachorderapp.orderattachapp.comp.OrderAttachComp/JPGImage62723.jpg

I also did a toString on the blob inputstream object which returns:

com.sap.tc.mobile.cfs.pers.jdbc.core.JDBCBLOBInputStream@ff8660

So i'm pretty positive there is a jpg file on the client. I think i'm doing something wrong with the url. For this i've used(pseudocode) res = WDWebResource.getPublicCachedWebResource; res.geturl

any advice would be more than welcome

regards

Peter