可用性改进 - 我们可以将内存流渲染到浏览器 [英] Usability improvement- Can we render memorystream to browser

查看:97
本文介绍了可用性改进 - 我们可以将内存流渲染到浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用.net 2.0和asp.net构建的现有应用程序。

在asp.net web应用程序中,用户可以选择他想要下载的图像。选择图像后,当他点击打开时为
,图像将首先使用memoryStream对象保存到本地计算机,然后javascript

将被添加到asp.net网页以激活Windows.open以打开每个图像。

We have an existing application built using .net 2.0 and asp.net.
In asp.net web application, user has a option of selecting the images he wants to download.After selecting the images,
when he clicks open, The images will be saved first to the local computer using memoryStream object, and then javascript
will be added to the asp.net web page to fire Windows.open for opening each and every image.

这种方法的问题是,如果用户选择假设5- 6张图片用于开放,首先它们全部下载并保存


on 客户端计算机一起在浏览器中打开它们之前。这让用户觉得在这个
期间没有任何事情发生。

我想通过下载后逐个打开图像来改变它。 />
不确定我们是否可以直接从来自浏览器中的web服务的内存流中呈现图像。

Problem with this approach is that if user selects suppose 5-6 images for opening, first they all of them will be downloaded and saved
on  the client computer before opening them in browser together . This give user of feeling that nothing is happening during this
period.
I am thinking of changing this by opening images one by one as soon as it gets downloaded.
Not sure whether we can render the image directly from the memory stream coming from the webservice in the browser.

请帮助我采用替代方法或验证我的方法

Kindly help with an alternative approach or validation of my approach

推荐答案

您好,

我想以下链接中的文章将帮助您获得解决方案:

I guess article at following link will help you to get your solution:

  • http://www.west-wind.com/weblog/posts/76293.aspx
  • http://www.w3schools.com/ASP/prop_contenttype.asp = content type reference
  • http://www.velocityreviews.com/forums/t300374-response-contenttype.html = sample src code

如果这对于ypu不起作用,请告诉我们

Let us know if this does'nt work for ypu


这篇关于可用性改进 - 我们可以将内存流渲染到浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆