Reputation: 171
I have one button as below code
<input id="Save" style="Z-INDEX: 1; LEFT: 8px; WIDTH: 128px; TOP: 36px; HEIGHT: 24px"
onclick="return save_onclick()" type="button" value="Save Image" name="save">
the function for click event is as below
<script language="javascript" id="clientEventHandlersJS">
function save_onclick()
{
document.AxuEyeCam.SaveImage("test.jpg");
}
</script>
By these way it is saving image in desktop folder of computer,
but i want to save image inside my web application folder name PatientImages,
maybe using server.mappath("");
blau blau blau....so can anybody give me the code how it is possible to save image or some idea how it can be possible..
thank you very much...
Upvotes: 1
Views: 1834
Reputation: 2610
try something like this
var strfilename = "test.jpg";
document.AxuEyeCam.SaveImage("<%= Server.MapPath("~/PatientImages/" + strfilename + "") %>");
Upvotes: 0
Reputation: 17614
I don't think directly it is possible. You need to create a web-service for that and then use the service from jquery or java-script.
Upvotes: 1