Home > Archive > ASP .NET > November 2005 > Open jpg in default windows application
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Open jpg in default windows application
|
|
| Shimon Sim 2005-11-28, 9:58 pm |
| 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.
| |
| Spam Catcher 2005-11-29, 3:58 am |
| "Shimon Sim" <shimonsim048@community.nospam> wrote in
news:O$HyosI9FHA.2640@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 (spamhoneypot@rogers.com)
| |
| Steven Cheng[MSFT] 2005-11-29, 3:58 am |
| 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/m...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 <spamhoneypot@rogers.com>
| References: <O$HyosI9FHA.2640@tk2msftngp13.phx.gbl>
| Organization: Stan Kee Co.
| Message-ID: <Xns971D1AD2E6Fusenethoneypotrogers@127.0.0.1>
| User-Agent: Xnews/2005.10.18
| X-No-Archive: yes
| Reply-To: spamhoneypot@rogers.com
| Lines: 32
| X-Complaints-To: abuse@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!newsfeed00.sul.t-online.de!t-onli
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed2.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" <shimonsim048@community.nospam> wrote in
| news:O$HyosI9FHA.2640@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 (spamhoneypot@rogers.com)
|
| |
| Damien 2005-11-29, 7:57 am |
| 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
| |
| Shimon Sim 2005-11-29, 7:57 am |
| Do you know any cheap and simple zipping components?
Thanks
Shimon
"Damien" <Damien_The_Unbeliever@hotmail.com> wrote in message
news:1133260224.890761.137850@f14g2000cwb.googlegroups.com...
> Shimon Sim wrote:
> 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
>
| |
| Shimon Sim 2005-11-29, 7:57 am |
| Thanks you
Shimon.
"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
news:ycsq7sM9FHA.832@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/m...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 <spamhoneypot@rogers.com>
> | References: <O$HyosI9FHA.2640@tk2msftngp13.phx.gbl>
> | Organization: Stan Kee Co.
> | Message-ID: <Xns971D1AD2E6Fusenethoneypotrogers@127.0.0.1>
> | User-Agent: Xnews/2005.10.18
> | X-No-Archive: yes
> | Reply-To: spamhoneypot@rogers.com
> | Lines: 32
> | X-Complaints-To: abuse@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!newsfeed00.sul.t-online.de!t-onli
> ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed2.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" <shimonsim048@community.nospam> wrote in
> | news:O$HyosI9FHA.2640@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 (spamhoneypot@rogers.com)
> |
>
| |
|
|
| Spam Catcher 2005-11-29, 7:03 pm |
| "Shimon Sim" <shimonsim048@community.nospam> wrote in news:uOKmiJN9FHA.3592
@TK2MSFTNGP12.phx.gbl:
> Do you know any cheap and simple zipping components?
Xceed has a good zipping component - it's a commerical product.
--
Stan Kee (spamhoneypot@rogers.com)
| |
| Steven Cheng[MSFT] 2005-11-29, 9:57 pm |
| 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" <shimonsim048@community.nospam>
| References: <O$HyosI9FHA.2640@tk2msftngp13.phx.gbl>
<Xns971D1AD2E6Fusenethoneypotrogers@127.0.0.1>
<ycsq7sM9FHA.832@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: <#$lxzJN9FHA.4076@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!tk2msftngp13.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]" <stcheng@online.microsoft.com> wrote in message
| news:ycsq7sM9FHA.832@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/m...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 <spamhoneypot@rogers.com>
| > | References: <O$HyosI9FHA.2640@tk2msftngp13.phx.gbl>
| > | Organization: Stan Kee Co.
| > | Message-ID: <Xns971D1AD2E6Fusenethoneypotrogers@127.0.0.1>
| > | User-Agent: Xnews/2005.10.18
| > | X-No-Archive: yes
| > | Reply-To: spamhoneypot@rogers.com
| > | Lines: 32
| > | X-Complaints-To: abuse@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!newsfeed00.sul.t-online.de!t-onli
| >
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed2.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" <shimonsim048@community.nospam> wrote in
| > | news:O$HyosI9FHA.2640@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 (spamhoneypot@rogers.com)
| > |
| >
|
|
|
|
|
|
|
|