on 04-22-2009 2:37 PM
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
Sorry,
I forgot to close this thread, my apologies. I have solved the issue, it was just a corrupt file.
regards
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To which property have you assigned this calculated attribute:
Also when are you calling the image : onLead or on click of button??
Thanks and Regards,
Narayani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.