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 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(File.Open(docPath,
FileMode.Open,FileAccess.Read));
byte[] binFile =
binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length));
int size = binFile.Length;
size = Convert.ToInt32(binReader.BaseStream.Length);
Response.ContentType = "image/tiff";
Response.BinaryWrite(binFile);
binReader.Close(); 6 10010
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***@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.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.BinaryWrite. 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(File.Open(docPath, FileMode.Open,FileAccess.Read)); byte[] binFile =
binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length));
int size = binFile.Length; size = Convert.ToInt32(binReader.BaseStream.Length);
Response.ContentType = "image/tiff"; Response.BinaryWrite(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***@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.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.BinaryWrite. 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(File.Open(docPath, FileMode.Open,FileAccess.Read)); byte[] binFile =
binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length));
int size = binFile.Length; size = Convert.ToInt32(binReader.BaseStream.Length);
Response.ContentType = "image/tiff"; Response.BinaryWrite(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***@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.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.BinaryWrite. 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(File.Open(docPath, FileMode.Open,FileAccess.Read)); byte[] binFile =
binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length));
int size = binFile.Length; size = Convert.ToInt32(binReader.BaseStream.Length);
Response.ContentType = "image/tiff"; Response.BinaryWrite(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***@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.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***@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.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.BinaryWrite. 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(File.Open(docPath, > FileMode.Open,FileAccess.Read)); > byte[] binFile = > > binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length)); > > int size = binFile.Length; > size = Convert.ToInt32(binReader.BaseStream.Length); > > Response.ContentType = "image/tiff"; > Response.BinaryWrite(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***@discussions.microsoft.com> wrote in message news:DC**********************************@microsof t.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***@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.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.BinaryWrite. 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(File.Open(docPath, > FileMode.Open,FileAccess.Read)); > byte[] binFile = > > binReader.ReadBytes(Convert.ToInt32(binReader.Base Stream.Length)); > > int size = binFile.Length; > size = Convert.ToInt32(binReader.BaseStream.Length); > > Response.ContentType = "image/tiff"; > Response.BinaryWrite(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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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: 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...
|
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,...
|
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,...
|
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...
|
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...
| |