Uploaded  image not shown

hello experts,
I have been done a web java application in struts. Its working fine in my pc, where i have netbeans 6.0 IDE. But when i deployed the war file at client pc, where jdk1.5 and tomcat 5.5.9 are installed, its not showing newly uploaded image but it shows all the images which were present while creating war file from my pc. But the image is uploaded. I upload the images into c:\rh\web\photo and c:\rh\build\web\photo ( unless i place here, i can't able see the newly uploaded image without stopping and running the application). I feel the only difference between client Pc and my Pc is, I run my application using netbeans whereas client pc doesn't have netbeans(rest all it has), through tomcat it runs there.
Any help will be greatly appreciated.
Thanks,
SRI.

You know that HTML runs at the client side?
You know that file system paths are not the same as URL's?
You know that file system paths points to the file system of the local machine?
If you have for example a <img src="c:/foo/bar.gif" /> in your HTML, which is been sent from the server to the client side, the web browser will try to search for "c:/foo/bar.gif" in the local file system. This is obviously not going to work when the image is actually located at the server's file system.
You need to replace file system paths by URL's, so that the client can retrieve the image from the server. When the image is not available in public domain, then create a servlet which accesses the server's file system and sends the desired image to the response. Finally let the URL of the image point to that servlet, along with some unique ID or filename. You may find this example useful: [http://balusc.blogspot.com/2007/04/imageservlet.html].

Similar Messages

  • Gray image not shown correctly in photo app

    Hi, in my iphone App, I create a Gray CGImage. Some code is here:
    colorSpace = CGColorSpaceCreateDeviceGray();
    if (colorSpace == NULL)
    fprintf(stderr, "Error allocating color space\n");
    return NULL;
    CGDataProviderRef dataProvider =
    CGDataProviderCreateWithData(NULL,
    myimagebuffer,
    bitmapByteCount,
    NULL);
    CGImageRef cgImage = CGImageCreate(col,
    row,
    8,
    8,
    col,
    colorSpace,
    kCGImageAlphaNone,
    dataProvider,
    NULL,
    false,
    kCGRenderingIntentDefault);
    And then I use this CGImage to make a UIImage. This image shows OK in UIImageView. I also use UIImageWriteToSavedPhotosAlbum to save this gray scale image to photo album. But when I open iphone native Photo app, this image is not shown correctly.
    Anyone has the same experience?
    Thanks,
    fm

    Post Author: JeffI
    CA Forum: Older Products
    Because I am sure other people will encounter this issue, I will post the solution here...The issue lies in what program is associated with .bmp files. In my specific case the customer had PhotoSuite 4 by Roxio associated with opening bmp files.  I am not sure exactly why (perhaps it doesn't support drag-and-drop?) but if you create a .reg file and import this it should fix the problem. The bolded part is the important part. Windows Registry Editor Version 5.00&#91;HKEY_CLASSES_ROOT&#93;&#91;HKEY_CLASSES_ROOT\*&#93;"InfoTip"="prop:Type;DocAuthor;DocTitle;DocSubject;DocComments;Write;Size""QuickTip"="prop:Type;Size""AlwaysShowExt"="""TileInfo"="prop:Type;Size"&#91;HKEY_CLASSES_ROOT\.bmp&#93;@="Paint.Picture""PerceivedType"="image""Content Type"="image/bmp"&#91;HKEY_CLASSES_ROOT\.bmp\OpenWithList&#93;&#91;HKEY_CLASSES_ROOT\.bmp\OpenWithList\MSPaint.exe&#93;@=""&#91;HKEY_CLASSES_ROOT\.bmp\OpenWithProgids&#93;"Paint.Picture"=hex(0):

  • SRM-MDM Catalog: Images not shown in search ui - only placeholder visible

    Hello Expert,
    we have the problem, that the images, which we imported into the repository using the Data Manager are not shown in the search ui. The image is visible in the Data Manager and assigned to a product.
    If I make a right-click on the image in the brower,  I get a URL like this
    http://[server]:port]/webdynpro/resources/sap.com/tc~mdm~srmcat~uiprod/Components/com.sap.mdm.srmcat.uiprod.ItemDetails/null//Images?id=1&variant=Thumbnail&cachePath=/tmp/largeObjectRepositoriesCachedFolder/kfw-mdm-ae54/RepositoryPort_2010/User1&relativePath=t07/0000000/r00001v-2.jpg
    Regards,
    Sven
    Edited by: Sven Haustein on Oct 16, 2008 3:28 PM

    Hi,
    we are using SRM-MDM Catalog 2.0 SP04 Patch 01 (5.5.63.65)
    Retrieving MDM JAVA API Version
    Admin Version = 5.5.63.02 [Interface CRC=0x5b63a633]
    Build Version = 5.5.63.102
    Content Version = 5.5.63.09 [Interface CRC=0x9d7cb0c4]
    Meta Version \t= 5.5.63.00 [Interface CRC=0xab59b8dc]
    !======================================!
    Building up connection to MDM Server 10.130.32.81
    Retreiving MDM Server Version
    Version = Version 5.5 SP6 (5.5.63.65)
    Regards,
    Sven

  • Export to Pdf: Image not shown

    I'm a newbie with Crystal Report.
    I'm trying to export a loaded Crystal report document in C# to pdf.
    I have a image in the document but it will not show. The Image path is an url.
    If I export it to CrystalReport format it works fine and the image is shown.  
    crdoc.ExportToDisk(ExportFormatType.CrystalReport, logPath + debugFileName + "_1.rpt");
    If I export it to Pdf format it will not work.  
    crdoc.ExportToDisk(ExportFormatType.PortableDocFormat, logPath + debugFileName + ".pdf");
    I also tried to export the document like this
    ExportOptions crExportOptions = new ExportOptions();
    DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
    crDiskFileDestinationOptions.DiskFileName = logPath + debugFileName + "_2.pdf";
    crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
    crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
    crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
    crdoc.Export(crExportOptions);
    The refrences i'm using is
    CrystalDecisions.CrystalReports.Engine vers. 11.5.3700.0
    CrystalDecisions.Enterprise.Framework vers. 11.5.3300.0
    CrystalDecisions.Enterprise.InfoStore vers. 11.5.3300.0
    CrystalDecisions.ReportSource vers. 11.5.3700.0
    CrystalDecisions.Shared vers. 11.5.3700.0

    I found a solution to this problem:
    1200904 - A dynamic image from an HTTP source does not appear in a .NET application 
    Symptom
    A dynamic image from an HTTP source does not appear in a .NET application deployed to a production system.
    Cause
    This problem occurs because the library file libcurl.dll is missing from the Business Objects bin directory. The libcurl.dll is not included in the .NET merge modules for Crystal Reports XI and Crystal Reports XI Release 2.
    Crystal Reports XI Release 2
    1. Find the libcurl.dll on the development system in C:\Program Files\Business Objects\Common\3.5\bin.
    2. Copy and paste libcurl.dll to C:\Program Files\Common Files\Business Objects\3.5\bin on the production system.

  • Images not shown correctly i addon store

    I Have a questions regarding the Adobe® Exchange Producer Portal. If this is not the correct forum, please do direct me to the correct channel.
    Images not showing correctly on the product page in the addons store.
    See page https://creative.adobe.com/addons/products/5132#.VL4rTy5GySM
    For instance the preview images are not showing correctly.
    The url https://portcullis-production-us-east-1.s3.amazonaws.com/0/5132/26a19cfe-663d-49f4-86f4-fd 4b2d6a338b.png returns status code "403 Forbidden"

    If this is your product, please submit a metadata change request with new images uploaded. That should solve the problem.

  • New images not shown

    Hi,
    Apparently images that are not on the disk when a Java application starts but that are added on disk during program execution, are not shown on JLabels, JButtons, ...
    Anyone knows why?
    Taaje

    Dunno, coz it works 4 me. Y ! 4 u?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) {
            final File file = new File("temp.jpg"); //constructor doesn't create file in file system, right?
            final JPanel cp = new JPanel(new BorderLayout());
            JButton write = new JButton("write image file");
            write.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    try {
                        URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
                        ImageIO.write(ImageIO.read(url), "jpg", file);
                    } catch (IOException e) {
                        e.printStackTrace();
            JButton read = new JButton("attempt to read file and create label");
            read.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                   try {
                       cp.add(new JLabel(new ImageIcon(ImageIO.read(file))));
                       cp.revalidate();
                       cp.repaint();
                   } catch (IOException e) {
                       e.printStackTrace();
            JPanel buttons = new JPanel();
            buttons.add(write);
            buttons.add(read);
            cp.add(buttons, BorderLayout.NORTH);
            cp.setPreferredSize(new Dimension(400, 300));
            JFrame f = new JFrame("Example");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(cp);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Uploaded file not shown

    I have uploaded pdf file to files.acrobat.com (89Mb), but it is not shown in list of uploaded files (no errors). I tried it several times.

    Hm, it's getting more and more tricky...
    From stack trace I figured out the Macromedia driver ColdFusion seems to be using when I just select "Sybase" as driver type, so I configured it using "other" as type:
    JDBC URL: jdbc:sybase:Tds:<servername>:1433/<dbname>
    Driver Class: macromedia.jdbc.sybase.SybaseDriver
    For comparison, I used the following parameter to configure it for the Sybase provided JDBC driver:
    JDBC URL: jdbc:sybase:Tds:<servername>:1433/<dbname>
    Driver Class: com.sybase.jdbc4.jdbc.SybDriver
    To my surprise, the Macromedia driver still does NOT work with cfqueryparam, I got the same error!
    As I mentioned before, I cannot select "Sybase" as driver type on our production server because it's Standard Edition, so the only option for me to use Sybase is to configure the driver this way. Now it seems no matter what driver I use, as long as the driver is configured this way, INSERT won't work with CFQUERYPARAM?!
    Needless to say, I'm really quite frustrated by this...

  • Creating form with user uploaded image (not attachment)

    Is it possible to create a form with a space for user uploaded image?  Not attachment.
    Thank You

    This is not supported by FormsCentral.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Flip book images not shown in flash.

    hi, i am new to all this and i am after a bit help please.
    i made a flash flipbook for my images using photo to flippingbook, and i uploaded it from dreamweaver on to my site,
    the  problem is, it works great in IE but does not in Firefox, in Firefox  you can see the flip book and buttons but no images at all.
    i have  tried everything i can think of including checking the internet for  ideas but i am at a loss, i do not know if it something to do with the  code or not.
    can someonne please help or give mee some ideas so that i can try and sort this problem out.
    thank you in advance for any help, thanks michael
    LINK
    http://mickynez.atwebpages.com/flip.html

    mate just checked ther it works in IE still and is just a white square blank flip book with no i msges in firefox, i asked a few people and they say they see the same as me? i dont know whats happened.

  • Uploading Images - Not Working?

    My company updated to the Dreamweaver CC version and I’m having trouble getting the images to upload.  The text and hyperlinks come through, but no new photos.  We are using Dell PCs, Windows 7, and a 64-bit OS.
    Examples:
    http://www.pookandpook.com/categories/moderndesign.php (should be the fourth photo down in the second column - Italian Lucite and Leather Living Room Suite $2,460)
    http://www.pookandpook.com/categories/jewelry.php (Half way down below the green jade brooch – photo for Diamond 14K White Gold Ring $5,904)
    I’m not getting an option to “Check Out” the pages like I used to with the old version of Dreamweaver we were using. The text is there, but it is grayed out and not "clickable."  When I select “Get”, it runs through some things, but nothing opens.  When I double-click it finally opens.  But when I save, nothing is saving to the local view.
    I’m just totally confused that the text is coming up, but not photos.  Any thoughts on what I am doing wrong?  I don’t know much about Dreamweaver… I just basically add photos, text, and links to existing pages.
    Someone told me my image folder may be located in the wrong place, but I don't know where the right place is?

    Something isn't quite right with the image paths on those few images.  When I view the page most work and point to ../pookSite.  On the ones that are not working they are showing a path 4 levels deeper ../../../../ .  If you update those paths on the page the problem should be resolved.

  • Image not shown - mysterious error

    We recently encountered a -to us very mysterious- problem in a report:
    We have to fields A, B and a repeating frame R on the same level. The repeating frame shows an image from a db blob.
    We have A and B side by side and R below that.
    A and B have format triggers which do no formatting but return FALSE or TRUE depending on whether data for the corresponding field is available or not.
    The image is only shown if the format trigger for A returns FALSE.
    Even worse we think that this error did not occur before and we did not change the iAS configuration (10g).
    Any ideas?
    Thanks
    Peter

    Meanwhile we learned that there is an implicit anchor between A and R.
    We
    - CUTted A and B
    - created a "dummy" field A0 left of A
    - thus got an implicit anchor between A0 and R
    - COPIED A and B
    - created a format trigger on A0 which does nothing than returning false
    This is a workaround (the mystery still exists..)

  • Ovi Social uploading images not working

    Hello,
    I am signed into FB and Twitter on Ovi Socialand can read updates.  I am unable to post updates.  It just shows updating status and a moving bar.
    As well, when i go  to images and try to share them, it says uploading started, but it never uploads.  there is no error.
    rebooting makes no difference.
     suggestions?
    thanks
    Nokia 3395
    Nokia 6600
    Nokia N95 8GB
    Nokia N8 (Anna)
    Nokia Lumia 930

    The certification system was an effective way of ensuring that virus's and other nastys never made it into official apps, 
    However it's not a certificate issue in the swype case,
    Rather 
    Swype 2 was released as a beta through betalabs, 
    it was intended to follow up with a prime release and further development, but this plan was shelved after the burning platform memo and Nokia killing Symbyan, with swype going on to develop for android
    Late november 2012 (around a year after release)  the original beta stopped working because like most beta's it contained a drop dead date, normally wouldn't have been an issue becasue it would have been superceded by a prime release or another beta, 
    Swype were good enough to release the same beta with a new drop dead date,but for some reason rather than choosing 2099 or some date infinatly in the future, they chose dec 31 2013
    There's a thread on dailymobile that details the issue and a hack fix that resolved the issue
    Today there is a discussion on all about symbyan that links to this thread and the fix, as well as another possible fix,
    unfortunatly both fixes require rooted phones and cannot be discussed further here
    The oficial options of gettng this working again involve petitioning the developer, worked last time, but can't see it this, especially now that beta labs itself is all but defunct, site http://forum.swype.com/
    You can also try setting the date on your handset to 2013 and see if that helps 

  • Images not shown in Diagram view SCOM 2012 R2

    Dear SCOM Experts,
    I have been creating mpbundle using C# . I was able to add resources to the images. I was able to import the .mpb file. I was able to discover and monitor the components, but I could not see the images for components in diagram view. I have followed the
    procedure in msdn website 
    http://msdn.microsoft.com/en-us/library/gg986188.aspx 
    EnterpriseManagementGroup mg = new EnterpriseManagementGroup("localhost");
    ManagementPack mp = new ManagementPack("Folder\\RePackaging.Library.xml");
    System.IO.FileStream fileStream1 = new System.IO.FileStream("Folder\\Resources\\package_16.png", System.IO.FileMode.Open);
    System.IO.FileStream fileStream2 = new System.IO.FileStream("Folder\\Resources\\package_32.png", System.IO.FileMode.Open);
    System.IO.FileStream fileStream3 = new System.IO.FileStream("Folder\\Resources\\package_64.png", System.IO.FileMode.Open);
    ResourceStream resStream1 = new ResourceStream(mg, fileStream1);
    ResourceStream resStream2 = new ResourceStream(mg, fileStream2);
    ResourceStream resStream3 = new ResourceStream(mg, fileStream3);
    ManagementPackBundleWriter bundleWriter = ManagementPackBundleFactory.CreateBundleWriter(".\\");
    ManagementPackBundle bundle = ManagementPackBundleFactory.CreateBundle();
    bundle.ManagementPacks.Add(mp);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_16", resStream1, ManagementPackBundleStreamSignature.Empty);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_32", resStream2, ManagementPackBundleStreamSignature.Empty);
    bundle.AddResourceStream(mp, "RePackaging.Library.Resources.Images.Package_64", resStream3, ManagementPackBundleStreamSignature.Empty);
    bundleWriter.Write(bundle, "RePackaging.Library");I had even used MPViewer to check if the images are in .mpb and I could see the images in Resources sectionin MPViewer software. I dont understand why i could not see images in diagram view.Please help!!!!!!

    Hi,
    A management pack bundle gives you the ability to not only add the XML but you could also add images or assembly in a much more efficient way then before without the bundle. When importing a MPB the xml will be imported as well as the assembly and images
    within it.
    Please refer below link for bundle and to unbundle MPB file 
    http://www.systemcentercentral.com/management-pack-bundles-to-bundle-and-to-unbundlendashcreate-a-mpb-and-extract-contents-from-a-mpb/
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • When editing an image in ps from a lr 4.2 smart collections image not shown back in smart collection

    Hi all,
    I have noticed at LR 4.2, that if you edit an image of a smart collection using PS (edit in PS function threw LR) and then save, the image is not appearing in the specific smart collection. Instead  image appears in the parent folder from where the smart collections retrieves images.
    Has anyone notice that as well??
    Forgot to mention that my parent folder with files is a collection created with virtual copies of seleveted files. If i edit in Photoshop directly threw this virtual copies collection then the files appears in smart collections as well. but if i edit in PS directly from smart collections then files dont appear into smart collections neither at the virtual copies collection!!

    "obviously you use virtual copies when creating those collections" - why? It seems to me that this just increases the number of images in your Library for no benefit, unless you want to independently edit  the two image versions, one inside the Event collection and one outside the collection. If you ever wanted to see an unedited version of a particular image, LR retains the history (and before/after view) needed to show that, within the single thumbnail.
    It is not necessary to make a Smart Collection in order to show only picked images from a particular event. You can use a Filter to show just the picked images and hide the rest. That means you can work inside the collection, and that means that when you edit an image to PS, the new LR version WILL inherit the collection membership as well as the Pick status, and therefore will immediately show next to the image it is based on.
    I think this is going to be simpler and easier - BTW you don't have to go back to Library Grid view in order to apply filters, only in order to configure them in the first place. By saving Filter presets with a name, you can then select between these directly [from the menu at the right end of the Filmstrip] while you work, even in Develop- for example, "no filter", "picked", "unpicked", "rated two or more", whatever you want. Also you can switch between the recently-viewed collections and folders [from a menu when you click on the image details text toward the left end of the Filmstrip], to change the underlying content of the Filmstrip, to which you are applying these filters.
    By "using selection criteria other than membership in a manual collection", I just meant: a special keyword, or a particular folder, or some combination of such things. But if you prefer to put images into a Collection, you can just use that directly and IMO you don't need the SC.
    I personally like to have some kind of sufficiently identifying keywords on the image anyway, so that Exported copies will also show this information automatically... since an exported image will not reveal what collection its master image belonged to, that classification alone is not enough IMO.

  • Png images not shown in applet when opened in internet explorer

    hi all,
    I am using some transparent PNG images in my applet . Its working properly in appletviewer as well as netscape but images just disappear in internet explorer.
    same image appears in internet explorer but not in applet in internet explorer.
    can anybody help me ?
    thanks

    The java version that IE has doesn't have support for PNG, only gif and jpeg.

Maybe you are looking for

  • I have another question related to the connection and operation of FP-RLY-422

    1. I use one 25 VDC power to supply power for all the five fieldpoint modules(i.e. V and C terminals of FP-2000, FP-AI-110, FP-AO-200 and FP-RLY-422 are connected) However, as cascading power from neighboring bases or network modules defeats isolatio

  • Internal Order creation in ECC after creation of Service Contract in CRM

    Hi, I hv created Service Contract in CRM, but there is no internal order created referring this in ECC. Even no errors in CRM. What shall i chk for this. rgds, balu

  • Cloning a Boot Drive with NetInstall?

    I need to duplicate the state of one configured client machine to several others on a network. Thus far, I've gotten the NetInstall option to work with base configurations from an OS X client install CD, but not the image I've created from the config

  • Alter table taking long time

    Hi we have problem with one of our tables we are trying to add a column to that table and it hangds I am trying to drop the table and it still hangs nor can i rename that table to a diff table name i killed the SQL session and in one of trace files g

  • Point grey chameleon camera

    Hi, I'm trying to talk to a point grey chameleon USB camera with Labview using ActiveX. I was able to register the DLL and display the live image and change the settings (shutter, gain, etc.). When I tried to get the image data using the "GetImageDat