読者です 読者をやめる 読者になる 読者になる

JSONデータPOST側 OutofMemory対策済み?

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";


            using (var fs = new FileStream(@"C:\test\bigData.txt", FileMode.Open, FileAccess.Read))
            {
                context.Response.BufferOutput = false;   // to prevent buffering
                byte[] buffer = new byte[1024];
                int bytesRead = 0;
                while ((bytesRead = fs.Read(buffer, 0, buffer.Length)) > 0)
                {
                    context.Response.OutputStream.Write(buffer, 0, bytesRead);
                }
            }