Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to show image in a https jsp page from local system

 
bala chithirai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai
i need to show some images from client machine or client's LAN. when i try this

<img id="imgSigPhoto" src="" style="visibility:hidden;position:absolute;left: 10;top: 10;" width="625" height="295" />
<script>
document.getElementById("imgSigPhoto").src = LOCAL_URL;
</script>


Its running in Http .
When i try this in Https its throws error. Please help me to resolve this.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of error? Is HTTPS properly configured and working, certificate and all?
 
bala chithirai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Https configured properly...

In 1st jsp

<IFRAME id="imgFrame" src="<%=basePath%>/ICLG/imgdisp.jsp" >

<script>
// _img_path value '"\\\\177.143.1.14\\old\\Data\\bala.jpg"'

imgFrame.SetValues(_img_path);//here i am getting the script error " Object doesn't support this property or method"
</Script>

in 2nd jsp -> imgdisp.jsp

<img id="imgSigPhoto" src="" style="visibility:hidden;position:absolute;left: 10;top: 10;" width="625" height="295" />
<script>
function SetValues(LOCAL_URL)
{
document.getElementById("imgSigPhoto").src = LOCAL_URL;
}
</script>


i have specified the error in comment line...
Please help me....
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How have you verified that "SetValues" is a method of the object on which you're trying to call it?
 
bala chithirai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have checked with the script debugger imgFrame.SetValues is an Object.

It works in http, when i try this code in https its throws the error.

Is there anyother way to show the client system's image in a https web page....

Actually i need to show bulk images which is available in a client's LAN.
so i cant go with that uploading image to server and retrieveing it.

Please give me some idea.....
 
bala chithirai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone please help me...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic