473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Open jpg in default windows application

Hi
1) Is it possible to force browser to open image in default windows
application? That is what specifies in Folder Options for jpg extension.

2) Also if the 1) is possible is it possible to send few jpg files at the
same time.

The problem that I am facing is that the client needs to print some files
that are saved on the server. Usually before printing user needs to resize
them. It would be the best if image opens right away in the user
application. Also very often user need to print more then one file in one
time. I have no problem creating the list of files but from then I can just
create asp page with images one under another. IE is not good for resizing
images - quality is bad.

Any suggestions?
Thank you,
Shimon.
Nov 29 '05 #1
6 2384
Thanks for stan's inputs.

Hi Shimon,

I agree with Stan on the two question you mentioned. The browser based web
page can only displaying those web content html , image in browser, we can
not control them as a normal clientside windows desktop application. Also,
if the web page's response stream is of binary(image) content-type, it can
stream out one image each time...
So regarding on your scenario, I'm not sure you can consider using a custom
httphandler to stream out image files from serverside? We can use the
NET's System.Drawing api to manipulate image stream/content at serverside
and stream them out through HTTPhandler, also we can use url querystring to
let clientside user provide image attrribute (like width , height...)
This would be the most approachable means through ASP.NET I can get
currently. Here is a msdn tech article discussing on create such a image
generation handler (for .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,

Steven Cheng
Microsoft Online Support

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


--------------------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Open jpg in default windows application
| From: Spam Catcher <sp**********@rogers.com>
| References: <O$**************@tk2msftngp13.phx.gbl>
| Organization: Stan Kee Co.
| Message-ID: <Xn********************************@127.0.0.1>
| User-Agent: Xnews/2005.10.18
| X-No-Archive: yes
| Reply-To: sp**********@rogers.com
| Lines: 32
| X-Complaints-To: ab***@easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Tue, 29 Nov 2005 05:00:47 GMT
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
com!easynews!easynews-local!fe03.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:361401
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| "Shimon Sim" <sh**********@community.nospam> wrote in
| news:O$**************@tk2msftngp13.phx.gbl:
|
| > Hi
| > 1) Is it possible to force browser to open image in default windows
| > application? That is what specifies in Folder Options for jpg
| > extension.
|
| No, the browser controls how a file is opened.
|
| > 2) Also if the 1) is possible is it possible to send few jpg files at
| > the same time.
|
| No, each connection is one binary file.
|
| > The problem that I am facing is that the client needs to print some
| > files that are saved on the server. Usually before printing user needs
| > to resize them. It would be the best if image opens right away in the
| > user application. Also very often user need to print more then one
| > file in one time. I have no problem creating the list of files but
| > from then I can just create asp page with images one under another. IE
| > is not good for resizing images - quality is bad.
| >
| > Any suggestions?
|
| CSS? CSS can to some very precise formatting.
|
| Or perhaps consider building a graphics editor right into your
| application (Java, ActiveX?).
|
| --
| Stan Kee (sp**********@rogers.com)
|

Nov 29 '05 #2
Shimon Sim wrote:
Hi
1) Is it possible to force browser to open image in default windows
application? That is what specifies in Folder Options for jpg extension.

2) Also if the 1) is possible is it possible to send few jpg files at the
same time.

The problem that I am facing is that the client needs to print some files
that are saved on the server. Usually before printing user needs to resize
them. It would be the best if image opens right away in the user
application. Also very often user need to print more then one file in one
time. I have no problem creating the list of files but from then I can just
create asp page with images one under another. IE is not good for resizing
images - quality is bad.

Any suggestions?

Hi Shimon,

As pointed out, it's up to the browser how to display, and you can only
send one file at a time. So how about sending a ZIP file containing the
JPG images? That way all of the files download at once and then the zip
program will let you choose what to do with the image files.

Course, does rely on the user having a zip decompressor installed on
their machine, and if the specific images being downloaded vary on a
per-user basis then it would involve doing some zipping on the fly on
the server, but these are not insurmountable obstacles.

Damien

Nov 29 '05 #3
Do you know any cheap and simple zipping components?
Thanks
Shimon

"Damien" <Da*******************@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Shimon Sim wrote:
Hi
1) Is it possible to force browser to open image in default windows
application? That is what specifies in Folder Options for jpg extension.

2) Also if the 1) is possible is it possible to send few jpg files at the
same time.

The problem that I am facing is that the client needs to print some files
that are saved on the server. Usually before printing user needs to
resize
them. It would be the best if image opens right away in the user
application. Also very often user need to print more then one file in one
time. I have no problem creating the list of files but from then I can
just
create asp page with images one under another. IE is not good for
resizing
images - quality is bad.

Any suggestions?

Hi Shimon,

As pointed out, it's up to the browser how to display, and you can only
send one file at a time. So how about sending a ZIP file containing the
JPG images? That way all of the files download at once and then the zip
program will let you choose what to do with the image files.

Course, does rely on the user having a zip decompressor installed on
their machine, and if the specific images being downloaded vary on a
per-user basis then it would involve doing some zipping on the fly on
the server, but these are not insurmountable obstacles.

Damien

Nov 29 '05 #4
Thanks you
Shimon.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:yc*************@TK2MSFTNGXA02.phx.gbl...
Thanks for stan's inputs.

Hi Shimon,

I agree with Stan on the two question you mentioned. The browser based web
page can only displaying those web content html , image in browser, we can
not control them as a normal clientside windows desktop application. Also,
if the web page's response stream is of binary(image) content-type, it can
stream out one image each time...
So regarding on your scenario, I'm not sure you can consider using a
custom
httphandler to stream out image files from serverside? We can use the
NET's System.Drawing api to manipulate image stream/content at serverside
and stream them out through HTTPhandler, also we can use url querystring
to
let clientside user provide image attrribute (like width , height...)
This would be the most approachable means through ASP.NET I can get
currently. Here is a msdn tech article discussing on create such a image
generation handler (for .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,

Steven Cheng
Microsoft Online Support

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


--------------------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Open jpg in default windows application
| From: Spam Catcher <sp**********@rogers.com>
| References: <O$**************@tk2msftngp13.phx.gbl>
| Organization: Stan Kee Co.
| Message-ID: <Xn********************************@127.0.0.1>
| User-Agent: Xnews/2005.10.18
| X-No-Archive: yes
| Reply-To: sp**********@rogers.com
| Lines: 32
| X-Complaints-To: ab***@easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Tue, 29 Nov 2005 05:00:47 GMT
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
com!easynews!easynews-local!fe03.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:361401
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| "Shimon Sim" <sh**********@community.nospam> wrote in
| news:O$**************@tk2msftngp13.phx.gbl:
|
| > Hi
| > 1) Is it possible to force browser to open image in default windows
| > application? That is what specifies in Folder Options for jpg
| > extension.
|
| No, the browser controls how a file is opened.
|
| > 2) Also if the 1) is possible is it possible to send few jpg files at
| > the same time.
|
| No, each connection is one binary file.
|
| > The problem that I am facing is that the client needs to print some
| > files that are saved on the server. Usually before printing user needs
| > to resize them. It would be the best if image opens right away in the
| > user application. Also very often user need to print more then one
| > file in one time. I have no problem creating the list of files but
| > from then I can just create asp page with images one under another. IE
| > is not good for resizing images - quality is bad.
| >
| > Any suggestions?
|
| CSS? CSS can to some very precise formatting.
|
| Or perhaps consider building a graphics editor right into your
| application (Java, ActiveX?).
|
| --
| Stan Kee (sp**********@rogers.com)
|

Nov 29 '05 #5
Shimon Sim wrote:
Do you know any cheap and simple zipping components?
Thanks
Shimon

I've looked at
http://www.icsharpcode.net/OpenSourc...b/Default.aspx before.
I've not had to use it seriously though.

Damien

Nov 29 '05 #6
You're welcome Shimon,

If there're anything else we can help, please feel free to post here.

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: "Shimon Sim" <sh**********@community.nospam>
| References: <O$**************@tk2msftngp13.phx.gbl>
<Xn********************************@127.0.0.1>
<yc*************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Open jpg in default windows application
| Date: Tue, 29 Nov 2005 05:48:34 -0500
| Lines: 99
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#$**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ool-44c05922.dyn.optonline.net 68.192.89.34
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:361437
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks you
| Shimon.
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:yc*************@TK2MSFTNGXA02.phx.gbl...
| > Thanks for stan's inputs.
| >
| > Hi Shimon,
| >
| > I agree with Stan on the two question you mentioned. The browser based
web
| > page can only displaying those web content html , image in browser, we
can
| > not control them as a normal clientside windows desktop application.
Also,
| > if the web page's response stream is of binary(image) content-type, it
can
| > stream out one image each time...
| > So regarding on your scenario, I'm not sure you can consider using a
| > custom
| > httphandler to stream out image files from serverside? We can use the
| > NET's System.Drawing api to manipulate image stream/content at
serverside
| > and stream them out through HTTPhandler, also we can use url
querystring
| > to
| > let clientside user provide image attrribute (like width , height...)
| > This would be the most approachable means through ASP.NET I can get
| > currently. Here is a msdn tech article discussing on create such a image
| > generation handler (for .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,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| > --------------------
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Subject: Re: Open jpg in default windows application
| > | From: Spam Catcher <sp**********@rogers.com>
| > | References: <O$**************@tk2msftngp13.phx.gbl>
| > | Organization: Stan Kee Co.
| > | Message-ID: <Xn********************************@127.0.0.1>
| > | User-Agent: Xnews/2005.10.18
| > | X-No-Archive: yes
| > | Reply-To: sp**********@rogers.com
| > | Lines: 32
| > | X-Complaints-To: ab***@easynews.com
| > | X-Complaints-Info: Please be sure to forward a copy of ALL headers
| > otherwise we will be unable to process your complaint properly.
| > | Date: Tue, 29 Nov 2005 05:00:47 GMT
| > | Path:
| >
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
| >
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
| > com!easynews!easynews-local!fe03.news.easynews.com.POSTED!not-for-mail
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:361401
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | "Shimon Sim" <sh**********@community.nospam> wrote in
| > | news:O$**************@tk2msftngp13.phx.gbl:
| > |
| > | > Hi
| > | > 1) Is it possible to force browser to open image in default windows
| > | > application? That is what specifies in Folder Options for jpg
| > | > extension.
| > |
| > | No, the browser controls how a file is opened.
| > |
| > | > 2) Also if the 1) is possible is it possible to send few jpg files
at
| > | > the same time.
| > |
| > | No, each connection is one binary file.
| > |
| > | > The problem that I am facing is that the client needs to print some
| > | > files that are saved on the server. Usually before printing user
needs
| > | > to resize them. It would be the best if image opens right away in
the
| > | > user application. Also very often user need to print more then one
| > | > file in one time. I have no problem creating the list of files but
| > | > from then I can just create asp page with images one under another.
IE
| > | > is not good for resizing images - quality is bad.
| > | >
| > | > Any suggestions?
| > |
| > | CSS? CSS can to some very precise formatting.
| > |
| > | Or perhaps consider building a graphics editor right into your
| > | application (Java, ActiveX?).
| > |
| > | --
| > | Stan Kee (sp**********@rogers.com)
| > |
| >
|
|
|

Nov 30 '05 #7

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

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
4
by: Jesper | last post by:
How can I open a textfile from C# using notepad (or the user assigned application for this).
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
7
by: (PeteCresswell) | last post by:
I've got a UNC. It's something like H:\CDL\Attachments\Deal000023.InitialOffering.doc. I want to feed that UNC to MS Windows and let Windows worry about selecting which application to use to...
2
by: Hanika | last post by:
Going on 3 days and I am wodnering if I am just not looking in the right place. If anyone nows how to do this please please help me. I am developing a Windows form application using VB.NET 2005....
3
by: Ronald S. Cook | last post by:
I know how to close and open a form... Well.. but can you tell me how can I do this..... Example... There are 2 forms...named formA and formB and each of them have their own button named...
0
by: Guern1 | last post by:
Hi Sorry if I have posted this to the wrong forum. Need a bit of help here please to point me in the right direction. I have a java class file here which i wish from a menu item to open a...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.