My Oracle Support Banner

Cannot Display Image From Weblogic 10.3.5 (Doc ID 1371366.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Weblogic Server - Version 10.3 to 10.3.5
Information in this document applies to any platform.


On WLS 10.3.5 - Custom application that loads images from a local file system is deployed to a managed server running on port 7002 Accessing this application fails to load the images associated to the request.

Application was originally deployed in 10g in an OC4J container where it worked now deployed in 10.3.5 in a Managed server fails.

Below is the image.jsp
<%@page import = "*,


File imgFile = new File("C:/image/plant.gif");
FileInputStream fis = new FileInputStream(imgFile);

OutputStream o = response.getOutputStream();

byte[] buf = new byte[1024];
int count = 0;
while ((count = >= 0) {
o.write(buf, 0, count);

System.out.println("Finish retrieval of page.");

Please refer to attached sample that does not work on Weblogic Server 10.3.5.

-->Deploy the attached webapp on WLS 10.3.5 Server
-->Make sure to have an image file on your local directory-something like C:/image/plant.gif
-->Try to access the image.jsp to notice the issue


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.