Trying to display multipage tiff image getting error

Hi
I am trying to read multipage tiff image but dont know how
I tried to display single page tiff getting error
my code is
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;
namespace Documentviewer1
    public partial class _Default : System.Web.UI.Page
        //string filepath = "";
        protected void Page_Load(object sender, EventArgs e)
            //// filepath = "image\045237302.tif";
            string appath = Server.MapPath("/image") + @"\";
            string imagename = Request.QueryString["ImageFileName"];
            string filename = appath + imagename;
            Response.ContentType = "image/tiff";
            new Bitmap(filename).Save(Response.OutputStream, ImageFormat.Tiff);
            ////System.Drawing.Image TheImg = new App.Files.TIF(Request.QueryString["FilePath"]).GetTiffImageThumb(System.Convert.ToInt16(Request.QueryString["Pg"]), System.Convert.ToInt16(Request.QueryString["Height"]),
System.Convert.ToInt16(Request.QueryString["Width"]));//getting error in thisline Parameter not valid
my aspx page is has
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Documentviewer1._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
      <img alt="" src ="image/045237302.tif" width="200" height="200"/>
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
</asp:Content>
getting error as Parameter not valid.
Can anybody help me to display the image in the browser.
Thanks
Mary Abraham
Mary Sunish

Hi MaryAbraham,
Since the issue regards ASP.NET and website deployment. I suggestion you post the question in the ASP.NET forums at
http://forums.asp.net/. It is appropriate and more experts will assist you.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • When trying to display census pages I get error ActiveX controls missing

    What are ActiveX controls and how can I install them? When trying to display certain images such as a census page I get the message that certain ActiveX controls are missing. I am using Windows XP and the current version of Firefox.

    ActiveX is an Internet Explorer plugin system and will not work in Firefox or many other browsers. If the site requires ActiveX you will need to use Internet Explorer to access the site.

  • Activex image viewers to view multipage tiff images

    I have some multipage tiff images which i need to show up on forms. but the image item doesn't support multipage images. does any body know any other activex components which can replace image item and can display multipage tiff images. or is there any tricky way to show multipage images on oracle forms. thanks.

    where are your images in? file system or table?
    do you want to show one image at a time and navigate to another one or show multiple images at one time?
    in table, you may use query and next_record; in file system, you may read next file by read_image_file() eatch time clicking a button.

  • Problems using ECL Viewer to display multipage TIFF Files

    Hey there!
    Maybe someone here may have a good hint due to our problem?
    The Situation as it is:
    We are using ECL Viewer to display multipage TIFFs.
    The Process looks like following:
    The first step is to show a list of files situated in the user's personal folder(Network-Share).
    Then the user selects one of these Files through a mouse-click -> The File is displayed via ECL Viewer.
    Now the user selects the personal-Id where this file should be connected to and selects "SAVE".
    The Programm closes the Viewer and saves the Data in SAP Archiv.
    >> Everything works fine till here.<<
    But now the last processing-step would be to delete this file from the user-folder.
    (So next time the users starts it there will be only files he/she has to work on...)
    Here an error message is telling us that the file can not be deleted because there s some kind of file lock set...
    This problem only occurs only during processing multipage-Tiffs after paging down (swiching to page 2,3,4...) once at least.
    Any Idea what's the cause here  - or how to get through it?
    We are using a CL_GUI_CUSTOM_CONTAINER objekt as base -> hooked on that is a CL_GUI_ECL_VIEWERBOX and the TIFF itself is displayed wit an I_OI_DOCUMENT_VIEWER objekt.
    Maybe we get confused while destroying the "Connections" to the FIle oder something with Automation Queue Handling is not implemented right?
    Thanx for any idea, hints, or better practices
    Very kind Regards from Austria!
    Daniel

    Hi MaryAbraham,
    Since the issue regards ASP.NET and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT1212 IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

  • Trying to install iCloud on Win7 get error message either no default mail client or current mail client cannot fulfill messaging request.   How fix?

    Trying to install iCloud on Win7 get error message either no default mail client or current mail client cannot fulfill messaging request.   How fix?

    Outlook 2013.  Under Start Up Options, I have checked "Make Outlook the default program for E-mail, Contacts, and Calendar".

  • I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with adminis

    I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with administration permissions?

    If your intention is to use the trial again it will not reset if you reinstall.  It will remain in its ran out state.

  • Tried to update ITunes, but keep getting error: Service "Apple Mobile Device" failed to start. Verify that you have sufficient privileges to start system services". How do I get my ITunes back?

    Tried to update ITunes, but keep getting error: Service "Apple Mobile Device failed to start.  Verify that you have sufficient privileges to start system services."
    So how do I get my ITunes back? 

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden.

    Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • When trying to install itunes 11, I get error 7 (Windows error 126).  Please advise

    When trying to install itunes 11, I get error 7 (Windows error 126).  Please advise

    Hi mrsboots2003,
    Thanks for using Apple Support Communities.  This article has steps you can take for the error you're seeing:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Ari

  • Displaying a tiff image in a browser.

    Hi I need to display a tiff image in the browser which does not have a tiff plugin. I guess I have to convert the tiff to jpeg on the fly and write it in the output stream. Has anyone worked on this or knows any other way. Please not I dont want to create an intermediate jpeg file.

    Thanks for your help. I am having one problem though. The tiff file is not being read. The ImageIO.read(file); is returning null. I guess I am using the wrong ImageIO class.( javax.imageio.ImageIO;). I am pasting the code below. See if you can find out the bug.
    package tiffToJpg;
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.servlet.GenericServlet;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    * @author Deepak_Mulchandani
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class TiffToJpg extends GenericServlet
         public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
              File file=new File("Demo1.jpg");
         ServletOutputStream servletOuputStream=response.getOutputStream();
                        BufferedImage image = ImageIO.read(file);
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(baos);
                        encoder.encode(image);
                   servletOuputStream.write(baos.toByteArray());
    }

  • When trying to re-install itunes i get error HRRESULT:0x8007054F what does this mean?

    I am useless with technology and desperately need help!  When trying to re-install itunes i get error HRRESULT:0x8007054F what does this mean? I have followed step by step guide to de-install then re-install itunes as instructed when i couldnt connect my new ipad to my computer to synchronise it with my exisiting itunes account initially set up with my ipod. I successfully re-nstalled itunes but it wouldnt open and told me to de-install and re-install again.  This has repeated several times and now i get this error message. I dont know what to do next? 

    HRRESULT: 0x8007054F
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 8007054F, or some other number? (If they're another number, what number are you getting?)

  • I was trying to installed new ios update and suddenly my WIFI connection got desconnect. now I am trying to restore my Ipad2 but getting error saying "the Ipad could not restored, An unknown error accured (3194).

    I was trying to installed new ios update and suddenly my WIFI connection got desconnect. now I am trying to restore my Ipad2 but getting error saying "the Ipad could not restored, An unknown error accured (3194)". so please help me out to resolve the same.

    When I restart my iPad the connect to iTunes comes up and stays on until it shuts down again, I have read a report from Apple support suggesting I reinstall iTunes so I might try that again and also your suggestion which i shall also try, but thanks again - rg1547

  • Trying to burn CD but keep getting error message "The attempt to burn a disc failed. The burn failed because of a medium write error. Tried different speeds with no luck

    trying to burn CD but keep getting error message "The attempt to burn a disc failed. The burn failed because of a medium write error. Tried different speeds with no luck

    The burn failed because of a medium write error. Tried different speeds with no luck
    Then try to use a different brand of DVD or at least a different batch of DVD. The disk may be defective.

Maybe you are looking for

  • Discount value not updating at contract header level

    Dear Friends I am facing problem of updating discount value at contract header level. The scenario is u2026. my client used to provide certain service to their customer. For that they maintain quantity contract & bill them as per billing plan. When c

  • SQL Script to MS Access compatable

    Hello Guys, I have a SQL script that I want to change to be able to function in Access. The script uses some outer join (+) clause in the where clause. I want to do the same outer join in Access 2002. The script is below. Some of the code have alread

  • Is there any table that holds the history of BEx queries

    Hi, I just wanted to know if there is any table that keeps the history of changes done to BEx queries?

  • Adding support for AirPlay to Time Capsule network

    Right now my Time Capsule (hard drive no longer in use) is connected to my cable modem and provides a wireless network for the entire house.  The Macs all connect via wifi, and the one Windows machine uses a previous model Airport Express to provide

  • I have two apple IDs, how do I merge them?

    I have two apple IDs an it is causing a conflicy.  One has my user name and the other has my user name plus my email extension.  How can I consolidate them.