|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
数据挖掘有点高深的,主要估计就是使用一些算法提取一些实用的数据。学好数据挖掘的话可以应聘baidu或者google,但是一般人家对算法的要求听高的。你最好还是学点应用型的吧。这种主要是研究型的。上面举一个从MicrosoftSQLServer的PUB数据库读取图片并显现它的例子:
以下是示例源代码:
<%@ImportNamespace="System.Data.SqlClient"%>
<%@ImportNamespace="System.Drawing"%>
<%@ImportNamespace="System.Drawing.Imaging"%>
<%@ImportNamespace="System.IO"%>
<scriptlanguage="C#"runat="server">
voidPage_load(objectSender,EventArgsE){
MemoryStreamstream=newMemoryStream();
SqlConnectionconnection;
connection=newSqlConnection("server=localhost;database=pubs;uid=sa;pwd=");
try{
connection.Open();
SqlCommandcommand;
command=newSqlCommand("selectlogofrompub_infowherepub_id=’0736’",connection);
byte[]image;
image=command.ExecuteScalar();
stream.Write(image,0,image.Length);
bitmapimgbitmap;
imgbitmap=newBitmap(stream);
Response.ContentType="image/gif";
imgbitmap.Save(Response.OutputStream,ImageFormat.Gif);
}
finally{
connection.Close();
stream.Clse();
}
}
</script>
竟发现没有太大的帮助。总觉得要用起来,感觉到不了位。因为公司机器的原因,一直没有安装vs.net(也从来没有用过)。以前做asp的时候一直用DW(感觉其代码联想功能不错),可现在到了asp.net却不习惯了。 |
|