• Post Reply Bookmark Topic Watch Topic
  • New Topic

Oracle Chart (Graphs, Charts)  RSS feed

Suvendu Mishra
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using oracle chart (supplied by Oracle) in our web application.
The approach is simple:
1. Jsp collects the data and invokes a java class.
2. Java class then using the data builds a chart and creates an image file.
3. Then jsp shows that image file using "img" tag.
I am always giving a same name to the image file.
So when multiple users are accessing the page sometimes JSP is not able to show the image. Because, when one process has a lock on that image file, another process is trying to overwrite the same file. Some OS/application server error gets thrown mentioning that image can't be shown.

Is there any other solution to this problem (other than giving a unique name to the image file for each request)?
am thinking of the following solution but unable to use it.

Instead of creating the image, we will get the byte array from buffered image object, then send it from jsp after setting the content type to image/gif.

So, I have coded this:
byte [] t =


But when I run the program no image is getting shown.

Suvendu K. Mishra
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!