On May 17, 2005, at 6:36 PM, Patrick Yip wrote:

Hi, there,

I'm still trying to find a way to put large number of product images on
a centralized folder not under the application WEB.


I was able to use this to get my images from a folder not under WEB
application:

public IAsset getProductImage(String path){
  // e.g. path = c:\products\images\sony_dvd.gif"

  return (IAsset) new ExternalAsset(path,null);
}

The image shows up fine in IE after getting this annoying warning:
  "This page contains both secure and nonsecure items..."

However, the image does not show up at all in FireFox.

Can someone give me a hint?
Is there a better way to get my images that are not under the WEB
context?

Firefox has a default to not serve things from the local filesystem - it has to come from http:// not file://. You can disable that at the risk of a security vulnerability. But, the bigger picture is that you probably want to serve your images directly from a web server, not from your application server or the filesystem directly - it won't work for remote viewers on the filesystem anyway!


    Erik



Thanks.


-----Original Message----- From: Patrick Yip Sent: Monday, May 16, 2005 5:01 PM To: [email protected] Subject: Serving large number of product images

I apologize if this question has been asked too many times.   I did a
quick search and haven't been able to find a satisfactory answer.

Currently, I face a practical issue of serving the images when the image
files are packaged into the war file.
Adding images require me to repackage the war file and upload to the
JBoss server.


Is there a way to specify a directory outside of JBoss server directory
(but on the same physical machine) so I can have a permanent home for my
product images?


For instance, I would like to store all the product images under
c:\products\  directory.
Any suggestion is greatly appreciated.




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to