after calling the standard procedure for activating big5
<div id="dev-photo"></div>
<a href="javascript:foto()">foto</a><br /><br /><br /><br />
<a href="javascript:camera()">camera</a><br /><br /><br /><br />
<scri pt>
function uploadCallback(){
$('dev-photo').innerHTML = '<img src="....image
position in your webserver....." style="border: 1px solid black; max-
width: 280px; max-height: 280px;" />'
}
function errorCallback(msg){
$('dev-photo').innerHTML = ""
alert(msg)
}
function cancelCallback(){
$('dev-photo').innerHTML = "Cancelled"
alert(msg)
}
function setLoading(text){
$('dev-photo').innerHTML = '';
}
function foto(){
setLoading();
Device.Image.getFromPhotoLibrary(
"...link to your webserver where is placed the script to receive
photo and to write to disk ...",
uploadCallback,
errorCallback,
cancelCallback);
}
function previewCallback(url){
Device.vibrate()
}
function camera(){
setLoading();
Device.Image.getFromCamera(
"...link to your webserver where is placed the script to receive
photo and to write to disk ...",
uploadCallback,
errorCallback,
cancelCallback);
}
</scri pt>
on the web server you can use the script from wiki for
asp.net or I
developed for asp (after hours of work even if the solution was
easy... :-( )
"...link to your webserver where is placed the script to receive photo
and to write to disk ..."
<%
a=Request.TotalBytes
b=Request.BinaryRead(106)
b=Request.BinaryRead(a-106)
Set BinaryStream = CreateObject("ADODB.Stream")
BinaryStream.Type =1
BinaryStream.Open
BinaryStream.Write b
BinaryStream.SaveToFile server.mappath("temp/temp.jpg"),2
%>