blob图像的图像显示问题

时间:2016-06-19 03:48:12

标签: image coldfusion resize coldfusion-11

更新

图像作为blob类型保存在SQL Server中。如果你没有在CF管理员和#34;数据源"中检查blob选项,图像会被截断部.. Option to check blob

看起来CF似乎不是这样做的。我看到在制作中截断的图像在开发中很好。

我在开发和生产中使用ColdFusion 11。我可以成功上传本地开发中的图像而不进行任何截断。但是,当我从生产服务器上传时,我在FF中出现以下错误,并且上传的图像是原始图像的一半:

  

"图像损坏或截断。此笔记中的URI因截断而被截断   。长度"

这是我使用html表单的代码。

<cffile
    action="upload"
    filefield="IMAGE"
    destination="#application.ImagePath#"
    nameconflict="makeunique"
    accept = "image/gif,image/jpeg,image/pjpeg,image/png,image/x-png,image/jpg"
 />

<cfimage name="uploadedImage"
    source="#application.ImagePath#\#file.serverFile#" >

<cfimage source="#uploadedImage#" action="resize" width="1350" 
    height="590"
    destination="#application.ImagePath#\#file.serverFile#" 
    overwrite="yes">
<cffile
    action="readbinary"
    file="#application.ImagePath##CFFILE.ServerFile#"
    variable="binPhoto" 
/>  

<cffile
    action="delete"
    file="#application.ImagePath##CFFILE.ServerFile#"
/>  

0 个答案:

没有答案
相关问题