不是高手不要进来,!(300分)

ahui_net 2003-01-04 11:15:51
1.怎么用javascript读取数据库中的图片(access)
2.怎么把图片保存到html文件中,是html文件,不是mht。

主要是想解决2的问题!
...全文
38 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
kreven 2003-01-06
  • 打赏
  • 举报
回复
哇,怎么五颗星的都有啊。果然是高手云集呀:)
saucer(思归, MS .NET MVP)
Go_Rush 2003-01-06
  • 打赏
  • 举报
回复
问题2。

你可以把图片文件的数据进行base64编码,放在xml数据岛里面,
因为浏览器本身是不能显示你的图片数据的,这需要你自己编写activeX
skyover 2003-01-05
  • 打赏
  • 举报
回复
js也可以在客户端使用adodb.recordset的,与ASP无二样。

图片保存到HTML中?那你用base64编码了,再用outlook 去读吧。呵呵。
EPICShiShi 2003-01-05
  • 打赏
  • 举报
回复
你为什么要把图片保存到Html中呢?
用连接不好吗?
把图片保存到网页中,别人从网上打开速度会很慢的。
还是用连接把。
<Img src="图片的地址">
allforly 2003-01-05
  • 打赏
  • 举报
回复
怎么解析二进制数据为图片呢?
bencalie 2003-01-05
  • 打赏
  • 举报
回复
怎么把图片保存到html文件中??

不解,亦不知。
根据我对HTML的学习心得,无法。
saucer 2003-01-05
  • 打赏
  • 举报
回复
1. you mean on the client side? where is the database? as long as you have permissions, you can use ADODB.Recordset on the client side

2. I could be wrong, but as far as I know, it is not possible. The closest thing I know is to embed images in the html to be used by an ActiveX controls, see

http://support.microsoft.com/default.aspx?scid=kb;en-us;184975
ahui_net 2003-01-05
  • 打赏
  • 举报
回复
思归, 你给的是asp的方法,这个我知道,我想知道在javascript中可以不可以。且我想知道2,能不能实现!
逍遥小贼 2003-01-05
  • 打赏
  • 举报
回复
不是高手,我也要进来看看:)
关注ing...
日总是我哥 2003-01-05
  • 打赏
  • 举报
回复
我是来看星星的,呵呵

//今天天气好好啊~~~~~~~~~~~~~~~~~~~~~~~好多星星在一块一闪一闪~~
saucer 2003-01-05
  • 打赏
  • 举报
回复
1. see an example here (just change the connection string to that of Access)

http://infinitemonkeys.atrax.co.uk/infinitemonkeys/articles/asp/952.asp
wangxj0600 2003-01-05
  • 打赏
  • 举报
回复
up
saucer 2003-01-05
  • 打赏
  • 举报
回复
1. where are you reading the images? Use "ADODB.Recordset". The syntax in Javascript is similar to that in VBScript

2. you have to understand how html works. You could encode the image in base64 and embed it in the html, but I don't think any current browsers are able to display it yet
日总是我哥 2003-01-04
  • 打赏
  • 举报
回复
看看我的网站上能不能找到这个答案吧.
中间插播广告:)

-----------------------------------------------------------------
欢迎访问:http://CoolSlob.fykj.com/
本站◆第一主打:《查询利器》,在这里你可以查询CSDN FAQ---目前唯一可查询的站点(CSDN自身也不支持)
  ◆第二主打:《CSDN精华贴》,在这里你可以看到网友们出奇的搞笑本领;可以看到网友们高深莫测的技术功底:)
  ◆第三主打:《下载专区》,在这里你可以下载到C++ Primer 3rd这样的经典书籍,可以下载到够Inside的《Insdie SQL Server7.0》,前些时候,我本人就是借助这本书来破解MS SQL Server数据库的.mdf和.ldf文件的:)
  ◆只要有大家的支持,网站有可能加入搜索“CSDN精华贴”功能!

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧