• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Someone please help me...
reply
    Bookmark Topic Watch Topic
  • New Topic