on 09-16-2009 8:14 AM
Hi Bsp Guru's
Please let me know, How to display the image in xstring in data base table to BSP page layout.
Correct answer is rewarded with points.
Regrds,
Raju
Hi,
Try to create a simple BSP/HTML page that will do something like <%= wv_xstring %>, and set the mime type of this page to image/jpeg (or whatever encoding is your image).
Then, in the page that is supposed to display the image, just do something like : < i m g s r c = "previous_bsp_here" / >
I think this should work.
Good luck and have fun.
Edited by: Thomas Villarubias on Sep 16, 2009 9:28 AM (hints to display HTML code...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i've almost the same question...
I have a BSP application (CRM Webclient) where I need to set the customer picture.
I call a Web Service (with the clientnumber) and I get the picture back in an xstring.
Currently, I have:
WS:=> In Model
CALL FUNCTION 'Z_PICMAN_SERVICE'
EXPORTING
clientnumber = lv_clientnr
IMPORTING
resultstring = lv_photostring.
Img tag: (In BSP)
<htmlb:image src = "<%= model->lv_photostring %>"
height = "150"
width = "120" />
But the picture is not displayed at the screen.
Any idea's?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hans.
Please have a look at my previous post. You must create a BSP in which you'll write the content of your image (xstring) and set the content type as image/jpeg, or image/png, whatever is your image encoding.
Then, in your first BSP, the image tag has to call the "image BSP" in the src attribute.
Just try it and let us know if it works.
Have fun!
Created mijn image tag:
<htmlb:image src = "photo.htm"
height = "150"
width = "120" />
and my new BSP page:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form encodingType="image/jpeg" >
<%= lv_photostring %>
</htmlb:form>
</htmlb:page>
</htmlb:content>
+ mime type is set at properties => image/jpeg
With no result...
I'm doing something wrong?
Hi,
I never use HTMLB, so I don't know how to use it. I see a HTMLB : FORM tab in your sample code, well, I don't if it's usefull.
Have you tested photo.htm alone? Does it display your image? And the source code (from the web browser) must be empty (no HTML code).
Try to put this on the page:
<%@page language="abap" %>
<%= lv_photostring %>
That should be enough if the page property sets the encoding to image/jpeg.
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raju,
In HTMLB there is
<HTMLB img src>
tag......
by this you can display..it in the layout..
or
once you upload a image into to Database it will generate the LINK...you need to pass the link to that source.....
Hope this will be helpfull..let me know if you have any more concerns
Thanks
kalyan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.