社区
ASP
帖子详情
aspjpeg组件远程客户端报访问OLE注册表错误,localhost确没问题?
darden
2006-12-17 10:35:56
大家帮忙啊 郁闷死了
localhost开发好的程序测试一点问题都没
可是aspjpeg组件远程客户端报访问OLE注册表错误 错误代号 8002801c?
大家谁知道什么原因啊....谢谢
查了好多资料都没找到原因啊.... 我在2台服务器上和笔记本上都装了测试还是同样的问题,是不是因为aspjpg的试用问题?
...全文
164
1
打赏
收藏
aspjpeg组件远程客户端报访问OLE注册表错误,localhost确没问题?
大家帮忙啊 郁闷死了 localhost开发好的程序测试一点问题都没 可是aspjpeg组件远程客户端报访问OLE注册表错误 错误代号 8002801c? 大家谁知道什么原因啊....谢谢 查了好多资料都没找到原因啊.... 我在2台服务器上和笔记本上都装了测试还是同样的问题,是不是因为aspjpg的试用问题?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
darden
2006-12-17
打赏
举报
回复
问题解决了 谢谢
在程序里不要忘记写.RegKey用来访问验证否则会报OLE注册表错误
Set jpg = Server.CreateObject("Persits.Jpeg")
jpg.RegKey = "48958-77556-02411"
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
-
asp
jpeg
组件
asp
jpeg
组件
asp
jpeg
组件
--
asp
jpeg
组件
-
asp
jpeg
组件
-
asp
jpeg
组件
ASP
JPEG
组件
,
ASP
JPEG
安装
ASP
JPEG
组件
下载官方网站:www.
asp
jpeg
.com 下载完成之后按正常的软件安装顺序安装 注意:序号为:48958-77556-02411 在提示是否重启IIS时选择“否”,可以安装在任意盘符下面 安装完毕后: 从
asp
jpeg
1.5的安装目录复制
asp
jpeg
.dll到系统文件加的system32目录 运行regsvr32 c:/windows/system32/
asp
jpeg
.dll (根据你的系统改你的目录) 检测是否注册成功的方法: 将以下代码保存为
asp
,拷贝在服务器上,用浏览器打开,看返回结果。 <% set
jpeg
=server.createobject("persits.
jpeg
") response.write
jpeg
.expires '检测
asp
jpeg
的注册状态 '注册成功则到期时间为:9999-9-9 '否则为:安装日期加1个月期限 %> ================================== 适用windows服务器的破解版) 提示在安装过程会出现一个框,你输入注册码17361-38566-42221即可 系列号sn:17361-38566-42221 检测是否注册成功的方法: 将以下代码保存为
asp
,拷贝在服务器上,用浏览器打开,看返回结果。 Set jpg = Server.CreateObject("Persits.
Jpeg
") jpg.RegKey = "48958-77556-02411"
asp
jpeg
组件
asp
组件
上传
asp
jpeg
组件
asp
组件
上传
asp
jpeg
组件
asp
组件
上传
asp
jpeg
组件
asp
组件
上传
asp
jpeg
组件
asp
组件
上传
asp
jpeg
组件
asp
组件
上传
asp
jpeg
+
asp
jpeg
组件
高级使用方法
更多请
访问
http://www.shidai365.cn
asp
jpeg
组件
高级使用方法介绍2007-10-13 16:471、什么是
Asp
Jpeg
?
Asp
Jpeg
是一款功能强大的基于Microsoft IIS环境的图片处理
组件
,网络上对其进行详细和深入介绍的中文文章并不多,即使有一般也只是牵涉到图片缩略图和图片水印,这与其为英文版本有着密切的关系。
Asp
Jpeg
可以使用很少的代码在您的
ASP
/
ASP
.Net应用程序上动态的创建高质量的缩略图象,支持的图象格式有:
JPEG
, GIF, BMP, TIFF, PNG
Asp
Jpeg
主要可以做到: 生成缩略图片 生成水印图片 图片合并 图片切割 数据库支持 安全码技术 2、
Asp
Jpeg
功能摘要 支持
JPEG
, GIF, BMP, TIFF 和 PNG 格式图片. 输出格式始终为
JPEG
源图片可以来源于磁盘、内存、或者记录集(数据库) 缩略图片可以保存到磁盘、内存、或者HTTP流 支持三种更改大小方式: nearest-neighbor, bilinear, and bicubic. 可以在图片之上添加图片或者文字. 支持画中画 支持复制,反转,旋转,锐化,灰度调节. 可以调节压缩比率,以得到最佳输出效果和大小. 从
Jpeg
图片中抽取EXIF 和 IPTC数据. CMYK-RGB转换 Read/write access to individual pixels of an image. (从图象中对任意象素进行读/写存取。) 3、
Asp
Jpeg
系统需求 Windows 95/98/NT/2000/XP/2003, and IIS 4.0+ and
ASP
/
ASP
.NET, or Visual Basic 5.0+, or Visual C++ 5.0+, or any development environment supporting COM. 4、
Asp
Jpeg
安装 全新安装: 在
Asp
Jpeg
安装过程中输入序列号即可,如果安装位置磁盘格式为NTFS,则可能出现
访问
权限
问题
,需手工设置安装目录对Everyone有
访问
权限。
Asp
Jpeg
1.6
asp
jpeg
16.rar 更新安装: 如果之前有装过其它版本的
Asp
Jpeg
组件
,则需要先卸载原来的
组件
,再进行新版本的安装。 先停止IIS Net Stop iisadmin /y 卸载旧版
组件
regsvr32 /u Path/
asp
jpeg
.dl(Path为安装路径) 重启IIS Net Start w3svc 然后再进行全新安装或复制
Asp
Jpeg
.dll文件到安装目录进行手工安装: regsvr32 Path/
asp
jpeg
.dll(Path为安装路径) 如果在正常安装过程中
没
有输入序列号或手工安装则必须在
注册表
中加入以下项,为方便起见您可以直接将以下代码保存为.reg文档并导入
注册表
: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Persits Software\
Asp
Upload3\RegKey] @="21764-40765-60456" 5、如何创建一个
Asp
Jpeg
实例? Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
") 6、如何查看到期时间(是否注册成功)? Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
") Response.Write
Jpeg
.Expires 注册成功则到期时间为:9999-9-9 否则为:安装日期加1个月期限 7、如何用
Asp
Jpeg
组件
生成图片缩略图? < % Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
") '创建实例 Path = Server.MapPath("../images/apple.jpg") '处理图片路径
Jpeg
.Open Path '打开图片 '调整宽度和高度为原来的50%
Jpeg
.Width =
Jpeg
.OriginalWidth / 2
Jpeg
.Height =
Jpeg
.OriginalHeight / 2
Jpeg
.Save Server.MapPath("apple_small.jpg") '保存图片到磁盘
Jpeg
.Close:Set
Jpeg
= Nothing %> 8、如何用
Asp
Jpeg
组件
生成图片水印? < % Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
")
Jpeg
.Open Server.MapPath("images/dodge_viper.jpg") 开始写文字
Jpeg
.Canvas.Font.Color = &000000'' red 颜色
Jpeg
.Canvas.Font.Family = "Courier New" 字体
Jpeg
.Canvas.Font.Bold = True 是否加粗
Jpeg
.Canvas.Print 10, 10, "Copyright (c) XYZ, Inc." 打印坐标x 打印坐标y 需要打印的字符 以下是对图片进行边框处理
Jpeg
.Canvas.Pen.Color = &H000000'' black 颜色
Jpeg
.Canvas.Pen.Width = 2 画笔宽度
Jpeg
.Canvas.Brush.Solid = False 是否加粗处理
Jpeg
.Canvas.Bar 1, 1,
Jpeg
.Width,
Jpeg
.Height 起始X坐标 起始Y坐标 输入长度 输入高度
Jpeg
.Save Server.MapPath("images/dodge_viper_framed.jpg") 保存 %> 9、如何用
Asp
Jpeg
组件
进行图片合并?
Asp
Jpeg
1.3+ enables you to place images on top of each other via the method DrawImage. To use this method, you must create two instances of the
Asp
Jpeg
objects and populate both of them with images via calls to Open (or OpenBinary). When calling Canvas.DrawImage, the 2nd instance of
Asp
Jpeg
is passed as an argument to this method, along with the X and Y offsets (in pixels): 使用该方法,您必需创建两个
Asp
Jpeg
实例对象 < % Set
Jpeg
1 = Server.CreateObject("Persits.
Jpeg
") Set
Jpeg
2 = Server.CreateObject("Persits.
Jpeg
")
Jpeg
1.Open Server.MapPath("t.jpg")
Jpeg
2.Open Server.MapPath("t1.jpg")
Jpeg
1.Canvas.DrawImage 10, 10,
Jpeg
2 ' optional arguments omitted
jpeg
1.save Server.mappath("tt.jpg") %> 10、如何用
Asp
Jpeg
组件
进行图片切割?
Asp
Jpeg
1.1+ is also capable of cutting off edges from, or cropping, the resultant thumbnails via the method Crop(x0, y0, x1, y1). The size of the cropped image is specified by the coordinates of the upper-left and lower-right corners within the resultant thumbnail, not the original large image. < % Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
")
Jpeg
.Open Server.MapPath("t.jpg")
jpeg
.Crop 20, 30,
jpeg
.Width - 20,
jpeg
.Height - 10
jpeg
.save Server.mappath("tt.jpg") Response.write("") %> 11、如何用
Asp
Jpeg
组件
创建安全码? 创建安全码原理上和创建水印差不多。 < % function make_randomize(max_len,w_n) 'max_len 生成长度,w_n:0 可能包含字母,1:只为数字 randomize for intcounter=1 to max_len whatnext=int((1-0+1)*rnd+w_n) if whatnext=0 then upper=122 lower=97 else upper=57 lower=48 end if strnewpass=strnewpass & chr(int((upper-lower+1)*rnd)+lower) next make_randomize=strnewpass end function '生成安全码的图片。 random_num=make_randomize(4,1) ''生成4位数字的安全码 session("random_num")=random_num '为么调用session,
没
有session的安全码是完全
没
有意义的。呵呵 . Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
") '调用
组件
Jpeg
.Open Server.MapPath("t.jpg") '打开准备的图片
Jpeg
.Canvas.Font.Color = &HFFFFFF
Jpeg
.Canvas.Font.Family = "Arial Black"
Jpeg
.Canvas.Font.Bold = false
Jpeg
.Canvas.PrintText 0, -2, random_num
jpeg
.save Server.MapPath("tt.jpg") '保存 %> 12、如何让
Asp
Jpeg
组件
支援数据库? 图片存进数据库只能以二进制数据保存,这里即利用
Asp
Jpeg
的Binary方法,下面以两个
Asp
Jpeg
用户手册上的代码为例,具体请参考
Asp
Jpeg
用户手册: Opening Images from Memory < % ' Using ADO, open database with an image blob strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("../db/
asp
jpeg
.mdb") Set rs = Server.CreateObject("adodb.recordset") SQL = "select image_blob from images2 where id = " & Request("id") rs.Open SQL, strConnect, 1, 3 Set
Jpeg
= Server.CreateObject("Persits.
Jpeg
") ' Open image directly from recordset
Jpeg
.OpenBinary rs("image_blob").Value ' Resize
jpeg
.Width = Request("Width") ' Set new height, preserve original
asp
ect ratio
jpeg
.Height =
jpeg
.OriginalHeight *
jpeg
.Width /
jpeg
.OriginalWidth
Jpeg
.SendBinary rs.Close %> Output to Memory < % ... Set rs = Server.CreateObject("adodb.recordset") rs.Open "images", strConnect, 1, 3 rs.AddNew rs("image_blob").Value =
Jpeg
.Binary rs.Update ... %>
ASP
28,391
社区成员
357,060
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章