How to display a image in webdynpro view using a bytearry
Hi Frndz..
How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
*byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
by using this i need to show image in view..
Kindly help me ....
Thankas in Advance
Regards
Rajesh
Hi,
byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
imageEle .setVa_Name(res.toString());
wdContext.nodeVn_ImageTab().addElement(imageEle);
Hope this may help you.
Deepak
Similar Messages
-
How do you display a new image in webdynpro view?
How do you display a new image in webdynpro view?
Where is the image stored and how do we specify the image path?hi ,
The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
saveur image as mime
with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
Right click on ur component->mime object->import
In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
also refer the SAP online help :
http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
to knw more abt mime repositories.
http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
regards,
amit -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
How to Display an Image on my FORM
Good Day!
I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
However, instead of showing the image on a region, below is the one showing on my Form:
<img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
As you can see the parameter values are the same but I know I missed something that's why I'm here :)
I would highly appreciate all the help you can provide and many thanks in advance.
I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
Below are the scripts.
declare
cursor cur is
select *
from wsemployee
where empid = :P230_EMPID;
begin
for rec in cur
loop
IF rec.mime_type is not null or rec.mime_type != '' THEN
htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
else
htp.p( 'No Image ');
END IF;
htp.p( ' ');
end loop;
end;
PROCEDURE
create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
INTO l_mime,lob_loc,l_file_name,l_length
FROM wsemployee
WHERE empid = p_image_id;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || l_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
END my_image_display;
Edited by: user13831927 on Dec 22, 2012 3:24 PMHi Ying,
you can add a UDF to the table spp2 with a programm
but the table is not yet listed in the 'Manage User Fields' form.
there's no way to "enable" it - sorry -
How to display an Image which is on Panel behind JScrollPane - Please Help
Hiii All,
How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
Thanks,
Piushyou need to set both
scrollPane.setOpaque(false);
scrollPane.getViewport().setOpaque(false); -
How to display an image in an alv grid in each corresponding row?
Hi,
please tell me how to display an image in an alv grid in each corresponding row, like;;
tony 23 newyork <image>
Mkitharyan 63 washington <image>
NOT BY HOTSPOTS/URL.you can put image in each cell you want:
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv( ).
DATA lo_value TYPE ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
data col type ref to CL_SALV_WD_COLUMN.
col = lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'IMAGE' ).
data image type ref to cl_salv_wd_uie_image.
CREATE OBJECT image.
image->SET_SOURCE_FIELDNAME( 'IMAGE' ).
COL->SET_CELL_EDITOR( image ). -
How to display an image, which is stored in a database?
Hi All,
I would like to display an image with Web Dynpro.
I already know how to display an image which is stored in the path src/mimes/Components/...
But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
Thanks in advance!
Regards,
SilviaHallo John,
yes, you can use the Image UI element.
Further you have to create a String for the URL. Implement like as follows:
IWDCachedWebResource cachedResource = null;
String imgUrl = null;
WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
IWDModifiableBinaryType binaryType =
(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
WDWebResourceType type = binaryType.getMimeType();
byte[] file = wdContext.currentXYElement().getPicDB();
if (file != null)
cachedResource = WDWebResource.getWebResource(file, type);
try
imgUrl = cachedResource.getURL();
catch (WDURLException e)
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
msgMgr.reportException(e.getLocalizedMessage(), true);
I hope it will help you.
Regards,
Silvia -
When opening a new tab, how do I get images of recently viewed pages to appear below the toolbars?
This works. I hadn't realized that this feature came from the Google toolbar. Thank you.
Robert -
How to Display 'purchase order text' in MM03 using report program
Hi Friends,
Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
'Purchase order text' tab displays purchase long text of particular material .
I coded as:
SET PARAMETER ID 'MXX' FIELD 'E'.
SET PARAMETER ID 'MAT' FIELD k_final-matnr.
SET PARAMETER ID 'WRK' FIELD k_final-werks.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
It displays Purchasing tab other than Purchase Order Text tab of MM03.
Please suggest me how can i solve this.
Is there any parameter id to set values for Purchase Order text tab>
Madhu Mano Chitra wrote:
> I want how to navigate to MM03 'Purchase Order text' tab/ view using ABAP code.
> could any suggest me
You can call a transaction and pass it a BDC table that tells it where you want it to go. You have to work out for yourself what to put into the BDC table. The code below works for tcode CATSSHOW.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'CATSSHOW'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SO_STATU-LOW'.
bdcdata_wa-fval = '20'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'ANDZEIT'.
bdcdata_wa-fval = SPACE.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'PAST'.
bdcdata_wa-fval = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
IF p_selscr = SPACE.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=ONLI'.
APPEND bdcdata_wa TO bdcdata_tab.
ENDIF.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt. -
Please tell how to store jpeg images in SQL Server using NI Database Connectivity Toolset.
http://www.w3schools.com/sql/sql_datatypes.asp
You setup a field as BLOB and store the binary of the picture there. Depending on the database it can be called differently as you can see in the link, in SQL server there's even a Image datatype.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
How Do You Spell Check in LIVE view using Fluid Grid
How Do You Spell Check in LIVE view using Fluid Grid???
When using LIVE view in Fluid grid... Spell Check is only available in Code view... which doesn't seem to work.
huh... it doesn't end!At the moment, you don't. The Adobe team is aware of it.
Provide "Design View" for Fluid Grid Webpages
Nancy O. -
How to display two grids in same screen using SALV Method
Hi Freinds,
Please let me know how to display two grids in same screen using SALV Method.
Thank you
Regards,
SDVUsing the same concept as described in How to dispaly Three Internal Table Data (One below another) in ALV OOPS .
All you need to add is passing your new containers as r_container parementer of factory method.
"1st one
cl_salv_table=>factory(
EXPORTING
R_CONTAINER = g_top_container
"2nd one
cl_salv_table=>factory(
EXPORTING
R_CONTAINER = g_bottom_container
Regards
Marcin -
How to display an image in a window ?
Hi all,
Could someone point me to a document that explains (preferably with code samples) how I go about displaying a JPEG image in a window.
What I'm eventually trying to create is a slideshow, but for now, I just want to add an image to a JFrame and have that display, and even this simple first step is beyond me. There seem to be quite a few different classes to deal with images, but I'm just looking for the simplest one.
With a view to my future requirements, I will want to be able to dynamically shrink an image so that it fits in the window, as well as cropping images so that the full resolution is displayed, but anything that doesn't fit in the window is chopped off.hi,
how to place an image in the cells of a grid and to drag and drop that image. i have the code to locate the postion of each cell on mouse click. now i want to place an image in particular cell and i want to drag and drop that particular image to other cells of grid.
is it possible.
pls give me a suggestion.
here my code:
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class Grid
public Grid()
GridPanel gridPanel = new GridPanel();
CellSelector cellSelector = new CellSelector(gridPanel);
gridPanel.addMouseListener(cellSelector);
JFrame f = new JFrame();
//ImageIcon ii= create ImageIcon("C:/Documents and Settings/sreehari.m/Desktop/new/java //pgm/new");
//cellSelector.addImageIcon();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(gridPanel);
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
public static void main(String[] args)
new Grid();
class GridPanel extends JPanel
double xInc, yInc;
final int
GRID_SIZE = 4,
DRAW = 0,
FILL = 1,
PAD = 20;
int[][] cells;
public GridPanel()
initCells();
protected void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
double w = getWidth();
double h = getHeight();
xInc = (w - 2*PAD)/GRID_SIZE;
yInc = (h - 2*PAD)/GRID_SIZE;
// row lines
double x1 = PAD, y1 = PAD, x2 = w - PAD, y2 = h - PAD;
for(int j = 0; j <= GRID_SIZE; j++)
g2.draw(new Line2D.Double(x1, y1, x2, y1));
y1 += yInc;
// col lines
y1 = PAD;
for(int j = 0; j <= GRID_SIZE; j++)
g2.draw(new Line2D.Double(x1, y1, x1, y2));
x1 += xInc;
// fill cells
g2.setPaint(Color.red);
for(int row = 0; row < cells.length; row++)
for(int col = 0; col < cells[0].length; col++)
if(cells[row][col] == FILL)
x1 = PAD + col * xInc + 1;
y1 = PAD + row * yInc + 1;
g2.drawString("("+row+","+col+")" , (int) x1+50, (int)y1+50);
//g2.drawString("("+Grid("+row+","+col+")+")" , (int) x1+50, (int)y1+50);
// g2.drawString("("")" , (int) x1+50, (int)y1+50);
// g2.fill(new Rectangle2D.Double(x1, y1, xInc - 1, yInc - 1));
public void toggleCellColor(int row, int col)
int mode = DRAW;
if(cells[row][col] == DRAW)
mode = FILL;
cells[row][col] = mode;
repaint();
private void initCells()
cells = new int[GRID_SIZE][GRID_SIZE];
for(int row = 0; row < cells.length; row++)
for(int col = 0; col < cells[0].length; col++)
cells[row][col] = DRAW;
class CellSelector extends MouseAdapter
GridPanel gridPanel;
public CellSelector(GridPanel gp)
gridPanel = gp;
public void mousePressed(MouseEvent e)
Point p = e.getPoint();
int col = 0, row = 0;
double x = gridPanel.PAD + gridPanel.xInc;
// find column
for(int j = 0; j < gridPanel.GRID_SIZE; j++)
if(p.x < x)
col = j;
break;
x += gridPanel.xInc;
// find row
double y = gridPanel.PAD + gridPanel.yInc;
for(int j = 0; j < gridPanel.GRID_SIZE; j++)
if(p.y < y)
row = j;
break;
y += gridPanel.yInc;
gridPanel.toggleCellColor(row, col);
} -
How to display BLOB image column with WEB application, JSF, ADF BC
I looking for a way to display the content from a blob column on a WEB application, JSF, ADF BC
The blob column contains a JPEG image.
About the application
The model contains a viewobject where the blob column attribute (photoimg) type is of type : BlobDomain
Now I have to create the view to display the content of photoimg inside a JSF-JSP page.
Any advice ?Search is your friend
How to display the content of a BLOB column in a ADF/BC pages ?
John -
How to display TIFF images?
Hello all.
My web application needs tiff images viewer with a very primitive functionality like zoom. I'm a new in working with graphics and it seems like java.awt.image package doesn't support TIFF images format. From searching this forum I understood there are 3 party products like JAI to work with those images.
Can somebody send me an example of how to read and display those images with zooming option; and/or how to convert from tiff to GIF/JPG formats (which also can be a solution for me).
If somebody has a ready applet that implements the required functionality and can share it with me, I would appreciate it very much.
Email: [email protected]
Thanks in advance.I am also looking for Tiff Image zooming functionality. Please through your ideas or suggestions. I will appreciate your advises. If anyone has developed API, Please let me know, I am ready to look in to it. I will appreciate your quick response.
Maybe you are looking for
-
How do I recreat a .mac site at the same address from a crashed hard drive?
Hey folks..i would really appreciate help with this one..its tricky.. I am a pro musician and I use my 3 year old macbook for everything..music, marketing, etc...Well it crashed last month and I lost EVERYTHING..(I know, I know..I'm and idiot for not
-
Windows 2008 R2 Sp1 Blue Screen Error and solution
Hi Guys its been like the 5th time i keep on getting this error on my exchange server which is hosted under Windows 2008 R2 Sp 1 this is the error below please help Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7601.2.1.
-
Attachment without multipart content type
Hello, My application receives mails sent from some different customers and parses the mail's attachments. The problem is that all these customers send their mails in a very different ways. Some of them send mails with "Content-Type: multipart/mixed;
-
Distribution Center in Sales Order Transaction ( For AFS )
Hi All, I have the following issue. In the 4.6 version when I create a Sales Order ( VA01) and hit enter, I can see a input/output field 'Distribution Center ' on the Right hand corner. I am able to see the same Distribution Center ( J_3ADCCU) even i
-
Configure the ACS 5.1 appliance to connect to the AD
Pls advise. This is a new installation.I did to configure the ACS to connect to the AD to authenticate users and retrieve the user information for group mapping as following step. Go to Users and Identity Stores > External Identity Stores > Active Di