This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Image not displayed in the excel opened in a new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Image not displayed in the excel opened in a new window" Watch "Image not displayed in the excel opened in a new window" New topic
Author

Image not displayed in the excel opened in a new window

Sree Lakshmi Sugunan
Greenhorn

Joined: Feb 29, 2008
Posts: 23
Hi,

I am writing contents from a servlet to outputstream with content type as excel. The excel is opened in another window. The excel comes fine. The issue is the images in the excel in not dispayed.

The content I write to the stream is html with xml(that uses excel schema). So the image is represented as <img src="">. The issue seems that since it is open in another window, it is not getting the access to the image file kept inside the application that has a login.

Is there anyway I can display the image in another window itself. Will encodeURL() help. I tried that but still it is not helping. I am not sure if I am using it correctly.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Image not displayed in the excel opened in a new window
 
It's not a secret anymore!