Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Suggestion plz help

 
Akhilesh Yadav
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

my Problem is i want to write on image some data and Store it on Server and then again Display it when user login in JSP page

here is the code which i have written


<img src="<%=strFile%>"> --> this displays a new Image on JSP page

this code runs fine on my computer but the problem is when i run this some code on different computer using my IP adress or URL new image is not Displayed

please help me out ..



[BSouther: Added UBB CODE tags]
[ January 31, 2008: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akhilesh Yadav,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseAMeaningfulSubjectLine

And
UseRealWords
Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain your problem in more detail because your problem description is not clearer.

Regards,

Ujjwal Soni
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall, if you do not call the Graphics method dispose(), the system resources the Graphics object uses are not correctly released and you eventually crash the system.

When you try this on a "different computer" do you mean the JSP code running on a different computer or browser access from a different computer?

The file name you are generating to store the image may be the problem, it needs to be a location that the server is allowed to serve images from, AND it needs to be expressed as a URL the server can interpret, NOT a path as used by the operating system which appears to be what you are doing.

Bill
 
You showed up just in time for the waffles! And this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!