mercredi 15 avril 2015

image uploading not working in spring

I have a spring2.0 application and we are using uploadify jquery plugin 2.1 version to implement the image upload functionality.


Problem is: when I am trying to upload any image in java code it is saying it's resolution is 0dpi. But i checked i was 300dpi. Why is it happening? My uploadify configuration is:



$('#imageFile1').uploadify({
'uploader' : '../uploadify/uploadify.swf',
'script' : 'images.htm',
'scriptData' : {'currentFormSpecId' : '${myCommand.formId}'},
'cancelImg' : 'cancel.png',
'auto' : false,
'multi' : true,
'wmode' : 'transparent',
'width' : 130,
'queueID' : 'fileQueue',
'queueSizeLimit' : 15,
'folder' : '../uploadify',
'fileDesc' : '*.jpg;*.jpeg;*.tif;*.tiff;*.eps',
'fileExt' : '*.jpg;*.jpeg;*.tif;*.tiff;*.eps',
'sizeLimit' : 102400000,
'onError': function(event, queueID, fileObj, errorObj) {
// Error display
},
'onComplete': function(event, queueID, fileObj, response, data) {
//success display

});


one more weird thing I noticed: When I checked the image resolution in my window7 machine it is saying it is 300dpi but when I am checking the same image in windows server machine(using citrix I am connecting and it has low screen resolution), it is showing 95dpi. Why is it happening?


Please let me know you want me to post anything else.


Aucun commentaire:

Enregistrer un commentaire