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.Binary Write. On the client machine, the file
type TIFF is associated with Kodak Imaging Preview. This app works on most
client machines. When you click on the link, Kodak Imaging Preview will open
the TIFF file on the client machine. However, on some machines, the file
doesn't open. Is there some browser setting that needs to be done for this to
work?
The following C# code is used:
BinaryReader binReader =
new BinaryReader(Fi le.Open(docPath ,
FileMode.Open,F ileAccess.Read) );
byte[] binFile =
binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth));
int size = binFile.Length;
size = Convert.ToInt32 (binReader.Base Stream.Length);
Response.Conten tType = "image/tiff";
Response.Binary Write(binFile);
binReader.Close (); 6 10034
Are you sure the default app is set correctly for all machines? What
happens if you have a TIFF on the desktop and you double-click it?
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message
news:B2******** *************** ***********@mic rosoft.com... 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.Binary Write. On the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link, Kodak Imaging Preview will open the TIFF file on the client machine. However, on some machines, the file doesn't open. Is there some browser setting that needs to be done for this to work?
The following C# code is used:
BinaryReader binReader = new BinaryReader(Fi le.Open(docPath , FileMode.Open,F ileAccess.Read) ); byte[] binFile =
binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth));
int size = binFile.Length; size = Convert.ToInt32 (binReader.Base Stream.Length);
Response.Conten tType = "image/tiff"; Response.Binary Write(binFile); binReader.Close ();
The application that opens a given image file format is determined by what
applications are installed on the machine, and by the configuration of the
machine. Windows does not come with a TIFF file viewer. If software is
installed on the machine that can open and view TIFFs, and it is configured
as the default viewer for the image type, it will open. I would suspect that
no application exists on those machines that cannot open it.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message
news:B2******** *************** ***********@mic rosoft.com... 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.Binary Write. On the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link, Kodak Imaging Preview will open the TIFF file on the client machine. However, on some machines, the file doesn't open. Is there some browser setting that needs to be done for this to work?
The following C# code is used:
BinaryReader binReader = new BinaryReader(Fi le.Open(docPath , FileMode.Open,F ileAccess.Read) ); byte[] binFile =
binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth));
int size = binFile.Length; size = Convert.ToInt32 (binReader.Base Stream.Length);
Response.Conten tType = "image/tiff"; Response.Binary Write(binFile); binReader.Close ();
I have checked the client machines and they have Kodak Imaging Preview
installed and TIF/TIFF file type is associated with Kodak Imaging Preview. I
can start Kodak Imaging Preview and open a TIFF file from there. I suspect
there is some other setttings that need to be changed.
"Kevin Spencer" wrote: The application that opens a given image file format is determined by what applications are installed on the machine, and by the configuration of the machine. Windows does not come with a TIFF file viewer. If software is installed on the machine that can open and view TIFFs, and it is configured as the default viewer for the image type, it will open. I would suspect that no application exists on those machines that cannot open it.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message news:B2******** *************** ***********@mic rosoft.com...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.Binary Write. On the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link, Kodak Imaging Preview will open the TIFF file on the client machine. However, on some machines, the file doesn't open. Is there some browser setting that needs to be done for this to work?
The following C# code is used:
BinaryReader binReader = new BinaryReader(Fi le.Open(docPath , FileMode.Open,F ileAccess.Read) ); byte[] binFile =
binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth));
int size = binFile.Length; size = Convert.ToInt32 (binReader.Base Stream.Length);
Response.Conten tType = "image/tiff"; Response.Binary Write(binFile); binReader.Close ();
What exactly is happening on these clients?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message
news:DC******** *************** ***********@mic rosoft.com... I have checked the client machines and they have Kodak Imaging Preview installed and TIF/TIFF file type is associated with Kodak Imaging Preview. I can start Kodak Imaging Preview and open a TIFF file from there. I suspect there is some other setttings that need to be changed.
"Kevin Spencer" wrote:
The application that opens a given image file format is determined by what applications are installed on the machine, and by the configuration of the machine. Windows does not come with a TIFF file viewer. If software is installed on the machine that can open and view TIFFs, and it is configured as the default viewer for the image type, it will open. I would suspect that no application exists on those machines that cannot open it.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message news:B2******** *************** ***********@mic rosoft.com... >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.Binary Write. On the client machine, the > file > type TIFF is associated with Kodak Imaging Preview. This app works on > most > client machines. When you click on the link, Kodak Imaging Preview will > open > the TIFF file on the client machine. However, on some machines, the > file > doesn't open. Is there some browser setting that needs to be done for > this > to > work? > > The following C# code is used: > > BinaryReader binReader = > new BinaryReader(Fi le.Open(docPath , > FileMode.Open,F ileAccess.Read) ); > byte[] binFile = > > binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth)); > > int size = binFile.Length; > size = Convert.ToInt32 (binReader.Base Stream.Length); > > Response.Conten tType = "image/tiff"; > Response.Binary Write(binFile); > binReader.Close (); >
On most client machines, if you click on the link, a new browser window will
open and the server runs the attached C# code that sends the binary stream to
the browser. The browser window then closes (the opening and closing of the
browser windows takes only a second) and Kodak Imaging Preview opens and
displays the TIFF image.
On the client machines that fails to open the TIFF file, a new browser
window opens and a little image icon is displayed on the window. The browser
window does not close and Kodak Imaging Preview does not open.
"Kevin Spencer" wrote: What exactly is happening on these clients?
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message news:DC******** *************** ***********@mic rosoft.com...I have checked the client machines and they have Kodak Imaging Preview installed and TIF/TIFF file type is associated with Kodak Imaging Preview. I can start Kodak Imaging Preview and open a TIFF file from there. I suspect there is some other setttings that need to be changed.
"Kevin Spencer" wrote:
The application that opens a given image file format is determined by what applications are installed on the machine, and by the configuration of the machine. Windows does not come with a TIFF file viewer. If software is installed on the machine that can open and view TIFFs, and it is configured as the default viewer for the image type, it will open. I would suspect that no application exists on those machines that cannot open it.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
"qysbc" <qy***@discussi ons.microsoft.c om> wrote in message news:B2******** *************** ***********@mic rosoft.com... >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.Binary Write. On the client machine, the > file > type TIFF is associated with Kodak Imaging Preview. This app works on > most > client machines. When you click on the link, Kodak Imaging Preview will > open > the TIFF file on the client machine. However, on some machines, the > file > doesn't open. Is there some browser setting that needs to be done for > this > to > work? > > The following C# code is used: > > BinaryReader binReader = > new BinaryReader(Fi le.Open(docPath , > FileMode.Open,F ileAccess.Read) ); > byte[] binFile = > > binReader.ReadB ytes(Convert.To Int32(binReader .BaseStream.Len gth)); > > int size = binFile.Length; > size = Convert.ToInt32 (binReader.Base Stream.Length); > > Response.Conten tType = "image/tiff"; > Response.Binary Write(binFile); > binReader.Close (); >
I have figured out the difference between the client machines. The code will
not work if a a browser has plugin to display a TIFF image.
Now, I just open a new window and pass an URL to let a user access a TIFF
file. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PyPK |
last post by:
Hi I am looking for a simple tiff Image reader/writer in python.Can
anyone point me to the right one.
|
by: Nicolas Guilhot |
last post by:
Hi all !
I have a multi-page Tiff image file that I want to convert to PDF. To do so
I am using iText library. The conversion is working, but the code execution
is very different according to wich
iTextSharp.text.Image.getInstance(...) signature I am using :
- using code 1 below, the conversion is fast enough but the resulting PDF
file is too big (1 817ko sample Tiff file is converted in less than 30
seconds to a 2 764ko PDF file)
-...
|
by: Phil |
last post by:
Hi I have an issue when trying to stream blob image data from a SQL table to
a .aspx page. the code I have works for GIF and JPEG but the images can be
multiple pages and we would like them to open in a TIFF format.
But since there are invoices with multiple pages, we would like to open as a
TIFF format in Windows Picture and Fax Viewer. (or default for TIFF on
client). Basically I need to stream this file to the client and then open in...
|
by: ramsin.savra |
last post by:
Hi,
I'm using same code for opening a TIFF file in VC++ works just fine but
under linux it says unable to open the tiff file!
Any comment on this?
if (argc < 2)
{
cout << "Not enough parameter" << endl;
|
by: Phil |
last post by:
Hi I have an issue when trying to stream blob image data from a SQL table to
a .aspx page. the code I have works for GIF and JPEG but the images can be
multiple pages and we would like them to open in a TIFF format.
What comes back to the screen is garble.... Can anyone help? Thanks
The code I am using is:
SqlConnection myConn = new
SqlConnection(ConfigurationSettings.AppSettings);
| |
by: CD |
last post by:
An application is logging faxes sent in SQL2000 image column type. I have
found code on the net but what it is doing is prompting to save to local
which is fine for single page image. Not good for multiple page faxes. I
have not been able to locate an example to load in the browser or how to
handle multiple image in the one column.
1) Ideally it would be nice to display back in the browser since some may be
multiple images. I am not...
|
by: Sameer Gupta |
last post by:
what are options for opening / handling tiff files in .Net framework ?
which is the best library, namespace ?
Please help
Regards
Sameer Gupta
C# Designer & Developer
Siemens
UK
|
by: Ben |
last post by:
Hi
We are looking for a component that offers that offers the below for Tiff
files:
Image clean-up (deskew, despeckle)
Printing capabilities from VB
The ability to add text to image, e.g. time / date
Nice to have:
|
by: sternr |
last post by:
Hey,
When I try to run the following code:
System.Drawing.Image tiffImage = System.Drawing.Image.FromFile(@"C:
\Image.tiff");
I get an "Out Of Memory" Exception.
Does anybody know how can I overcome this problem?
|
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...
|
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,...
| |
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |