Problem viewing images from FTP server from HTMLs generated from a JSP

Hello,
We are developing an web application. The htmls will be dynamically generated based on user request. These htmls will contain images using urls like this "<img src="ftp://xyz/test.jpg">". We are having some strange problem. When we view the jsp generated html then it can not retreive the images fromthe FTP server. But when I copy the texts of this html and make a static html with this text then the image is shown...:-((
Ahmed

I don't know for sure,
but if you use a server like resin you need to place the port after the server (e.g. intranet:8080/index.html) so maybe you should type ftp://xyz:23/image.jpg.

Similar Messages

  • How to view images from application's path?

    Hello,
    I am using the codes below to view images from an ACCESS database listed as ".\image.png", the images are included in the application's path. I'm able to view the images while running crystal reports alone; However when I include the same report and databse in my VB.NET application, the images don't show. I was told that the report looks for the images in a temp folder, an alternative solution would be to copy the image files to a temp folder before attempting to run the report, but so many things can go wrong with such approach. Do you have a better solution to this problem?
    Thanks in advance.
    Victor
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim myaop6viewer As New aop6viewer
            Dim myaop6report As New AOP6V2
            Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
            crConnectionInfo.ServerName = (Application.StartupPath & "\AOP6V2.mdb")
            crConnectionInfo.Password = "testaop"
            setDBLogonForReport(crConnectionInfo, myaop6report)
            myaop6report.RecordSelectionFormula = "isnull({image.country}) = false"
            With myaop6viewer
                .CrystalViewer22.ReportSource = myaop6report
                .Show()
            End With
            myaop6report = Nothing
        End Sub
        Private Sub setDBLogonForReport(ByVal connection As ConnectionInfo, ByVal report As ReportDocument)
            Dim mytables As Tables = report.Database.Tables
            Dim mytable As CrystalDecisions.CrystalReports.Engine.Table
            For Each mytable In mytables
                Dim mytablelogoninfo As TableLogOnInfo = mytable.LogOnInfo
                mytablelogoninfo.ConnectionInfo = connection
                mytable.ApplyLogOnInfo(mytablelogoninfo)
            Next
        End Sub

    I tried following your suggestions, but I'm unable to link to the image file from the application, can you please help me link to the image from the application.
    1. Created a formula name test with the folowing data:
    ".\test.png"
    2. In the Gphics Location, entered:
    {@test}
    3. Below is the code in my application
    Imports System.Data.OleDb
    Imports Microsoft.VisualBasic.ControlChars
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Public Class Form1
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim myaop6viewer As New aop6viewer
            Dim myaop6report As New AOP6V2
            Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo
            crConnectionInfo.ServerName = (Application.StartupPath & "\AOP6V2.mdb")
            crConnectionInfo.Password = "testaop"
            setDBLogonForReport(crConnectionInfo, myaop6report)
            myaop6report.DataDefinition.FormulaFields.Item("@test").Text = "path + picture name" '???????
            myaop6report.RecordSelectionFormula = "isnull({image.country}) = false"
            With myaop6viewer
                .CrystalViewer22.ReportSource = myaop6report
                .Show()
            End With
            myaop6report = Nothing
        End Sub
        Private Sub setDBLogonForReport(ByVal connection As ConnectionInfo, ByVal report As ReportDocument)
            Dim mytables As Tables = report.Database.Tables
            Dim mytable As CrystalDecisions.CrystalReports.Engine.Table
            For Each mytable In mytables
                Dim mytablelogoninfo As TableLogOnInfo = mytable.LogOnInfo
                mytablelogoninfo.ConnectionInfo = connection
                mytable.ApplyLogOnInfo(mytablelogoninfo)
            Next
        End Sub
    Thanks,
    Victor

  • How to view Images from Filesystem in Apex?

    hello,
    i want to view images from a network share (e.g. \\10.67.125.22\CREATIVES_DE\PRINT\THUMB\2009\06\002259044s01.JPG don´t nedd http access because it´s only intranet) in an image column of a table. unfortunatly i can´t upload them all into apex because i have really much data. i´m talking about serveral terabytes. i also want to link to videos on a network share but apex always inserts "http://ham-v000002:8080/apex/" in front of the link from the database...
    can someone help me out?
    greetings
    Sebastian

    i´m getting closer...
    apex stopped inserting the localhost-string as i put "file://" in the "src" attribute. But now i´m dealing with odd slash-adding from apex.
    the value located in the #THUMB# variable is like this:
    \\10.67.125.22\CREATIVES_DE\PRINT\THUMB\2009\06\002268162s01.JPG
    and here´s what apex returns on "<img src="file://#THUMB#">":
    file:////10.67.125.22/CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    and the same with three slashes "<img src="file://#THUMB#">"
    file://///10.67.125.22/CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    if i just do "<img src="file:#THUMB#">" (which should return the correct path), oralce cuts away the ip-adress:
    file:///CREATIVES_DE/PRINT/THUMB/2009/06/002268162s01.JPG
    i don´t know what´s wrong here...
    greetings,
    Sebastian

  • HT4106 Will the camera kit allow you to view images from a usb flash drive?

    Will the camera kit allow you to view images from a usb flash drive?

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
     Cheers, Tom

  • View image from local

    Hi,
    I'm using J2ME wireless toolkit, and I want to know is it possible to view image from local(eg. C:\WTK22\appdb\DefaultColorPhone\filesystem\root1). I've written some code to view form the folder but it appear "error: null".
    mage storedImage = null;
              String picLink = "file://localhost/" + currDirName + fileName;
              try{
                   storedImage = Image.createImage(picLocation);
              catch(Exception e){
                   System.out.println("Error here: " + e.getMessage());
              }

    Yes, it is possible.
    They were demonstrating the RT display at NI Week. It is part of the RT features of Vision 6.1. You can route an IMAQ display window to the video output on the PXI chassis. Anything you display in that window will show up on your screen.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to upload an image from servlet/jsp into server from clients machine?

    can anybody send me the code to upload image from client to server using servlet/jsp.
    i'm using tomcat server.

    You can use the [Apache Commons FileUpload API|http://commons.apache.org/fileupload/] to upload files using Java.
    Here is a Filter example which uses the FileUpload API to process the request and stores the regular request parameters back in the ParameterMap of the request and puts the uploades files as attributes of the request: [http://balusc.blogspot.com/2007/11/multipartfilter.html] Just define it once in web.xml and you can continue writing the servlet logic as usual.

  • How to insert and view images from oracle using jsf

    Can anyone please give me some code example or link of article explaining that how can i insert and view images to/from oracle using jsf?
    Thanks in advance.

    You mean you want to view image data stored in the database, right?
    Create a servlet that streams the image data to the response (setting the appropriate content-type), then reference this servlet in your img tag. Here is an example:
    http://balusc.blogspot.com/2007/04/imageservlet.html
    Storage is something different. What exactly don't you understand there? Perhaps you want a file upload component?

  • How to view images from PC on MAC

    Have iMAC 10.6.8. Using iPhoto '09. Have lots of pictures saved on CD downloaded from a PC. Problems viewing them on MAC. First, what is an easy way to view them on MAC without transferring them, and secondly, what is the best way to transfer them to MAC? Thanks.

    you can view them in the finder or using preview
    Transfering them is simply moving them to the Mac disk - over a newtwor - using an external ahrd drive - using CDs or DVDs
    If you wnat to use tehm with iPhoto then import them to iPhoto and delete the original files you brought over
    If you want to use other software then you need their support forums or manuals
    LN

  • Problem Displaying image from blob

    Hi all,
    I m using,
    Database : 10g Rel 2
    Frontend : DevSuite 10g
    OS : WinXp
    Browser : IE 6
    Problem : In my forms i m displaying images from blob column but some of the images are not displayed. I have tried with all image formats available in combination with all available display quality but no luck. What could be the reason for it and how do i solve it?
    Can anyone help me plz?
    Thnx in advance.
    Imtiaz

    Hello,
    It is very difficult for us to "guess" what images you can read and what others you cannot.
    Maybe you could provide more information on images that are not displayed ?
    What is their native format ?
    Francois

  • How to view images from Pictures Folder using iPhoto?

    Right now when I click an image in the Pictures folder, the image is automatically opened using Preview. I want to view images directly from my Pictures folder, and have them open to iPhoto. Is that possible?
    I just want to be able to view/sort my photos by Folders rather than by Events, Titles or Photo dates. I can't seem to get them to sort by folders in iPhoto.

    Iphoto is a Photo Database designed to allow you to organise and manipulate you photos without recourse to your files.
    It's not an image viewer, it can only work with photos that have been imported to the database.
    I just want to be able to view/sort my photos by Folders rather than by Events,
    An Event is a folder of images with a fancy icon. You can organize your pics in iPhoto anyway you want, using Albums, folders, keywords and so on. It's far more flexible that using folders in the Finder.
    You can opt to organise the files yourself, rather than have iPhoto do it for you, but I don't recommend it.
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    However, you need to be aware of a number of potential pitfalls using this system.
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problems viewing email from outlook clients

    hey
    i am getting something like this on my apple mail when viewing email from outlook with attachments
    ------=_NextPart_00101C8CF90.2BC31259
    Content-Type: text/plain;
    charset="iso-8859-1"
    content-transfer-encoding: quoted-printable
    <<mehlerkabelkatalog bmakabel.pdf>> detto
    Lg frb
    -----Urspr=FCngliche Nachricht-----
    Von: Name changed
    Gesendet: Montag, 16. Juni 2008 09:53
    An: 'Name changed'
    Cc: 'IName changed'
    Betreff: mehlerkabelkatalog bmakabel.pdf
    zum hinzuf=FCgen
    Lg frb
    ------=_NextPart_00101C8CF90.2BC31259
    Content-Type: application/octet-stream;
    name="mehlerkabelkatalog bmakabel.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    filename="mehlerkabelkatalog bmakabel.pdf"
    JVBERi0xLjMKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k
    ZT4CnN0cmVhbQp4nNVcyZKcN46+11PkMXOm6jf35Si13avdM9PWaCKmew61ZC1TlSW5Fsuhpo3
    this goes up to a kilometer down and attachment not readable
    i am using mac os x on english with german keyboard layout
    what i can see is that the text encoding wont change anything
    any clues
    J

    Unfortunately - this happens with Outlook generated messages on occasion. Sometimes even Entourage can't cope. I find that the Gmail web interface does a pretty good job of dealing with messages that nearly every other email client fails with.
    Equally, there are occasionally problems for Outlook users when they receive messages from Thunderbird users.
    I am convinced that the problem lies in Outlook, and that there is little you can do about it.
    Sorry to be the bearer of bad news. Perhaps I am wrong.... (hint for someone else to come in with a solution).

  • Problem loading image from jar file referenced by jar file

    First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
    I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
    My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
    When JarB goes to load an image the following happens:
    java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
         at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
         at java.lang.ClassLoader.getResource(ClassLoader.java:977)
         at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
         at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
    The code from JarB that loads the image looks like this:
              URL[] oSearch = {Main.class.getResource("images/")};
              URLClassLoader oLoader = new URLClassLoader(oSearch);
              imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
              imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
              imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
              imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
    Any help very appreciated!

    Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
    When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
    If you want to read somthing inside the jar-file you need to encode it first.
    Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file.

  • Problem downloading images from camera chip

    I have attempted to download images from my camera chip on several occasions into Lightroom 5.3 and I get a statement which says "Some import operations were not performed-files are not being read (281).  How do I get images imported?  This is the first time I have encountered this problem.  Suggestions?

    You might be better asking in the Lightroom forum
    http://forums.adobe.com/community/lightroom
    But there a few threads and hits from other sites if you lok round
    http://forums.adobe.com/message/5474641

  • Problem importing images from CCO to WLSE 2.13.1

    Hello,
    I recently upgraded my WLSE Express from 2.13 to 2.13.1.
    Now I have a problem with importing firmware images from cisco.com. Every time I get the following error:
    Image download started for device type: BR1310 version: 12.3.11-JA1
    Device type: BR1310, version: 12.3.11-JA1. Image import failed. Imported file is not a valid image.
    Is there any workaround other then import it manually?
    Thanks,
    Peter

    Most likely due to CSCee37875. Workaround is to use Import from Desktop instead, after downloading the image from CCO outside of WLSE.

Maybe you are looking for

  • ECC6 Installation

    Dear Sir or Madam, We are about to explore new ECC6 system. I have some questions regarding the installations. 1) Will ECC6 come together with some modules such as FI-CO,SD,MM,etc? 2) During installation, will I be able to select which module I want

  • Erase using Find my iPhone

    Does anyone know the definition of "when it connects to the internet"?  I lost my MacBook Pro... I had 2 user accounts, both require passwords to login... if someone started up the computer, and it comes to the login screen, and wifi is available, is

  • Whatsapp 2.6.1

    want whatsupp version 2.6.10 pls

  • 3rd Gen Won't Update

    Hello, my iPod 3rd Gen, 32gb, with 4.3.5 won't update to IOS5. I keep getting a message saying "error 3194." Why is this? I thought my iPod was compatible.

  • CANT DOWNLOAD AFTER EFFECTS?!?!

    I downloaded and redownloaded adobe download assistant many times over the past few things,  no luck, when ever i click on "try after effects" a message comes up saying: error comunicating with adobe (107). restart adobe assistant and try to add the