Dynamic images in JSP

Hi!
I would like to generate dynamic images in a JSP which I would like do an "include" in other JSPs across the site. The reason for this is we show many emails/ phone numbers on various pages and with the prevalence of spiders/ robots, it would be better to not have it as HTML text. I saw a couple of sites displaying them as images but they were PHP and ASP.Net sites. Any suggestions?
Thanks!!

Well... You could simply create 1 image per letter/number (this is done within a few minutes) and then code a function, which seperates the given string into chars and then creates HTML-code with the pictures.
There is an easier way, sure. But I don't know him :P. You know "Captchas"? The Codes you have to enter all over the internet to verify yourself as human and not as bot? If you google about ths code uses to create Captchas, you should be happy :)
X--spYro--X

Similar Messages

  • Dynamic images with JSP

    Hello,
    I am using NetBeans to make a WebApp. I have an image to display on Page3.jsp that is generated during the navigation from the previous page, Page2.jsp. This image is a png file, and is unique graph generated for each visitor. Is there a simple way to display dynamically created images? I have searched for tutorials and asked my good pal Google but to no avail.
    (FYI: At present, I am saving the images in a folder I have created beneath the 'web' folder, called 'web/images'. Netbeans asks me if I want to reload the image only after the previous, old image has been sent out by the server. I am producing and creating the image with the button_action method of Page2.jsp that then sends the user to Page3.jsp, where the image is to be displayed. Once the image is reloaded, I can refresh the web page and the correct image appears.)
    Any help would be greatly appreciated.
    Thanks,
    Taivo

    Although I have never implemented this, I know it is possible and I can point you in the right direction. If you already have the code to create the .png image, it shouldn't be too difficult to modify the image code into a servlet to serve nothing but the image (and leave rest of the html in place). Just as the page is writen to an output stream from the request for page.jsp (by the servlet created by the jsp parser), a request for an image can be handled by a servlet.
    //this is in page3.jsp as plain HTML
    <img src="/servlet/graph?user=aUser" />This servlet (graph.class) draws ths image, but instead of writing it to a file, writes it to the response stream.
    Hope this helps,
    Bamkin

  • Dynamic imaging in jsp doesnt work

              Hi,
              The following piece of code works in tomcat but does not work in weblogic. can
              anybody please help me with this.
              <%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%>
              <%
              // Create image
              int width=200, height=200;
              BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
              // Get drawing context
              Graphics g = image.getGraphics();
              // Fill background
              g.setColor(Color.white);
              g.fillRect(0, 0, width, height);
              // Create random polygon
              Polygon poly = new Polygon();
              Random random = new Random();
              for (int i=0; i < 5; i++) {
              poly.addPoint(random.nextInt(width),
              random.nextInt(height));
              // Fill polygon
              g.setColor(Color.cyan);
              g.fillPolygon(poly);
              // Dispose context
              g.dispose();
              // Send back image
              ServletOutputStream sos = response.getOutputStream();
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
              encoder.encode(image);
              %>
              Thanx in advance.
              regards,
              Subramaniam
              

              Thanx a lot.Just read your solution again. Didnt get it the first time .Its pretty
              interesting.I think i will opt for the servlets solution.
              Dimitri Rakitine <[email protected]> wrote:
              >I thought I did. This version works (on 6.1 at least) :
              >
              >----------
              ><%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%><%
              >
              >// Create image
              >int width=200, height=200;
              >BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
              >
              >// Get drawing context
              >Graphics g = image.getGraphics();
              >
              >// Fill background
              >g.setColor(Color.white);
              >g.fillRect(0, 0, width, height);
              >
              >// Create random polygon
              >Polygon poly = new Polygon();
              >Random random = new Random();
              >for (int i=0; i < 5; i++) {
              > poly.addPoint(random.nextInt(width),
              > random.nextInt(height));
              >}
              >
              >// Fill polygon
              >g.setColor(Color.cyan);
              >g.fillPolygon(poly);
              >
              >// Dispose context
              >g.dispose();
              >
              >// Send back image
              >ServletOutputStream sos = response.getOutputStream();
              >JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
              >encoder.encode(image);
              >%>
              >----------
              >
              >Subramaniam <[email protected]> wrote:
              >
              >> Hi,
              >
              >> There is out.println("\n")'s in the java file generated by weblogic.
              >There is
              >> out.write("\n")'s in the java file generated by tomcat. So does that
              >make a difference
              >> ?
              >
              >> You told me to make a change in the jsp - could you be more specific
              >as to what
              >> change needs to be made(if i dont want to use a servlet).
              >
              >> Thanx in advance,
              >
              >> Subramaniam
              >
              >> Dimitri Rakitine <[email protected]> wrote:
              >>>Look at the generated .java file - WebLogic's JSP compiler adds
              >>>'out.println("\n")'s at the beginning. Try to change your JSP (or,
              >>>even better, use servlet to generate images) :
              >>>
              >>><%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%><%
              >>>
              >>>// Create image
              >>>int width=200, height=200;
              >>>BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
              >>>
              >>>// Get drawing context
              >>>Graphics g = image.getGraphics();
              >>>
              >>>// Fill background
              >>>g.setColor(Color.white);
              >>>g.fillRect(0, 0, width, height);
              >>>
              >>>// Create random polygon
              >>>Polygon poly = new Polygon();
              >>>Random random = new Random();
              >>>for (int i=0; i < 5; i++) {
              >>> poly.addPoint(random.nextInt(width),
              >>> random.nextInt(height));
              >>>}
              >>>
              >>>// Fill polygon
              >>>g.setColor(Color.cyan);
              >>>g.fillPolygon(poly);
              >>>
              >>>// Dispose context
              >>>g.dispose();
              >>>
              >>>// Send back image
              >>>ServletOutputStream sos = response.getOutputStream();
              >>>JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
              >>>encoder.encode(image);
              >>>%>
              >>>
              >>>Subramaniam <[email protected]> wrote:
              >>>
              >>>> Hi,
              >>>
              >>>> The following piece of code works in tomcat but does not work in
              >weblogic.
              >>>can
              >>>> anybody please help me with this.
              >>>
              >>>
              >>>
              >>>> <%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%>
              >>>
              >>>> <%
              >>>
              >>>> // Create image
              >>>> int width=200, height=200;
              >>>> BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
              >>>
              >>>> // Get drawing context
              >>>> Graphics g = image.getGraphics();
              >>>
              >>>> // Fill background
              >>>> g.setColor(Color.white);
              >>>> g.fillRect(0, 0, width, height);
              >>>
              >>>> // Create random polygon
              >>>> Polygon poly = new Polygon();
              >>>> Random random = new Random();
              >>>> for (int i=0; i < 5; i++) {
              >>>> poly.addPoint(random.nextInt(width),
              >>>> random.nextInt(height));
              >>>> }
              >>>
              >>>> // Fill polygon
              >>>> g.setColor(Color.cyan);
              >>>> g.fillPolygon(poly);
              >>>
              >>>> // Dispose context
              >>>> g.dispose();
              >>>
              >>>> // Send back image
              >>>> ServletOutputStream sos = response.getOutputStream();
              >>>> JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
              >>>> encoder.encode(image);
              >>>> %>
              >>>
              >>>
              >>>> Thanx in advance.
              >>>> regards,
              >>>> Subramaniam
              >>>
              >>>--
              >>>Dimitri
              >
              >
              >--
              >Dimitri
              

  • Create dynamic image, dump on server someplace and reference in JSP?

    I was thinking about creating dynamic images and referencing them on a JSP
              (creating them is ok). I'm sure this is a pretty standard thing, but I
              don't know how to do it. Any ideas? I tried doing a search on the BEA
              support site (nice changes :>) but nothing very accurate came up.
              Thanks.
              

    Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
              so that it will work on the file system or in the database.
              The JSP will include an image ref to that ID, e.g.
              http://www.myco.com/myapp/imageservlet?id=1234
              The image servlet will retrieve and stream the image. It has to set content
              type etc. You should also verify that the current user has access to the
              requested image if security/privacy is an issue.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "PHenry" <[RemoveBeforeSending][email protected]> wrote in message
              news:[email protected]...
              > Howdy. I just thought of something. If the img is coming across via the
              > stream, how do you reference it in the html/jsp file? I just thought
              about
              > that now as I was getting a cup of coffee. (I need to cut back! :>)
              >
              > Thanks.
              >
              >
              >
              >
              > "Cameron Purdy" <[email protected]> wrote in message
              > news:[email protected]...
              > > If you write it to a file, you are writing it to an OutputStream, right?
              > >
              > > Instead, just write it to the OutputStream that comes from the
              HttpRequest
              > > object. For example:
              > >
              > > <img src="http://www.mysite.com/myapp/my.jsp?name=whatever">
              > >
              > > That would hit your JSP (it would be better to use a Servlet in this
              case
              > > though), and you would stream back the image.
              > >
              > > Peace,
              > >
              > > Cameron Purdy
              > > Tangosol, Inc.
              > > http://www.tangosol.com/coherence.jsp
              > > Tangosol Coherence: Clustered Replicated Cache for Weblogic
              > >
              > >
              > > "PHenry" <[RemoveBeforeSending][email protected]> wrote in message
              > > news:[email protected]...
              > > > Interesting. I'm still a bit new to this stuff. Do you have/know
              where
              > > to
              > > > find some examples?
              > >
              > >
              > >
              >
              >
              

  • Display image on jsp page

    I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database.
    First problem is that image will be taking time to display in comparision of other outouts from database. I have to refresh the page to get imageon my page.
    Second is that if I save image in a folder parallel to web-inf in my project then it will not be displaying the image.
    Can I use any jsp functionality to display image with other outputs from database. I have used "*include*". but it shows only that image and other outputs.

    Best way is to use a servlet for this.
    <img src="path/to/imageservlet?id=someidentifier">
    <!-- or -->
    <img src="path/to/imageservlet/someidentifier">In the servlet's doGet() just write code which gets an InputStream of the image (either directly generated, or just read from the local disk file system, if necessary with help of ServletContext#getRealPath(), or even from the DB by ResultSet#getBinaryStream()) and writes it to the OutputStream of the response. That's basically all. Don't forget to buffer the streams properly to speedup performance and to save memory.
    You can find here a basic example: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • Dynamic Gifs in JSPs

    Hi,
              I am trying to build a server that loads gifs from files, modifies them and
              them uses jsp to output them to client browsers. I am using the GifEncoder
              classes from ACME but from what I can see these were designed to be used
              with Servlets and not JSPs. Has anyone got this to work and if so how have
              you done it. Does anyone have an alternative solution.
              Thanks,
              Ged.
              

    Why do you ever want a JSP to serve a Image?
              If you are generating dynamic images, servlets is the way to go.
              If you still want to use jsp The examples you are looking at will definitely
              work.
              Ged Roberts wrote:
              > Hi,
              >
              > I am trying to build a server that loads gifs from files, modifies them and
              > them uses jsp to output them to client browsers. I am using the GifEncoder
              > classes from ACME but from what I can see these were designed to be used
              > with Servlets and not JSPs. Has anyone got this to work and if so how have
              > you done it. Does anyone have an alternative solution.
              >
              > Thanks,
              >
              > Ged.
              

  • Dynamic Image Location in JRC

    <p>Hi !</p><p> </p><p>We are interested in using so called dynamic image location future in JRC. So far we are unsucessful, so the question is, is it supported in JRC ? We are able to get dynamic image location future working in report designer, but when our report is exported there is no image only path to it. </p><p> </p><p>We use Crystal Reports 11 R2, Java Reporting Component in JSP version.</p><br /><p>Mac</p>

    I have a couple of reports working with dynamic images. CR4E doesn't support this (yet?!?), but you can still do it with the JRC. The big kicker is the syntax of your URL. If you're using a static image on a server somewhere, it should work with no problem. However, if you're using a generated image, it's a little trickier. I discovered this when I was creating a report with barcode labels. The barcodes were not getting generated. I turned on debugging and found that the JRC was screwing up my url. The url was as follows http://myserver/barcode?message=12345 67890&format=datamatrix.
    In the logs, the JRC said it couldn't find an image at the url
    http://myserver/barcodemessage=12345+67890&format=datamatrix. It was stripping out the ? in the url, which is kind of an important character to say the least. I messed around with it and eventually found that if I just put ?? instead of ?, the image would display correctly with the JRC. Hope this helps! If not, post what version of the JRC you're using and the URL you're using for the image location.

  • Dynamic image is not being displayed in Adobe Reader 8.1

    Hi,
    In interactive form, we have followed below required steps to show a dynamic image.
    For the left image, drag and drop an Image Field element from the standard Library tab to the Body Pages pane. Select this image field and edit the following properties:
    • Click on the Layout tab and choose None for the Caption position.
    • Click on the Object, then the Binding tab and choose None for Default Binding.
    • Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    • Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Language: FormCalc Run At: Client
    Image is displayed properly in Adobe reader 7.1 but it's not being displayed in Adobe reader 8.1.
    I was going through some forums and understand that Adobe 8.1 blocks href URL. If this is indeed true, what's the alternative way to show a dynamic image?
    Regards
    Chandra
    Edited by: Chandrashekhar Singh on Apr 24, 2008 7:28 AM

    Soory, I thought its static image....
    Regards,
    Vaibhav Tiwari.
    Edited by: Vaibhav Tiwari on Apr 24, 2008 11:45 AM

  • Dynamic image in the template builder plug-in does not work

    Hi all,
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    +...This works obviously+
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    +...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}+
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    +...This, however, does not work.+
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1
    Edited by: oeren on Jun 8, 2011 12:28 AM

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be seen at :
    http://www.designpublic.com/spot-on-square-roh-dresser
    So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page.  I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
    Thanks for the help people!
    William

    Hi
    I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
    If you view source you will see -
    <a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
    Which is controlled by the javascript function
    popWin()
    which you can view using the firefoxe dev toolbar - view javascript function.
    PZ

  • Dynamic Image Displays Blank When Using In Visual Studio Project

    I am trying to simply display a dynamic image in a report. I am using Crystal Reports XI Release 2.
    I have two different environments: Local via Progress where reports are called using Crystal Viewer ActiveX, and over the web where reports are called from Open Laszlo and Visual Studio project.
    The image is set to a blank image as default, and Graphic Location Forumla loads the image from the database (site.logo_location + site.logo_filename) which results in an image http:
    www.vetinfo3.com\a.jpg.
    When I run the reports locally using the ActiveX control, it works just fine and displays the image.
    When I run over the web using OpenLaszlo, it displays a blank.
    Troubleshooting
    We are using Visual Studio 2005, which is bundled with an older version of Crystal that doesn't support dynamic images.
    To address this, I loaded Crystal XI Release 2, which updated the version in Visual Studio and enabled the Graphic Location formula field on the dev machine.
    I verified the Graphic Location field was set correctly.
    This caused a Version error, so we loaded cr_net_2005_mm_mlb_x86.zip on server and specified the Version in web.Config.
    No errors now, but when I build and publish the code, the image still displays as blank.
                From Fiddler
                   GET http://www.vetinfo3.com/mdsol1/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_c5d6a923-293b-4f1e-8739-4e698f83b087.png
                   Creates C:\Documents and Settings\Curtis\Local Settings\Temporary Internet Files\Content.IE5\PWRUX2XW\CrystalImageHandler[1].png
                   Blank Image
    According to issues within Visual Studio, they say the fix to this is to add the <httpHandler> in web.Config, but it is already there; added when we add the viewer to the project:
    In web.Config I have some questions about this line:
        <httpHandlers>
          <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        </httpHandlers>
    There are more service packs for Crystal XI Release 2:
    crXIr2sp2_net_server_install.zip
    crXIr2sp3_net_server_install.zip
    crXIr2sp4_net_server_install.zip
    I have not loaded these yet, but the readme files do not indicate they fix any dynamic image issues.
    I am out of ideas on this; does anyone have any ideas?

    What about if you take OpenLaszlo out of the picture? E.g.; use one of our samples from here;
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    I'd recommend vbnet_web_simplepreviewreport
    Also, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

Maybe you are looking for

  • Messages to contact also appearing on my wife's Iphone? We share the same Apple ID

    Hi - My wife and I share the same Apple ID to sync our iPhone. Ever since I downloaded Messages Beta my wife gets my conversations. What's also happening is when I text her from my iPhone's iMessage, It comes across to her phone as 2 texts. when I te

  • Mail Program - popup message won't let me access my emails

    I sure hope someone can help me with this problem! I received an email to my gmail account, and when I tried to open in up with my Mail program - I got this message box " To view this page, you must log in to area "WebMail" on secure97.inmotionhostin

  • InDesign CC Layers disappear on certain pages?

    Hi, As a relatively new user to InDesign, this may be a simple solution, however some of my colleagues were also unable to help me. When working on a document recently, I had tried to copy objects from one page to another, however when I tried to pla

  • Connecting MS-Access database with Oracle Forms

    Hai, Can any one suggest as to how I can connect MS-Access database with Oracle Developer Forms. What is the procedure ? Suggest me if I need to install any drivers. Waiting for an early reply. Warm Regards, Raghav. email:[email protected]

  • Anonymous class

    I hava got a nested class like: public class Test {     public static class MathArray {      double[] array;      MathArray(double[] array) {          this.array = array;      void warnNaN(double d) {          if(((Double)d).isNaN())           System