473,771 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stream mhtml to browser

Can a mhtml page be streamed to the browser? I tried creating a web
page that generates a mhtml file. I'm using the following headers:
Response.Conten tType = "message/rfc822";
Response.AddHea der("content-disposition", "inline;
filename=test.m ht");
and am dynamically building the mhtml file. Unfortunately, this
causes a browser syntax error.

The best I've been able to do is get the page to open as an attachment
- Response.AddHea der("content-disposition", "attachment ;
filename=test.m ht") but I get the dreaded file open dialog.
Nov 18 '05 #1
0 1401

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
404
by: ZhangZQ | last post by:
There is a very great function in IE Browser that save the entire webpage includeing all elements to a single mht file, and this file can be browsed again even it is offline. I want to know how to do this in the code? Thank you very much!
2
5199
by: ZhangZQ | last post by:
There is a very great function in IE Browser that save the entire webpage includeing all elements to a single mht file, and this file can be browsed again even it is offline. I want to know how to do this in the code? Thank you very much!
0
1535
by: Peter Rilling | last post by:
Although an ADODB question, I am using C#, so here I go. I am trying to use the ADODB Stream object to extract content from a body part of an MHTML formatted document. I can save the raw information and see what it looks like. Now, when I go to do some extra processing, I need to load the contents a body part using the code below. This is a general method that should work for all body part. One of those body parts that I need to...
2
2749
by: MER78 | last post by:
I am streaming an MHTML file to an aspx page: Response.Clear() Response.AddHeader("Content-Disposition", "inline; filename=MyFile.mht") Response.AddHeader("Content-Length", MyByteArray.Length.ToString) Response.ContentType = "multipart/related" Response.BinaryWrite(MyByteArray) Response.Flush() When I load the aspx page on my computer with IE... I get "Invalid syntax
0
2345
by: Nanker | last post by:
I would like to integrate Reporting Services reports into an existing email messaging framework using .NET 1.1 (both to leverage the existing framework and since the error reporting by Reporting Services subscriptions isn't that great). Within this C# application, I would like to be able to: - Run a report by hitting a URL, specifying the report parameters - Read back the results as MHTML (which will embed images) - Send an email with...
1
4242
by: g_sharad | last post by:
Hi all Being freelancer, I am not that comfortable with C# code I have made a prg which send mail on queue basis, I need the code for Mime format ie MHTML in c# pls help
4
2939
by: CptDondo | last post by:
I have an airlink101 ipcam. It "streams" jpeg images to a web browser. Basically, the camera sends a never-ending http page, and continually retransmits a jpeg image. This sort of works, but eventually the browser tries to save the file. It's also impossible to embed in a page. What I really want is to grab that stream at the web server level using something like php, and create a stream similar to a webcam so that I
0
1428
by: rkravikumar | last post by:
I am trying to send .mht file (mhtml) in email. This always goes out as an attachment and not in the body of the email. Can anybody help? Regards RK
1
3212
by: coolsti | last post by:
I am having a curious problem with Vista working on a Lenovo thinkpad. To test and demonstrate this problem, I have a PHP script that does not terminate. It enters an infinite loop where it repeatedly prints out a line of data, flushes output buffers (with appropriate PHP functions), then sleeps for a number of seconds. In other words, this represents a constant input stream to the browser which is requesting the script as a page. On my...
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.