473,725 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

View Multiple Binary Files(Images)

Hi,

I have simple question to ask. How to write multiple Binary files to the
Browser using Asp.Net and Visual C#.net

I have seen examples where single binary file is written to browser.

-Regards
Arun
Nov 19 '05 #1
3 3483
Hi Arun,

Welcome to ASPNET newsgroup.
As for the writing multi-file to browser, do you mean writing multiple
file stream into asp.net page's response stream, like we provide file
downloading functionality? If so, I'm afraid this is not possible because
the HTTP response has its standard structure which force it should has a
definite content-type, for example "text/xml" , "text/html",
"applicatio n/msword"... So we could only contains single stream in each
response. Even though you can manually write multi file stream into the
asp.net's response stream and specify a ambigous content-type, the
clientside browser won't be able to correctly handle it. In addition, I'm
wondering what's your detailed requirement on this , I think we may try
looking for some other means to bypass it. If you have any other questions
or ideas, please feel free to post here. Thanks,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Arun" <ar**@intersigh tglobal.com>
| Subject: View Multiple Binary Files(Images)
| Date: Fri, 2 Sep 2005 11:58:08 +0530
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <OK************ *@TK2MSFTNGP15. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dsl-kk-070.51.101.203. touchtelindia.n et 203.101.51.70
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1219 32
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi,
|
| I have simple question to ask. How to write multiple Binary files to the
| Browser using Asp.Net and Visual C#.net
|
| I have seen examples where single binary file is written to browser.
|
| -Regards
| Arun
|
|
|

Nov 19 '05 #2
Hi,

I want to show two images or more in the browser. That's what I meant by
multi-file.

I will give you an example. We would stored many (around 10000) images in
hard-disk.
For a particular HTTP request we may have to fetch multiple images(jpg,gif)
and display it in browser.

We don't want to keep these images in Virtual Directory.

Hope you understood our needs.

-Regards
Arun

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:uj******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Arun,

Welcome to ASPNET newsgroup.
As for the writing multi-file to browser, do you mean writing multiple
file stream into asp.net page's response stream, like we provide file
downloading functionality? If so, I'm afraid this is not possible because
the HTTP response has its standard structure which force it should has a
definite content-type, for example "text/xml" , "text/html",
"applicatio n/msword"... So we could only contains single stream in each
response. Even though you can manually write multi file stream into the
asp.net's response stream and specify a ambigous content-type, the
clientside browser won't be able to correctly handle it. In addition, I'm
wondering what's your detailed requirement on this , I think we may try
looking for some other means to bypass it. If you have any other questions or ideas, please feel free to post here. Thanks,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Arun" <ar**@intersigh tglobal.com>
| Subject: View Multiple Binary Files(Images)
| Date: Fri, 2 Sep 2005 11:58:08 +0530
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <OK************ *@TK2MSFTNGP15. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dsl-kk-070.51.101.203. touchtelindia.n et 203.101.51.70
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1219 32
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi,
|
| I have simple question to ask. How to write multiple Binary files to the
| Browser using Asp.Net and Visual C#.net
|
| I have seen examples where single binary file is written to browser.
|
| -Regards
| Arun
|
|
|

Nov 19 '05 #3
Hi Arun,

Have you had a chance to see my last reply or have you got any progress on
this issue? If there're anything else we can help, please feel free to post
here. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| X-Tomcat-ID: 32921182
| References: <OK************ *@TK2MSFTNGP15. phx.gbl>
<uj************ **@TK2MSFTNGXA0 1.phx.gbl>
<#E************ **@TK2MSFTNGP09 .phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online. microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 05 Sep 2005 02:26:16 GMT
| Subject: Re: View Multiple Binary Files(Images)
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| Message-ID: <3Q************ **@TK2MSFTNGXA0 1.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Lines: 130
| Path: TK2MSFTNGXA01.p hx.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1223 60
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Thanks for your response Arun,
|
| For displaying multiple images in webbrowser, currently the only means is
| through the <img> html element, however, when we use <img> elements in
our
| web page, that dosn't means the page which contain the <img> tags will
| contain all the binary stream of all those referenced images. At runtime,
| the browser will action like follow:
|
| 1. Browser request the web page and retrieve all the html content of that
| page and rendering in browser.
|
| 2. when we meet a <img> tag, it will lookup the "src" link and make new
| request to the remote server to retrieve image.
|
| So, as for your scenario, I think you can consider the following means:
|
| 1. Make a custom HttpHandler which will help retrieve image stream from
| your server's hard disk and write response stream out. Of course, each
| request can output only a sincle image stream.
|
| 2. In your web page, you can use <img> tag to reference image stream
| through the httphandler's url (with different qureystring parameters
| according to the image you want to retrieve).
|
| Here is a tech article discussing on building such a httphandler in
asp.net
| 1.x:
|
| #Using ASP.NET HTTP Handlers to create a photo album
|
http://www.microsoft.com/belux/nl/ms...et/httphandler.
| mspx
|
| Hope helps. Thanks,
|
| Regards,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
|
| --------------------
| | From: "Arun" <ar**@intersigh tglobal.com>
| | References: <OK************ *@TK2MSFTNGP15. phx.gbl>
| <uj************ **@TK2MSFTNGXA0 1.phx.gbl>
| | Subject: Re: View Multiple Binary Files(Images)
| | Date: Fri, 2 Sep 2005 17:53:11 +0530
| | Lines: 81
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| | Message-ID: <#E************ **@TK2MSFTNGP09 .phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: dsl-kk-070.51.101.203. touchtelindia.n et 203.101.51.70
| | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| | Xref: TK2MSFTNGXA01.p hx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:1219 86
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| |
| | Hi,
| |
| | I want to show two images or more in the browser. That's what I meant by
| | multi-file.
| |
| | I will give you an example. We would stored many (around 10000) images
in
| | hard-disk.
| | For a particular HTTP request we may have to fetch multiple
| images(jpg,gif)
| | and display it in browser.
| |
| | We don't want to keep these images in Virtual Directory.
| |
| | Hope you understood our needs.
| |
| | -Regards
| | Arun
| |
| |
| |
| | "Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
| | news:uj******** ******@TK2MSFTN GXA01.phx.gbl.. .
| | > Hi Arun,
| | >
| | > Welcome to ASPNET newsgroup.
| | > As for the writing multi-file to browser, do you mean writing multiple
| | > file stream into asp.net page's response stream, like we provide file
| | > downloading functionality? If so, I'm afraid this is not possible
| because
| | > the HTTP response has its standard structure which force it should
has a
| | > definite content-type, for example "text/xml" , "text/html",
| | > "applicatio n/msword"... So we could only contains single stream in
| each
| | > response. Even though you can manually write multi file stream into
the
| | > asp.net's response stream and specify a ambigous content-type, the
| | > clientside browser won't be able to correctly handle it. In
addition,
| I'm
| | > wondering what's your detailed requirement on this , I think we may
try
| | > looking for some other means to bypass it. If you have any other
| | questions
| | > or ideas, please feel free to post here. Thanks,
| | >
| | > Regards,
| | >
| | > Steven Cheng
| | > Microsoft Online Support
| | >
| | > Get Secure! www.microsoft.com/security
| | > (This posting is provided "AS IS", with no warranties, and confers no
| | > rights.)
| | >
| | >
| | >
| | > --------------------
| | > | From: "Arun" <ar**@intersigh tglobal.com>
| | > | Subject: View Multiple Binary Files(Images)
| | > | Date: Fri, 2 Sep 2005 11:58:08 +0530
| | > | Lines: 11
| | > | X-Priority: 3
| | > | X-MSMail-Priority: Normal
| | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| | > | Message-ID: <OK************ *@TK2MSFTNGP15. phx.gbl>
| | > | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | > | NNTP-Posting-Host: dsl-kk-070.51.101.203. touchtelindia.n et
| 203.101.51.70
| | > | Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| | > | Xref: TK2MSFTNGXA01.p hx.gbl
| | > microsoft.publi c.dotnet.framew ork.aspnet:1219 32
| | > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| | > |
| | > | Hi,
| | > |
| | > | I have simple question to ask. How to write multiple Binary files
to
| the
| | > | Browser using Asp.Net and Visual C#.net
| | > |
| | > | I have seen examples where single binary file is written to browser.
| | > |
| | > | -Regards
| | > | Arun
| | > |
| | > |
| | > |
| | >
| |
| |
| |
|
|

Nov 19 '05 #4

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

Similar topics

0
2213
by: Patrick Blackman | last post by:
How do you create a TIFF to store multiple images?
2
4494
by: Netian | last post by:
Hello , Please teach me how to create an Icon object with multiple images by GDI++ . I can create an Icon with a image as following , but can't do an Icon with multiple images. private Icon ReturnIcon() { Bitmap Cbitmap = new Bitmap(32, 32, PixelFormat.Format64bppPArgb); Graphics gc = Graphics.FromImage(Cbitmap); //
0
1501
by: Just Jeff | last post by:
Hi, I am a newbie to CSS. My problem at this point has to do with layout. I've inherited a website that uses nested tables for the layout of the page (www.gccnh.com), which I would like to slowly change to use CSS. My biggest problem at this point is figuring out how to deal with the multiple images that were used for the background. Most of the table structure uses something like the following although this is a bit simplified, and...
4
1213
by: hashyborndon | last post by:
hi i am supposed to work with binary images and to count the object in it But i dont know where to start from I mean i dont know what should i read to be able to do this. Someone told to use GDI+ but i am not sure Help me
3
1461
by: mmr315 | last post by:
i am able to get single image at once but how to get multiple images at once
11
4164
by: Jankie | last post by:
I need to dispaly a user's multiple images in one entry.Right now,say if a user uploads 3 images,three entries for the same id display to match 3 images. I only want 1 entry to display all of a user's related images like below: Id First Name Last Name Title Image1 Image2 Image3
5
2215
by: swethak | last post by:
Hi,. when i display the image by using below code i got the error as image displayed in the form of garbage value format.plz tell that what's the mistake in my code. <?php mysql_connect("localhost", "root", "root") or die(mysql_error()); mysql_select_db("rainlist"); $result = mysql_query(sprintf("SELECT * from pix WHERE pid = 1", $_GET)); echo "SELECT * from images WHERE pid=".$_GET;
1
2743
by: =?Utf-8?B?UmFqYWdvcGFs?= | last post by:
Question How to Upload multiple images in asp.net? (ex.Like a gmail file field)
2
3258
by: sarayu | last post by:
Hi All, How can i select multiple images by using shift or control key from my hard disk and upload it by using a submit button.For this what we use for selecting different images and for uploading.Any interface is required?Is it possible only with PHP-MYsql and Javascript.Else what technology we use ? Thanks in advance
0
8752
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,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9111
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...
0
8096
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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
4517
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
3221
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
2634
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.