惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
D
DataBreaches.Net
B
Blog RSS Feed
D
Docker
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Y
Y Combinator Blog
A
About on SuperTechFans
V
V2EX
罗磊的独立博客
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
月光博客
月光博客
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志

博客园 - hi-justin

O.O 一次蛮搞笑的面试 为什么老是这么忙呢? 祝自己生日快乐:) 反省一下 实现了一个一直以来梦想 Time 如何用正确的方法来写出质量好的软件的75条体会[收藏] 還有一塊錢哪去了? 爆強ERP Never forget :) 終於可以稍微輕松一下了 遇到這種問題,你會怎麼做? 美好的一天,耶 [備忘]用於分解字符串的自定義函數 寫下來,免得下次又忘了 小記一下 過梅林海關的幾次有趣經歷
[備忘]动态显示图片
hi-justin · 2004-11-20 · via 博客园 - hi-justin

<%@ Page Language="c#" AutoEventWireup="true"%>
<%@ Import Namespace="System.IO" %>
<script language="c#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
    FileStream oFileStream;
    
long lFileSize = 0;
    oFileStream 
= new FileStream(Server.MapPath("/010.gif"), FileMode.Open);
    lFileSize 
= oFileStream.Length;

    
byte[] bBuffer = new byte[(int)lFileSize];
    oFileStream.Read(bBuffer, 
0, (int)lFileSize);
    oFileStream.Close();
    Response.ClearContent();
    Response.ContentType 
= "image/gif";
    Response.BinaryWrite(bBuffer);
    oFileStream.Close();
    Response.End();
}

</script>