Display images in original dimensions
Hi,
I have a report that contains the blob field from the database to display the images,
All i need is to display the images in their original sizes that is if the image is big display it as big and vice versa
I tried an option of can grow but it doesn't suffice my need as it is just expanding the image vertically and not horizontally
so is there any formula or some other option to handle that ????
Thanks.................................
What version of CR Designer are you using?
Similar Messages
-
Batch Print Images in Their Original Dimensions CS5?
How can I batch print multiple images that have various dimensions and have them printed at their original dimensions? I used to be able to do this in CS3 but now I'm using CS5 Creative Suite in Windows 7, all the images are printed at the same dimensions. Any help would be greately appreciated.
Then again it may have to do with the images you recorded the action with. It might have been small and center images was checked so the offsets are large. I do not know the answer I don't Batch print and have not create actions with print steps. You may want to try to recorde the action a bit differently. Open a document (image) then go through the steps to print it. That is Open the print dialog and select the printer and set up its defaults paper and orientation like landscape from paper tray 8.5 x 11. After doing that don't print just exit the print dialog. You may want to download my crafting action package there is a utility script that will rotate protrait images to lanscape you may want to include in you action and an other long side print size it you want to fit the image to the paper. Any way when you record the action print step record menu File>Print One Copy. Print One Copy does not record anything about size.
http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
Contains:
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action http://www.mouseprints.net/old/dpr/WM900x600.jpg
Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
12 Scripts for actions -
Recommended image size and dimensions for images displayed on iPad retina?
What are the recommended dpi image size and dimensions for images designed in DPS app as displayed on an iPad retina?
Take a look at the following link:
http://blogs.adobe.com/indesigndocs/2012/03/guidelines-for-creating-folios-for-ipad-3.html -
Open and display image in MVC layout
Hello!
I cant figure out how I shall do this in an MVC layout:
The program request user to open an image file that are then displayed in a JLabel
My setup at the moment resolve in a nullpointerexeption because it dont get any actual image file, but I dont understand what I have missed.
I can not post the whole code fo you to run because it is to big, so I post the part that are the most important. please have a look.
PicturePanel
//Import Java library
import javax.swing.*;
import java.awt.*;
public class PicturePanel extends JPanel {
//Variables
private ImageIcon picture;
//Method to get information of the selected file
PicturePanel (String fileName) {
picture = new ImageIcon (fileName); //Get the filename
int w = picture.getIconWidth(); //Get the image with
int h = picture.getIconHeight(); //Get the image height
//Set preferable size for the image (Use the properties for the selected image)
setPreferredSize(new Dimension(w, h));
setMinimumSize(new Dimension(w, h));
setMaximumSize(new Dimension(w, h));
//Method to draw the selected image
protected void paintComponent(Graphics g) {
super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
}From my model:
//Local attributes
boolean check = false; //Used to see if a statement is true or not
PicturePanel pp;
JFileChooser fc;
int returnVal;
//newFile in File menu
public void newFile() {
//Open a file dialog in users home catalog
fc = new JFileChooser();
//In response to a button click:
returnVal = fc.showOpenDialog(pp);
System.out.println("You pressed new in file menu");
}From my controler:
//User press "New" in File menu
else if (user_action.equals("New")) {
//Call method in model class
model.newFile();
//Update changes
if (model.returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("Hello1");
File f = model.fc.getSelectedFile();
if (model.pp != null)
model.pp = new PicturePanel(f.getAbsolutePath());
System.out.println("Hello2");
//Display image (Here is line 83)
view.setImage_DisplayArea(model.pp);
System.out.println("Hello3");
}From my view:
//Sets the image to be displayed on the image_display area (Here is line 302)
public void setImage_DisplayArea(PicturePanel pp) {
image_display.add(pp);
}The complet error:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1015)You pressed new in file menu
Hello1
Hello2
at java.awt.Container.add(Container.java:351)
at View_Inlupp2.setImage_DisplayArea(View_Inlupp2.java:302)
at Control_Inlupp2.actionPerformed(Control_Inlupp2.java:83)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1050)
at apple.laf.CUIAquaMenuItem.doClick(CUIAquaMenuItem.java:119)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1091)
at java.awt.Component.processMouseEvent(Component.java:5602)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Edited by: onslow77 on Dec 16, 2009 5:00 PM
Edited by: onslow77 on Dec 16, 2009 5:04 PMHello again!
Anyone that can help me figure out how to implement this in an MVC layout, I feel stuck.
I post a little program that open and display an image file so that you better can understand what I whant to do.
ShowImage
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.swing.filechooser.*;
public class ShowImage extends JFrame{
//Variables
JFileChooser fc = new JFileChooser();
PicturePanel pp = null;
ShowImage () {
super("Show"); //Title
//Create the GUI
JPanel top = new JPanel();
add(top, BorderLayout.NORTH);
JButton openBtn = new JButton("Open");
top.add(openBtn);
openBtn.addActionListener(new Listner());
//Settings for the GUI
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setVisible(true);
class Listner implements ActionListener {
public void actionPerformed(ActionEvent ave) {
int answer = fc.showOpenDialog(ShowImage.this);
if (answer == JFileChooser.APPROVE_OPTION){
File f = fc.getSelectedFile();
//Check
System.out.println(f);
System.out.println(pp);
if (pp != null)
remove(pp); //Clean so that we can open another image
//Check
System.out.println(pp);
//Set the PicturePanel
pp = new PicturePanel(f.getAbsolutePath());
//Check
System.out.println(pp);
//Add PicturePanel to frame
add(pp, BorderLayout.CENTER);
validate();
pack();
repaint();
//Main
public static void main(String[] args) {
new ShowImage();
}PicturePanel
//Import Java library
import javax.swing.*;
import java.awt.*;
public class PicturePanel extends JPanel {
//Variables
private ImageIcon picture;
//Method to get information of the selected file
PicturePanel (String fileName) {
picture = new ImageIcon (fileName); //Get the filename
int w = picture.getIconWidth(); //Get the image with
int h = picture.getIconHeight(); //Get the image height
//Set preferable size for the image (Use the properties for the selected image)
setPreferredSize(new Dimension(w, h));
setMinimumSize(new Dimension(w, h));
setMaximumSize(new Dimension(w, h));
//Method to draw the selected image
protected void paintComponent(Graphics g) {
super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
}//The endEdited by: onslow77 on Dec 16, 2009 7:30 PM -
Display image in Smart camera web interface
Hi!
I need some assistance with LV-RT.
What I have succeeded is to enalble the web server on NI 17XX camera and successfully displayed a VI with Image Display on it. I thikn I got the hang of it.
What I would like to know is there another way to display images on the camera web page. I really do not need the whole VI up there just an image and a string with serial number. One way I know would work is to write an image file to the system memory and then embed that image to the web page, but I am not sure that is the best solution as writing process takes time and it is not recommended to write too often to the program memory (am I right?).
So, is there some way to assign some object to say a memory bank and display it (without having to install the runtime maybe) on the page?
Thank you for your attention,
MartHey Mart,
Going back to your original question; are you looking to stream images to a web page from your smart camera or simple see what your camera is seeing when you go to a particular site? Take a look at the sample project below. It is sort of a work around, but it posts an image to a web service. Essentially it snaps an image, saves it, and then posts the saved image to a web service. You will have to change the file path for the image, then build and deploy the webservice from the project view. Also, it would be beneficial to take a look at the webservice build specifications. The webbing to view the snapped image from your local machine would then be viewable from your web browsers at the address : "http://localhost/Stream_Service/ShowImag"
Let us know if you have trouble getting this example working. Also, perhaps another visit to what your end goal is would be helpful. What was it that you had working?
Hope this helps
-Ben
Message Edited by BCho on 04-10-2009 02:27 PM
Hope this helps.
-Ben
WaterlooLabs
Attachments:
SnapWebService.zip 14 KB -
I restored my hard drive from time machine after power blinks corrupted the file system so badly that disk utility could not repair it. Since then, iPhoto has not displayed images correctly. Events are there, and blank squares are shown, but that's all. I rebuilt small and all thumbnails and permissions -- I think the top three or four options in the iPhoto rebuild utility, which took five hours to do but which seems not to have changed anything. The iPhoto library is still more than 100GB, so the photos are there. I didn't choose rebuild from backed up --- whatever the final option on the rebuild menu offers -- because that seems to be appropriate only when a backup is interrupted. Could certainly do it, though. How do I get iphoto behaving again? I have full time machine backups saved automatically and another fairly recent copy on a separate hard drive stored remotely. Thanks for whatever help anyone can provide. I've looked at existing questions and solutions without success so far.
What version of iPhoto and system are your running? Since you've tried rebuilding with iPhoto give this a try:
Using iPhoto Library Manager to Rebuild Your iPhoto Library
Download iPhoto Library Manager and launch.
Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
In the next window name the new library and select the location you want it to be placed.
Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
If you have an external HD you might want to have the rebuilt copy created on it unless you have well more than 100 GB available on your boot drive.
OT -
Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?
If you think you're insane now, try maintaining those pop up menus.
As far as I know, these menus have not been updated since FW 8, so
they are at least two versions old.
Save yourself a lot of grief by avoiding those menus. There are many
other products on the market which do a much better job of creating
and maintaining this type of navigation structure.
Read this link before you climb any higher on this slippery slope:
http://apptools.com/rants/jsmenu.php
There was another blog post by the fellow who originally wrote the pop
up menu feature, but I can't seem to locate it. Even he says stay away
from them.
Not the answer you probably want, but I hope it helps, nonetheless.
Jim Babbage -
I am just trying to get my head around image size versus dimension and an answer to my following question may solve it once and for all! I save a jpg say at 1000 pixels wide and at 100 ppi at file quality 10. But if I save the same file at 1000 pixels wide and again at 100 ppi but this time at quality 5 - what is happening to the file? I have the same number of pixels in the photo but what is the quality slider actually doing?
Many thanks
Sue21st century or not, if you are talking about file integrity, nothing beats an EPS. Although as stated previously, EPS has definitely fallen out of popularity, partly I think due to cross-platform issues -- i.e., PC's inability to deal with them (talk about archaic) and partly due to hosting applications current ability to accept native files. EPSs are totally encapsulated, totally lossless, and totally impervious to hosting software interference -- which TIFFs, JPEGs, nor PSDs can boast. Basically, WYSIWYG.
And yes, there actually are instances where you DO just re-save files -- usually in an attempt to clean up corrupt or problematic files -- but not just for the sake of re-saving. I agree, nobody does that. I was just making a point.
I'm not advocating JPEGs and by no means do I advocate the constant re-saving of them. But I will not discount them as fodder or relegate them strictly to the internet! They are simply another tool in the toolbox. I do agree with you that saving as JPEG should be the last step in the production process. In addition, a full-bodied backup should be kept in reserve (be it TIFF, PSD, or heaven forbid, EPS).
My original point was to address Sue's question of "Image versus Dimension" in JPEG format. My point with you is that JPEGs definitely have a place and some advantages when a balance of quality versus file size/storage space is an issue. It is ridiculous to simply discount JPEG to the web. Although I would not use it for a high-end brochure or an annual report, I wouldn't hesitate for a second to use JPEG for newsprint, high-end copying and some direct imaging. It is a sound format if applied properly based on the end usage. But by no means is it an end-all format. And, I think I work in the same world as you. -
How to display images in the Personal Java?
Guys,
please help me to display the images in gif format in the standalone application using PersonalJava.
with regards,
AminJDK:1.1.8; Personaljava:1.1Beta
Following is my program,it can not only display image but also scroll image that biger than Panel or Canvas.
import java.awt.*;
import java.awt.event.*;
//ImageCanvas object is container keeping Image
class ImageCanvas extends Canvas
private Image image,errorimage;
Container pappy;
public ImageCanvas(Image i,Container parent)
errorimage = Toolkit.getDefaultToolkit().getImage("error.gif");
image=i;
pappy = parent;
//following 5 lines can make image display smoothly
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(image, 0);
try { tracker.waitForID(0); }
catch (InterruptedException e) {}
public void paint(Graphics g)
if(image.getWidth(this)==-1)
image=errorimage;
Dimension d = getSize();
this.setSize(image.getWidth(this),image.getHeight(this));
//Critical syntex for refresh container
pappy.layout();
pappy.repaint();
g.drawImage(image, 0, 0,this);
public class ScrollingImage implements ActionListener
{ Frame frame;
ScrollPane sp;
Image im;
public static void main(String[] args)
ScrollingImage tests= new ScrollingImage();
tests.go();
public void go()
frame = new Frame();
frame.setLayout(new BorderLayout());
sp = new ScrollPane();
im =Toolkit.getDefaultToolkit().getImage("001.gif");
//please notice following line,critical syntex to display image,I took 2 days to find it.
sp.add(new ImageCanvas(im,sp));
sp.setSize(240,290);
frame.add(sp, BorderLayout.CENTER);
//following 5 lines make frame be able to close
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.pack();
frame.setVisible(true); -
ClasscastException while displaying image from content selector
Hi,
My requirement is show an image gif file in jsp, through portal.
This problem is specific to 8.1 version.
Created an image type content in BEA repository which i could retrieve from workshop
content preview correctly, with a rule (named filerule).
However, when tried to display the same from a simple jsp logic, got classcast
exception.
Below is the steps i have done.
1. import <%@ page import="com.bea.p13n.content.ContentHelper"%>
2.
<pz:contentSelector rule="filerule" contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
id="ImageDocs"/>
<es:forEachInArray array="<%=ImageDocs%>" id="anImageDoc" type="com.bea.p13n.content.Content">
<img src="ShowDoc/<cm:printProperty
id="anImageDoc" name="identifier" encode="url"/>"
</es:forEachInArray>
The server console shows below exception:
java.lang.ClassCastException
at jsp_servlet.__index6._jspService(index6.jsp:19)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:208)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardCon
fig(PageFlowRequestProcessor.java:1094)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:651)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:638)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6356)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
Also, there is no luck with displaying text content from a file, using printDoc
tag. Can some one point me to right resource.Hi panji,
I used 7.0 tag lib, just to make use of "printDoc" tag which is available in 7.0version
only and not in 810. However, i figured out a way to display image using 8.1 (
of course, by using request.getContextPath() + "/ShowBinary" + imagedoc.getPath())
But still, i do not find a way to display a doc type file in jsp, which is my
original problem.
As per the edocs at http://edocs.bea.com/workshop/docs81/doc/en/core/index.html,
<cm:getProperty node="<%=doc_node%>" name="file"/>
should be able to display a txt file but nothing is getting rendred onto jsp.
( i have created a book type content in the repo. and file attached is of type
txt ).
Can you pls give some clue what i am missing here?
thanks
Ramana
"Panji Aryaputra" <[email protected]> wrote:
Hi Ramana, could you just use the ShowPropertyServlet to display the
image
in jsp? That's what I am using now. Perhaps you have other reasons not
to
use it?
panji.a
"ramana" <[email protected]> wrote in message
news:[email protected]...
Hi,
My requirement is show an image gif file in jsp, through portal.
This problem is specific to 8.1 version.
Created an image type content in BEA repository which i could retrievefrom workshop
content preview correctly, with a rule (named filerule).
However, when tried to display the same from a simple jsp logic, gotclasscast
exception.
Below is the steps i have done.
1. import <%@ page import="com.bea.p13n.content.ContentHelper"%>
2.
<pz:contentSelector rule="filerule"contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
id="ImageDocs"/>
<es:forEachInArray array="<%=ImageDocs%>" id="anImageDoc"type="com.bea.p13n.content.Content">
<img src="ShowDoc/<cm:printProperty
id="anImageDoc" name="identifier" encode="url"/>"
</es:forEachInArray>
The server console shows below exception:
java.lang.ClassCastException
at jsp_servlet.__index6._jspService(index6.jsp:19)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atcom.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
er.java:208)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardCon
fig(PageFlowRequestProcessor.java:1094)
atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:651)
atcom.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
atcom.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
FlowRequestProcessor.java:1304)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
ctor.forward(PageFlowRequestProcessor.java:1320)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
wRequestProcessor.java:1200)
atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
equestProcessor.java:638)
atcom.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
sterActionServlet.java:527)
atcom.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
onServlet.java:152)
atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
r.java:313)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6356)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
Also, there is no luck with displaying text content from a file, usingprintDoc
tag. Can some one point me to right resource. -
Hi all,
i'm new to the forum and i'll be granted if you kind gentlemen/women could use some advices for my gui home application.
My purpose is to display a static image in a container (i'd prefer to use javax.swing objects, but if you think that java.awt is more suitable for my app, please feel free to tell me about...). I used a modified code from one of the Java Tutorial's examples, tht actually is an applet and displays images as it is using the paint() method. I just can't realize how to set the GraphicContext in a JFrame or a JPanel to contain the image to display, without using applets. Following part of the code I use (a JButton will fire JApplet start, JApplet is another class file called Apple.java):
class DMToolz extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JButton jButton = null;
private JComboBox jComboBox = null;
private JMenuItem jMenuItem = null;
private JMenuBar jJMenuBar = null;
private JMenu jMenu = null;
private JMenu jMenu1 = null;
public int w=10, h=10;
public String filename;
* @throws HeadlessException
public DMToolz() throws HeadlessException {
// TODO Auto-generated constructor stub
super();
initialize();
public DMToolz(String arg0) throws HeadlessException {
super(arg0);
// TODO Auto-generated constructor stub
initialize();
* This method initializes jButton
* @return javax.swing.JButton
private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setBounds(new Rectangle(723, 505, 103, 38));
jButton.setText("UrcaMado'");
jButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
/**************SCRIVERE QUI IL NOME DEL FILE CON L'IMMAGINE DA CARICARE*******************/
filename = "reference table player2.gif";
java.net.URL imgURL = DMToolz.class.getResource("images/"+filename);
BufferedImage img = null;
try {
img = ImageIO.read(imgURL);
w = img.getWidth();
h = img.getHeight();
System.out.println("*DM* Immagine letta - W:"+w+" H:"+h);
} catch (Exception ex) {System.out.println("*DM* Immagine non letta");}
JApplet a = new Apple();
a.setName(filename);
JFrame f = new JFrame ("UrcaBBestia!");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
f.getContentPane().add(a);
f.setPreferredSize( new Dimension(w,h+30) );//30 � (circa) l'altezza della barra del titolo del frame
f.pack();
f.setVisible(true);
return jButton;
public class Apple extends JApplet {
private static final long serialVersionUID = 1L;
final static Color bg = Color.white;
final static Color fg = Color.black;
final static Color red = Color.red;
final static Color white = Color.white;
public void init() {
//Initialize drawing colors
setBackground(bg);
setForeground(fg);
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
try {
String filename = this.getName(); //uso il nome dell'applet come riferimento al nome del file da caricare
java.net.URL imgURL = DMToolz.class.getResource("images/"+filename);
BufferedImage img = ImageIO.read(imgURL);
if (img.equals(null)) {System.out.println("IMG null!");System.exit(0);}
System.out.println("IMG letta");
int w = img.getWidth();
int h = img.getHeight();
resize(w,h);
g2.drawImage(img,
0,0,Color.LIGHT_GRAY,
null);// no ImageObserver
} catch (Exception ex) {ex.printStackTrace();
System.out.println("Immagine non letta.");System.exit(0);}
}//end classPlease never mind about some italian text, used as reminder....
Thanks in advance.Read the Swing tutorial on "How to Use Labels" or "How to Use Icons" for working examples:
http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
By the way you should never override the paint() method. Custom painting (not required in this case) is done by overriding the paintComponent(...) method in Swing. Overriding paint() is an old AWT trick. -
Display image from image path (ASP)
Help needed please. Sorry if the topic has already been
discussed. I did a search but it returned nothing.
My problem.
I can display images on my website by choosing the datasource
and the image path from by database. No issues here. What I want is
to be able to open up a larger image by clicking on this image.
I created another page. On this page is an image placeholder.
The source again is the datasource with the image path to a larger
image. I used a behaviour to open this page however, it shows the
same image (the 1st record in my recordset) whichever image you
click on my origianl page.
Can someone please tell me how to do it? It would be
appreciated.I'm assuming that you are using a repeat region to display
the original
images.
You will need to pass the Primary Key to the new page, and
filter the
recordset on the new page based on that Primary Key.
For example, this would be the link to the new page:
<a
href="page2.asp?ID=<%=(rsImages.Fields.Item("ImageID").Value)%>"
Then on the new page filter the recordset SQL based on the
ImageID,
something like this:
<%
Dim rsImage__MMColParam
rsImage__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
rsImage__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim rsImage
Dim rsImage_cmd
Dim rsImage_numRows
Set rsImage_cmd = Server.CreateObject ("ADODB.Command")
rsImage_cmd.ActiveConnection = MM_connImage_STRING
rsImage_cmd.CommandText = "SELECT * FROM tblImages WHERE
ImageID = ?"
rsImage_cmd.Prepared = true
rsImage_cmd.Parameters.Append
rsImage_cmd.CreateParameter("param1", 5,
1, -1, rsImage__MMColParam) ' adDouble
Set rsImage = rsImage_cmd.Execute
rsImage_numRows = 0
%>
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"leeweatherill" <[email protected]> wrote in
message
news:ft00gm$spm$[email protected]..
> Help needed please. Sorry if the topic has already been
discussed. I did a
> search but it returned nothing.
>
> My problem.
> I can display images on my website by choosing the
datasource and the
> image
> path from by database. No issues here. What I want is to
be able to open
> up a
> larger image by clicking on this image.
>
> I created another page. On this page is an image
placeholder. The source
> again
> is the datasource with the image path to a larger image.
I used a
> behaviour to
> open this page however, it shows the same image (the 1st
record in my
> recordset) whichever image you click on my origianl
page.
>
> Can someone please tell me how to do it? It would be
appreciated.
> -
Hi !
I have received a set of datas via rs232 and it contains picture messages. I have to decode the datas first and then display them on a canvas.
I have known several functions that may be used . Such as
int SetBitmapData (int bitmapID, int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]);
int CanvasDrawBitmap (int panelHandle, int controlID, int bitmapID, Rect sourceRectangle, Rect destinationRectangle);
However,I don't know how to set the following parameters according to the actual pixel values and color values.
int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]
What's more,I have no idea how to decode the datas.
The attachment is a incomplete project. I will be very appreciated if anyone could help me .
Best regards.
xiepei
I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
Attachments:
Decode and display image.zip 212 KBWell, things are getting a bit clearer now.
1. Your image is actually 240x240 pixel (not 320x240 as you told before). The size of image data is 57600 bytes which corresponds to that frmat (I was puzzled by such a data size compared with larger image dimensions!)
2. The image is a 8-bits-per-pixel one; this means that you must provide a color palette to create the bitmap
3. You cannot simply copy image data into bitmap fields in CVI: CreateBitmap always produce an image with pixeldepth matched with display colour depth (normally 24 or 32 bpp)
All that means that you must:
1. Create the appropriate color palette with 256 colors: it may be a grayscale or color palette depending on camera characteristics. Grayscale palette can be found in my sample project, while sample colour palettes can be found here (here the description of a "standard" 8-bpp color palette)
2. Create the bits array correctly dimensioned for the color depth of your monitor
3. Get each pixel value from the camera, lookup in the color palette for the appropriate colour and create the RGB informations into the bits array in memory
4. Display the bitmap on the canvas
As a first step, I would configure my system for 256-color display setting, create a bitmap and simply copy image data into it: you should be able to get the correct image back to your screen.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Display image based on conditions.
Hi every one.
We have to display image (circle) based on three conditions.
Example; if employee is < 1000 small circle, if salary is > 1000 and < 10000 medium size circle and >10000 big size circle.
And second condition if employee location is East coast fill black color in that circle, west coast red color central green color.
Third condition is if employee joining date is less than two years I should display * (Star symbol) in that circle.
I am trying to create conditional format but it is possible to display only one image .
My question is how can I change size and color if the image based on conditions and display start symbol with in the image.
I think I have to create different own images to display for every conditions.
Is there any way to create my report?
Thank you very much for your time and help.Hi,
If you want to display everything in one image for end user you need to do some trick.
sal orginal region orginal Joining date Sal decode value Region decode value Joining date decode value ImageCode
100 east 20\2\2008 1 10 100 111
200 WEST 20\2\2008 1 20 100 121
300 NORTH 20\2\2009 1 30 200 211
300 NORTH 20\2\2008 1 30 100 131
100 east 20\2\2008 1 10 100 111
2000 west 20\2\2009 2 20 200 222
30000 south 20\2\2009 3 40 200 243
Create few more columns in your answers, as following
Salary decode value: based on your original salary decode it to 1 or 2 or 3
region decode value: based on your regions decode it to 10 or 20 or 30 or 40
joining date decode value: based on joining date decode it to 100 or 200
Image code add all of decoded values ie 1+10+100 = 111
In report show image based on image code
i.e from above table row1 image code is 111 (small black circle), last record BigCircle Red with Star.
Pain full thing is you need to create 24 images on your own(3(salary range)*4(regions)*2(join dates) =24) and place all 24 conditions in that column.
--Hope it helped you
Thanks
Srinivas Malyala -
Hi all,
I solved the problem of placing an image in original login.jsp
Hope this will be usefull for all who will be trying to edit the original longi.jsp:
====>Place your image in the following folder:
C:\installations\Oracle_Infra(Your oracle_home)\portal\images
you place your image some-where else it will not be displayed .....
Hope this will be usefull!!!!
Thanks & Regards,
MallikarjunWell, you are quite right to put images in this place.
However, two points can be noted here:
1. This works with the assumption that your portal repository is in the infra-database. in cases of customer databases, you may have other folders which would be able to run the images from a similar folder in their respective homes.
2. Additionally, you can place your images anywhere on your servers and still have them working if you use an alias for the image folder location!
hope that helps.
syed
Maybe you are looking for
-
CRM 5.0 class CL_CRM_CMG_IL contain error
Hello All, I try to execute the CRM_IC application in CRM 5.0. I got the follwoing dump The following error text was processed in the system CRM : Syntax error in program CL_CRM_CMG_IL=================CP . The error occurred on the application server
-
Metadaten in Adobe Bridge (CS 2)
In der Vorschau von Adobe Bridge wird das Originaldatum in der Exifdatei der Kamera genau 2 Stunden später angegeben. Also statt z.B. 12:11 wird 14:11 angezeigt. Die Originalzeit wird dafür in den Metadaten als Änderungsdatum angegeben (Änderungsdatu
-
How to swap the source image of a MC programmatically in AS3?
This seems like it would be a simple thing. I have converted a jpeg to a movie clip that I want to be able to swap out the image source programmatically in the code behind. This can be done easily in the GUI. How do you do it programmatically? I have
-
Mac Book screen has white blotches; which started w/ just a little spot and continually spread through out the screen. As where I live does not have an apple store, I contacted apple in 2011, and never received a response. Now I am finding out tha
-
I just bought a used macbook pro, turned it on and it will not pick up wifi connection n my house that my old lap top has done very fast and easy wifi connection. What do i have to do to log on to internet with wifi with my macbook pro?