Can you show how you set "thisObj.originalfile" ? The error is saying you have a type mismatch - method was expecting a filehandle and instead got an object for the "file" parameter.
Thanks,
Steve
Thanks Steve for elaborating the error msg.
This is how am setting file object to a var.
imageDropped:function®{
try{
var thisObj = this;
thisObj.imageParameters.file = r[0];
thisObj.orignialimage = r[0]; thisObj.$BP.ImageAlter.Alter(thisObj.imageParameters,
function (result) {
if (!result.success) {
//alert("failed to modify image: " + result.error +
//result.verboseError);
return;
}
thisObj.$BP.FileAccess.GetURL(
{ file: result.value.file },
function ® {
try{
var img = document.createElement('img')
img.setAttribute('src', r.value);
}catch(e){}
});
});
-regards
Ratheesh