on 06-06-2008 4:21 AM
hai all,
please help me in getting the image in the backend (database) (eg photo of employee)to my view.help me with codings and step by step procedure.Any help in this regard will be appreciated.
Regards
Sharanya.R
Hi,
Following blog explains this.
/people/anilkumar.vippagunta2/blog/2007/02/20/reading-and-writing-images-from-sqlserver-in-webdynpro
If your database is not the one mentioned, align your driver and datasource to that.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you mean from R/3 or other databases?
R/3: you can have an RFC which returns the binary of picture and image can be constructed (from binary) with the same code as in the previous thread.
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
place ImageUI in the view and bind it to a context attribute of type string.
If you show only one record, this is enough you can use the code after executing the RFC(getting binary). And the whole thing you can use in the Action part or in DoInit().
If you are getting all the records in table and on lead select you want to show picture, onLeadSelect you execute the RFC which returns the binary.
in the Model Node, create a sub node and an attribute of string. bind that string attribute to Image. Make its property calculated true and read only true. In the get<attribute> method, execute the RFC and do all coding there itself. Thre return value is the URL of Resource.
hope you understand else be specific on requirement
nikhil
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.