Show image in JDev

Why the picture cannot be showed? Is there any wrong with the servlet code? What's wrong with my code?
Thanks
package javaclass;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import fuego.lang.ConnectionPassport;
import fuego.lang.DynamicObject;
import fuego.papi.Activity;
import fuego.papi.Arguments;
import fuego.papi.CommunicationException;
import fuego.papi.InstanceInfo;
import fuego.papi.OperationException;
import fuego.papi.Process;
import fuego.papi.ProcessService;
import fuego.papi.ProcessServiceSession;
import java.util.Properties;
import fuego.workspace.UrlActions;
import com.sun.image.codec.jpeg.*;
import javax.imageio.stream.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
public class showWorkloadImgServlet extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>showWorkloadImgServlet</title></head>");
out.println("<body>");
out.println("<p>The servlet has received a GET. This is the reply.</p>");
out.println("</body><img src='http://192.168.125.125:8988/Application1-Project1-context-root/showworkloadimgservlet'></a></html>");
out.close();
Properties configuration = new Properties();
System.out.println("25");
configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
System.out.println("28");
configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "F:\\share\\192_168_1_16\\directory.xml");
System.out.println("30");
configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
System.out.println("32");
ProcessService processService=null;
try {
processService = ProcessService.create(configuration);
} catch (CommunicationException e) {
// TODO
System.out.println("66===========");
System.out.println("34");
ConnectionPassport passport=null;
passport = processService.createPassport("jcooper");
passport.setPassword("welcome1");
passport.fillPassport();
System.out.println("38");
ProcessServiceSession session=null;
try {
session = processService.createSession(passport, "192.168.1.16");
} catch (OperationException e) {
// TODO
System.out.println("40");
Arguments arguments = Arguments.create();
DynamicObject argument = DynamicObject.create();
argument.setField("condition", 600);
argument.setField("orSplit", 400);
arguments.putArgument("beginArg",argument);
String processId2="/P1";
try {
session.processCreateInstance(processId2, arguments);
} catch (OperationException e) {
// TODO
System.out.println("50");
System.out.println("76");
UrlActions ua=new UrlActions();
String st="";
String instanceId="/P1#Default-1.0/9863/0";
String processId="/P1#Default-1.0";
st=ua.showWorkloadImage(request, response, processId /*, instanceId*/);
System.out.println("26="+st);
OutputStream output = response.getOutputStream();
String imagePath = getServletContext().getRealPath(st);
InputStream imageIn = new FileInputStream(new File(imagePath));
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(imageIn);
BufferedImage image = decoder.decodeAsBufferedImage();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(output);
encoder.encode(image);
imageIn.close();
session.close();
processService.close();
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
E:\Jdeveloper10131_20090318\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
D:\JDeveloper11g_20090318\jdk160_05\bin\javaw.exe -client -classpath E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar;E:\Jdeveloper10131_20090318\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config E:\Jdeveloper10131_20090318\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Oct 5, 2009 3:19:39 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
Oct 5, 2009 3:19:41 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
Oct 5, 2009 3:19:41 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 13718 ms.
Target URL -- http://192.168.1.16:8988/GDHZdemo-javaclass-context-root/showworkloadimgservlet
09/10/05 15:19:47 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\mail.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/j2ee/home/lib/mail.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\jaxrpc-api.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/webservices/lib/jaxrpc-api.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
WARNING: Code-source D:\BPM_HOME_standalone\client\papi\lib\saaj-api.jar (from manifest of /D:/BPM_HOME_standalone/client/papi/lib/fuegopapi-client.jar) has the same filename but is not identical to /E:/Jdeveloper10131_20090318/webservices/lib/saaj-api.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\Jdeveloper10131_20090318\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.GDHZdemo-javaclass-webapp:0.0.0.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\catalina-optional.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\catalina.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-el.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-logging.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\commons-modeler.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-compiler-jdt.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-compiler.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jasper-runtime.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\jsp-api.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\naming-factory.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\naming-resources.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\servlet-api.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\servlets-default.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-coyote.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-http.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
Could not canonicalize 'D:\BPM_HOME_standalone\client\papi\lib\D:\fuego\trunk\local\thirdparty\tomcat-embed\dist\apache-tomcat-5.5.15-embed\lib\tomcat-util.jar' (????????????????). From manifest of /D:/BPM_HOME_standalone/client/papi/lib/catalina.jar.
09/10/05 15:19:50 25
09/10/05 15:19:50 28
09/10/05 15:19:50 30
09/10/05 15:19:50 32
09/10/05 15:19:51 java.io.IOException: ????????????????
09/10/05 15:19:51      at java.io.WinNTFileSystem.canonicalize0(Native Method)
09/10/05 15:19:51      at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
09/10/05 15:19:51      at java.io.File.getCanonicalPath(File.java:559)
09/10/05 15:19:51      at java.io.File.getCanonicalFile(File.java:583)
09/10/05 15:19:51      at fuego.boot.ClassPath.getBaseDir(ClassPath.java:402)
09/10/05 15:19:51      at fuego.boot.ClassPath.getBaseDir(ClassPath.java:290)
09/10/05 15:19:51      at fuego.boot.Loader.getInstallationDir(Loader.java:652)
09/10/05 15:19:51      at fuego.util.FuegoDirectories.installationDir(FuegoDirectories.java:97)
09/10/05 15:19:51      at fuego.util.FuegoDirectories.installationRelativeFile(FuegoDirectories.java:106)
09/10/05 15:19:51      at fuego.util.FuegoDirectories.configDir(FuegoDirectories.java:167)
09/10/05 15:19:51      at fuego.directory.DirectoryConfigurationManager.createDefaultRuntimeDirectoryConfigurationManager(DirectoryConfigurationManager.java:376)
09/10/05 15:19:51      at fuego.directory.DirectoryConfigurationManager.<clinit>(DirectoryConfigurationManager.java:410)
09/10/05 15:19:51      at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:55)
09/10/05 15:19:51      at fuego.papi.ProcessService.create(ProcessService.java:335)
09/10/05 15:19:51      at javaclass.showWorkloadImgServlet.doGet(showWorkloadImgServlet.java:70)
09/10/05 15:19:51      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
09/10/05 15:19:51      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
09/10/05 15:19:51      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
09/10/05 15:19:51      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
09/10/05 15:19:51      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
09/10/05 15:19:51      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
09/10/05 15:19:51      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
09/10/05 15:19:51      at java.lang.Thread.run(Thread.java:619)
09/10/05 15:20:40 25
09/10/05 15:20:40 28
09/10/05 15:20:40 30
09/10/05 15:20:40 32
Process exited.

I guess the ImageServlet class of the StoreFront demo of JDeveloper 11g is a good start for you. Below is the code snippet:
package oracle.fodemo.storefront.servlet;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
public class ImageServlet extends HttpServlet {
private static final String CONTENT_TYPE =
"image/jpg; charset=utf-8";
* @param config
* @throws ServletException
public void init(ServletConfig config) throws ServletException {
super.init(config);
* @param request
* @param response
* @throws ServletException
* @throws IOException
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
response.setContentType(CONTENT_TYPE);
response.setContentType(CONTENT_TYPE);
String detailProductId = request.getParameter("detail");
String thumbnailProductId = request.getParameter("thumbnail");
boolean thumbnail = true;
String productId = null;
OutputStream os = response.getOutputStream();
Connection conn = null;
try {
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FODDS");
conn = ds.getConnection();
PreparedStatement statement = conn.prepareStatement(
"SELECT ProductImageEO.PRODUCT_IMAGE_ID, " +
" ProductImageEO.PRODUCT_ID, " +
" ProductImageEO.DEFAULT_VIEW_FLAG, " +
" ProductImageEO.DETAIL_IMAGE_ID, " +
" ProductImageEO.IMAGE " +
"FROM PRODUCT_IMAGES ProductImageEO " +
"WHERE ProductImageEO.DEFAULT_VIEW_FLAG = ?" +
" AND ProductImageEO.PRODUCT_ID = ?");
if (detailProductId != null) {
productId = detailProductId;
thumbnail = false;
} else {
productId = thumbnailProductId;
statement.setString(1,(thumbnail ? "Y" : "N"));
statement.setInt(2, new Integer(productId));
ResultSet rs = statement.executeQuery();
if (rs.next()) {
Blob blob = rs.getBlob("IMAGE");
BufferedInputStream in = new BufferedInputStream(blob.getBinaryStream());
int b; byte[] buffer = new byte[10240];
while ((b = in.read(buffer, 0, 10240)) != -1) { os.write(buffer, 0, b); }
os.close();
} catch (Exception e){
System.out.println(e);
} finally {
try{
if (conn != null){
conn.close();
} catch (SQLException sqle){
System.out.println("SQLException error");
regards,
pino

Similar Messages

  • Pop up a window to show images

    Hi, I am trying to show images when the user rolls the mouse
    over the image but I want to show them as a pop up window only when
    the user is on the image.
    Any ideas how can I handle this? I will have variety of
    images and want the same behavior for all of them.

    mouseOver and mouseOut event functions for the images.

  • My mac will not show images when on the internet?

    My mac will not show images when on the internet?  I think I have inadvertently changed some settings but nor sure which one.

    I am going to assume you are using Safari here. If so then go to the Apple menu bar and hit Safari-> Preferences.  Under the Apperance tab there is a check box that is called "Display images when the page opens".  Check if that is unticked.

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • Iphone 4 will not show up on computer or in itunes. After several attempts to restart, only showing image to connect to itunes. Everything is plugged and it and I have the most up to date version of itunes.

    My iphone 4 only shows image to connect to itunes. It will not come up in itunes and does not appear to be connecting to my computer. I have attempted to restart my phone numerous times but it just keeps going back to this same screen. Please help.

    Did you make a backup because you can't recover what's on our phone. Follow these steps to resotre your phone (the phone has to be plugged into your computer):
    1) On your phone, press your sleep button for 2 seconds
    2) After the two seconds, don't release the sleep and press the home button for 10 seconds
    3) Release the sleep button and keep the home buttton pressed untill your computer detects your phone.
    4) A window should pop up and you should have the restore button. Press it.

  • CRS 10.1 with Endeca 3.1.1 -home page doesn't show image and promo products

    Thanks to this forum and especially cmore I'm close to setting up my local dev environment, but still have something to resolve.
    I have ATG 10.1.2 + CRS + Endeca 3.1.1. I installed BCC with Staging and Production (switchable) stores.
    The problem is with Production CRS - both US Store and Home Store don't show image and promoted products on Home page.
    What I see below Top Category pane is empty square. Unlike Production, home page on Stage works fine - I see homepage_promo_storeSiteUS_en_anonymous.png and promoted products.
    I think the problem is not related to Endeca, as I currently connect both Stage and Prod to the same Endeca CRS, I also believe that issue is not related to configuration - I tried to run production with Stage configuration, and it changed nothing. I believe the issue is somewhere in data (DB) - but I did full deployment for Prod and it didn't help. I verified targeters and slots on Prod through ACC, and they looks fine. So don't know at this point what to do next.
    While doing full deploy I see some errors in the log which might be related to the issue, But the same errors I see on Stage as well and still Stage works without issues:
    10:17:41,805 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/HomeTheme in scope global. It is defined in scope request
    10:17:41,811 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct1 in scope global. It is defined in scope request
    10:17:41,816 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct2 in scope global. It is defined in scope request
    10:17:41,819 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct3 in scope global. It is defined in scope request
    10:17:41,822 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct2 in scope global. It is defined in scope request
    10:17:41,826 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct3 in scope global. It is defined in scope request
    10:17:41,829 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct4 in scope global. It is defined in scope request
    10:17:41,832 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct5 in scope global. It is defined in scope request
    10:17:41,836 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct1 in scope global. It is defined in scope request
    10:17:41,839 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent2 in scope global. It is defined in scope request
    10:17:41,842 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent1 in scope global. It is defined in scope request
    Last update: I compared Stage and Prod home pages HTML code, and notice that the first difference between two pages is absence of endeca-slot Div, the below code present on Stage, and is Not present on Prod:
    It is the first difference only , there are a bunch more.
    &lt;div class="endeca-slot" zone="/content/Shared/Global Search Configuration/Search Box"&gt;
    <script type="text/javascript">
    if(Endeca.Site) {
    Endeca.Site.Audit.contents["/content/Shared/Global Search Configuration/Search Box"] = [{"@type":"SearchBox","endeca.internal.created.by":"admin","rule.msg":"Fired","endeca.internal.last.modified.by":"admin","rule.msgcode":"13","rule.state":"fired","endeca.internal.resource.path":"\/sites-live\/NYCoCRS\/content\/Shared\/Global Search Configuration\/Search Box\/Search Box","endeca.internal.workflow.state":"ACTIVE","type":"DGraph.MerchDebug","Title":"Search Box","rule.id":"1","endeca.internal.last.modified":"2013-03-20T11:43","endeca.internal.date.created":"2013-03-20T11:43","Zone":"\/content\/Shared\/Global Search Configuration\/Search Box"}
    </script>
    Edited by: PKU on Apr 1, 2013 8:32 AM
    Edited by: PKU on Apr 1, 2013 8:35 AM

    After some analysis and experiments:
    Most likely the issue is with Scenarios. HomeTheme Slot is populated by Theme scenario.
    For some reason the slot remains empty on "bad" environment. On "good" environment the slot contain promo content item after the first call of the slot. I checked respective targeter and promo content item, and they look OK, so I believe something wrong with Scenarios.

  • How to show image in oracle adf if i have data in byte[] ?

    For first time I am using <af:inputFile> to get file of image type from any location on my system and convert the data in "byte[]" and store it in database...
    When i visit page again i need to show uploaded file which is coming to me "byte[ ] ".
    To show image i am using <af:image> component.
    Help will be appreciated.

    Check this blog post: http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Dario

  • How to show image in a Transperent form ?? screen shots attached

    Hi
    Help me in making Images appearing as Transperent . Screen shots attached
    I am having a TextInput and a Search Button (The Functionality is that user can enter something in this TextInput and makes a Search Operation by pressing Search Button .)
    At the Initail screen display i need to show Some Image in transperent  Inside this TextInput  , when Mouse is focused on this TextInput , the Image will be completely Invisible .
    Now the question i want to ask is , how to show image in a Transperent form ??
    Please find the screen shots attached with this Thread .

    Thanks for specifying  the alpha property of an Image .

  • Apache: showing images in ascending order by name

    hi:
    i have several detail pages where i show images contained in
    a folder:
    $folder = dir($path);
    while ($folderEntry = $folder->read()){
    if ($folderEntry <> "." && $folderEntry
    <> ".." &&
    substr($folderEntry, -6, 2) <> "00") {
    echo '<li><img src="'.$path.$folderEntry.'"
    /></li>';
    $folder->close();
    in the local server they appear in the way i want, in
    ascending order by
    name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
    remote server
    they appear in, apparently, random order
    i activated FancyIndexing in the httpd.conf file but it
    doesn't solved
    the problem:
    # Directives controlling the display of server-generated
    directory
    listings.
    # FancyIndexing is whether you want fancy directory indexing
    or
    standard
    IndexOptions FancyIndexing
    # End of indexing directives.
    i know i can store the filenames names in an array an sort it
    but i
    prefer to control it in the server
    local (OS X 10.4.10)
    Apache/1.3.33 (Darwin) PHP/5.1.6
    remote (Red Hat Linux 2.6.9-34.ELsmp)
    Apache/2.0.52
    tia,
    jdoe

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Showing Image Stored In DataBase

    Hello Friends,
    I have images stored in MySQL database. In a blob field. In a desktop application i have used
    blob b=rs.getBlob("Picture");
    byte[] buf=b.getBytes((long)1,(int)b.length());
    ImageIcon imgIcon= new ImageIcon(buf);
    Image img=imgIcon.getImage();
    Graphics g=image.getGraphics();
    g.drawImage(img,0,0,320,240,image);
    the thing worked fine. But now i have to show images over web. I am not able to uderstand that how to show images. As i m unable to get Graphics from any of the component.
    Help Me,
    Its urgent,
    thanking u all
    Abhilash Jain

    The common method to include binary information (image, PDF, document, etc) is to Base64 encode the file and store the resulting character string in the XML. It would be up to the receiving system to handle the encoded information in the XML.

  • How to make mouseover effect text show image in popup window or tooltip?

    I am trying to display a popup image in a new window when the mouse moves over some text. Or perhaps, the image could display in a tooltip when the mouse moves over some text.
    However, I have achieved the functionality of an image appearing above the text when the mouse moves over some text. This is how I did this:
    I put this code into the Page HTML Header:
    <script type="text/javascript">
    <!--
    function setFirstChildImgDisplay(el,vis) {
    if(!el || !el.getElementsByTagName) return;
    el.getElementsByTagName('img')[0].style.display=vis;
    // -->
    </script>
    I created a region and put this in the Region's Title field:
    {div onmouseover="setFirstChildImgDisplay(this,'inline')"  onmouseout="setFirstChildImgDisplay(this,'none')">Check out Page 1 here <img src="#WORKSPACE_IMAGES#DGNR Preview Page 1.bmp" alt="Page 1 Preview" style="display:none;">{/div}
    I am thinking that I should not have all of this code in the Region's Title field. But, I don't know where else to put it in APEX.
    So my questions are:
    1. how to get an image to display in a popup window or as a tooltip when the mouse is moved over some text?
    2. where should the {div} content be placed in APEX, if not in the Title field?
    Please note that I used '{' & '}' instead of '<' & '>' just so the div would display in this post.
    Also, I would like to give credit to this website because this is where I found out how to do what I have provided above.
    http://forums.devshed.com/web-design-help-2/mouseover-effect-text-shows-image-321876.html
    Thank you in advance,
    Maggie

    It's just an image map. Play with the settings. Here's a shape layer making a hole in the water and adding a bit of color.

  • Showing Image in table

    Hi
         I want to show image in table based on the result i have a field status which contains the 01 / 02 / 03 values and now i want to show 3 images insted of value I have created one value attribute of string type and assigned the path of the image to it but its taking the image of last record only so can any one tell me what i have to do for this bellow is the code i am using
    wdContext.currentContextElement().setImgXiStatus("");
    if(xistatus.equals("01"))
        wdContext.currentContextElement().setImgXiStatus("green.bmp");
    else if(xistatus.equals("02"))
        wdContext.currentContextElement().setImgXiStatus("yellow.bmp");
    else if(xistatus.equals("03"))
        wdContext.currentContextElement().setImgXiStatus("red.bmp");
    else
        wdContext.currentContextElement().setImgXiStatus("");
    Thanks
    Ninad

    1 - NODE_MY_TRNAS
    1.1---NODEoutput
    1.1.1---NODEetData
    1.1.1.1---NODEimageNodeHelper
    1.1.1.1.1---icon
    Set singleton = false for node "NODEimageNodeHelper" and selection(NODEimageNodeHelper) = 1:1.
    Assuming card(NODEetData) =0:N, you can set the icon for row number i as follows:
    INODEetDataElement e = wdContext.nodeNODEetData().getNODEetDataElementAt(i);
    e.nodeNODEimageNodeHelper().currentNODEimageNodeHelperElement().setIcon("icon.gif");
    For naming nodes, the following rule is useful: Name in camel-case, first letter uppercase, for cardinality =0:N, use plural name.
    Example:
    Node "Books" (node, card=0:N) leads to IBooksNode, IBooksElement interfaces.
    Armin

  • How to show images in horizontal scroll field in blackberr

    hi i want to show images in horizontal field manager and scroll right to left. focused image should be show up.
    Solved!
    Go to Solution.

    please reply with your device model (e.g. Blackberry Curve 8520)
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Jpeg icons not showing image in My Pictures

    This hasn't happened to me before. When I edit a jpeg in Photoshop CS3 in this case, and save it in a file in My Pictures, when I go to find it again I notice there is just the Photoshop Logo instead of the actual picture image showing, not too helpful to find pictures you are looking for. It is still a jpeg but it switched from the actual picture to the logo after I saved it from Photoshop. Any tips? I'm hesitant to edit any more from my trip for fear of having to open up one at a time to see what it is!
    Thank you for any help.

    Vista 32bit is the computer I
    am on. On another reply they asked if I had the wrong Windows Explorer setting so didn't show images. All jpeg images show as downloaded from camera but when I edit and save from Photoshop, those edited images then show the PS icon only, no picture.

  • Why are slide show images less sharp than preview images?

    Dear Aperture users,
    as documented in the manual and on Apple's support pages, Aperture 3 uses the preview images for its slide show. However, when I compare the quality of my preview images in full-screen mode with the quality of the slide show images, the preview images clearly look sharper.
    Apparently, Aperture's slide show does not simply use the preview images as documented, but applies some sort of "adjustment", resulting in less crisp looking images. Since I haven't found any satisfying answer yet, my questions are:
    1). What exactly is the adjustment that slide show applies to the preview images?
    2). Can I somehow tweak this adjustment, say, with a terminal command?
    Best regards,
    Dirk61.

    iPhoto can make two different types of slide show movies. It would help to know which you're making.
    One is made via the File/Export to QuickTime movie and makes a 4 track file with a simple fade effect. These use the Photo-JPEG codec.
    The other is a 30 fps "video" using H.264 video codec via the "Share" menu.
    A third method (rarely used) is to Export to iDVD. This makes an absurdly high data rate MPEG-4 video. This is also found under the Share menu.
    The MPEG-4 video codec also includes an "automatic" gamma correction feature which compensates for the gammas difference between Mac's and PC's.
    Try one export to iDVD. Include your audio track prior but use a high quality (.aiff) sound file. No need to actually "burn" the DVD. You can even close iDVD after it opens. You'll find the new movie in your Users Movie folder.
    Open it with QT Pro and export to a new .mov file. Adjust the data rate to something more reasonable and add some audio compression.
    If the colors still look too dark you can use the built in Filters in the Export dialog. You can adjust B&C or HSL or even use ColorSync Profiles that can help correct the image quality (if needed).

Maybe you are looking for

  • IPod not recognized by Windows or iTunes....I've tried everything...HELP!

    When I connect my 30GB iPod (5th gen) to the PC's usb port, Windows or iTunes doesn't recognize it. I know the iPod's dock connector is working because it charges when plugged into the usb port and it also works when connected to my car stereo. I thi

  • I Can't Play .MP4 and .mkv Files Backed up in Time Machine

    I backed up My Macbook to an external hard drive in my passport / Time Machine.  I am attempting to play both .mp4 and mkv files in quicktime and vlc respectively.  They worked when they were on my computer, but I they won't open now.  I even tried t

  • Oracle OpenWorld and Ops Center 12c

    When I was at Oracle OpenWorld two weeks ago, I could have sworn the Ops Center booth was running an unreleased version of Ops Center (to be 12c). If that is the case, what is the estimated release date of this product? And will it be like Oracle Ent

  • Business Partner not the same

    Hi, I created business partner for the corresponding employee in HR,but both the numbers are not the same I used the program "HR_SYNC_PERSON" to generate the business partner number. Thanks Manish

  • Need Video Tutorials

    hi frntz, Is there any website that contains free video tutorials for oracle technical streams especially Workflow,Reports etc...,