璉璉
2007-01-23 13:51:03 UTC
§AnŠsÀɪºžÜ¡A¬O¥Î file.SaveAs ¡AŠb³oÃä€~«ü©wžô®|¡C
¬Ý€£ÀŽ§An·F¹À... Type ¥»ššS·Nžq¡ASize ŽN¬O ContentLength ...
³oÃä€]šS¬Ýšì§A§ï
file.FileName = "C:\Demo\36-6-1.pdf"
¹êŠb€£ªŸ¹D§A¥Žºâ«çŒË¥Î...
·¬ê¬ì§ÞÅçÃÒŠ³€œ¥q ASP.NET Web News Reader 0.2.5 UTF-8 Beta
ºô¯žŠa¹Ï http://tlcheng.twbbs.org/wwwmap.htm
¬y°ìšŸ¬x/°Ï°ì€ôžê·œ/®}ª@ºô/ªŽºÀ¹Ï/»yµ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ì©lœX¡B€å³¹»P°Qœ×
·L³nµ{Š¡³]p¡Bšt²ÎºÞ²zšÏ¥Î·s§Þ³Nœ×ŸÂ°Qœ×°Ï¡Aºô€ÍŠ^ÂЫá§Y®É²°T¡B¹q€l¶l¥ó³qªŸ¡G
MSDN: http://forums.microsoft.com/msdn-cht/default.aspx?siteid=14
TechNet: http://forums.microsoft.com/technet-cht/default.aspx?siteid=23
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
¬Ý€£ÀŽ§An·F¹À... Type ¥»ššS·Nžq¡ASize ŽN¬O ContentLength ...
³oÃä€]šS¬Ýšì§A§ï
file.FileName = "C:\Demo\36-6-1.pdf"
¹êŠb€£ªŸ¹D§A¥Žºâ«çŒË¥Î...
©ó news:97899071-7D75-4459-836C-08DD2BF83306%40microsoft.com µoªí
œÐ±Ð±M®aÌ
§Ú²{Šb·Q§Q¥ÎHTTP€€File Fieldª«¥ó šÓŪ¥XÀÉ®×Tpye¡BSize šÃ·Q°ÊºAµ¹©wÀɮמô®|
¥H«K§âÀÉ®×€º®eŠsšìSessionžÌ±¡AšÃ±NSessionŠWºÙšúžÓÀɮתºŠWºÙ
Dim file As HttpPostedFile = Filename.PostedFile
Dim objStream As Stream
Dim buf(file.ContentLength) As Byte
objStream = file.InputStream
objStream.Read(buf, 0, file.ContentLength)
Session(Right(file.FileName, InStr(StrReverse(file.FileName), "\") -
1)) = buf
Šý§Ú³]¬°file.FileName = "C:\Demo\36-6-1.pdf"®É«K¥X²{¿ù»~¡G
ÄÝ©Ê 'FileName' ¬O 'ReadOnly'¡C
¬O§_Š³šä¥Š€èŠ¡«ü©wÀɮמô®|¡H©Î¬Ošä¥Šweb control€ž¥ó¥iÀò±oÀÉ®× type ¡B size ¡B path©O¡H
ÁÂÁÂ
--œÐ±Ð±M®aÌ
§Ú²{Šb·Q§Q¥ÎHTTP€€File Fieldª«¥ó šÓŪ¥XÀÉ®×Tpye¡BSize šÃ·Q°ÊºAµ¹©wÀɮמô®|
¥H«K§âÀÉ®×€º®eŠsšìSessionžÌ±¡AšÃ±NSessionŠWºÙšúžÓÀɮתºŠWºÙ
Dim file As HttpPostedFile = Filename.PostedFile
Dim objStream As Stream
Dim buf(file.ContentLength) As Byte
objStream = file.InputStream
objStream.Read(buf, 0, file.ContentLength)
Session(Right(file.FileName, InStr(StrReverse(file.FileName), "\") -
1)) = buf
Šý§Ú³]¬°file.FileName = "C:\Demo\36-6-1.pdf"®É«K¥X²{¿ù»~¡G
ÄÝ©Ê 'FileName' ¬O 'ReadOnly'¡C
¬O§_Š³šä¥Š€èŠ¡«ü©wÀɮמô®|¡H©Î¬Ošä¥Šweb control€ž¥ó¥iÀò±oÀÉ®× type ¡B size ¡B path©O¡H
ÁÂÁÂ
·¬ê¬ì§ÞÅçÃÒŠ³€œ¥q ASP.NET Web News Reader 0.2.5 UTF-8 Beta
ºô¯žŠa¹Ï http://tlcheng.twbbs.org/wwwmap.htm
¬y°ìšŸ¬x/°Ï°ì€ôžê·œ/®}ª@ºô/ªŽºÀ¹Ï/»yµ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ì©lœX¡B€å³¹»P°Qœ×
·L³nµ{Š¡³]p¡Bšt²ÎºÞ²zšÏ¥Î·s§Þ³Nœ×ŸÂ°Qœ×°Ï¡Aºô€ÍŠ^ÂЫá§Y®É²°T¡B¹q€l¶l¥ó³qªŸ¡G
MSDN: http://forums.microsoft.com/msdn-cht/default.aspx?siteid=14
TechNet: http://forums.microsoft.com/technet-cht/default.aspx?siteid=23
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet