aspose file tools*
The moose likes Java in General and the fly likes How to show image in a https jsp page from local system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to show image in a https jsp page from local system" Watch "How to show image in a https jsp page from local system" New topic
Author

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

bala chithirai
Greenhorn

Joined: Oct 17, 2012
Posts: 4
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
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  72
What kind of error? Is HTTPS properly configured and working, certificate and all?
bala chithirai
Greenhorn

Joined: Oct 17, 2012
Posts: 4
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
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  72
How have you verified that "SetValues" is a method of the object on which you're trying to call it?
bala chithirai
Greenhorn

Joined: Oct 17, 2012
Posts: 4
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

Joined: Oct 17, 2012
Posts: 4
Someone please help me...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to show image in a https jsp page from local system