Display a tiff file

I have a 20-page document scanned as a tiff file, then saved into database as a blob. When I use 9i form to display this item, only first page shows up.
Can anyone tell me how to display the entire document in 9i Form?
Thanks in advance!

Multi Page tiffs are not supported by Forms. - See posting
display a tiff file
for alternative suggestions

Similar Messages

  • 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.

  • Cfdocument - using cf7 - displaying .bmp & .tiff files

    I'm using CF7's cfdocument tag (with no hope of upgrading to
    CF8 anytime soon). I'm generating PDFs and not able to display .bmp
    or .tiff files in the PDF. This was a known issue in this version.
    -Has there been a fix, hotfix, or scheduled fix?
    -Is there a workaround?
    Thanks -

    You might take a look at iText. It is what cfdocument uses
    behind the scenes. It is not as simple as using cfdocument, but it
    should be possible.

  • Tiff files with Alpha Channels do not display or print correctly...

    I have Tiff files that have been edited in Photoshop that do not display correctly. As far as I can tell this is caused by the existence of Alpha channels in the channels panel in PS. When the files are imported to Aperture, they only display information from either the alpha channel or a layer using that alpha channel as a mask.
    If this is true, what are people doing about it. This cant be acceptable???
    Are there any work arounds and is apple addressing this problem?
    Can anyone else confirm this?
    I am using Aperture 1.1.2, OS 10.4.7 and PS CS. on a Dual 2GHz Power PC G5 with 4.5 GB RAM
    Please note, these are NOT .psd files. I have read and am aware of some psd compatibility issues, and have checked the maximize compatibility in PS.
    -Sol

    Thank you for your response, I am trying to figure out what to do differently when we re-create the PDF so we don't have font issues when we combine. I don't want to keep recreating the problem, I am looking for a solution. Why does this happen? What settings do I tell other to apply on their Acrobat? Is the a font issue in Adobe? I found this on a Google search on the internet and can't seem to get it to work on XI PRO.
      Embedding fonts into Acrobat 9 through Distiller:
    Launch Acrobat.
    Choose Advanced > Print Production > Acrobat Distiller.
    Select Standard in Default settings.
    Go to Settings and select Edit Adobe PDF Settings.
    Select Fonts and in the font source window select the fonts you want to Add.
    Click Save As and then OK.

  • Problem displaying tiff files using ADF

    Hi,
    I have some TIFF files in a table - IMAGE_TABLE
    ID NOT NULL NUMBER
    DESCRIPTION VARCHAR2(40)
    IMAGE ORDSYS.ORDIMAGE
    I am unable to display TIFF images in an ADF form. I can use processCopy to convert the TIFF images to jpeg, which them display correctly. All other JPEG or GIF display correctly, it's only the TIFF that don't. I've tried variours tiff files (different sources, converted gif and jpeg to tiff) but none display correctly (i.e. in IE you get the red 'x' - in firefox you get the broken picture symbol or nothing)?
    This appears to be an ADF issue as I 'can' dsiplay the TIFF files correctly in IE and firefox using the quicktime plugin but not from an ADF form using JDdevloper? (The code/application is Steve Muench's JSFOrdImageExample - http://otn.oracle.com/products/jdev/tips/muench/jsfordimage/JSFOrdImageExample.zip)
    Any ideas or suggestion would be appreciated.
    Thanks.
    JDeveloper 10.1.3 build 10.1.3.0.4
    DB is 10gr2

    Hi,
    yes, I can view tiff's in browsers (IE and firefox) using the quicktime plugin. I've selected quicktime as the player in the af:objectmedia property settings and Autostart = true, but using the ADF form from JDeveloper will not display tiff images (jpg's, giff's etc. are fine) even though the browser will display tiff's on it's own?
    Thanks.

  • Problem displaying tiff files

    Hi,
    I have some TIFF files in a table - IMAGE_TABLE
    ID NOT NULL NUMBER
    DESCRIPTION VARCHAR2(40)
    IMAGE ORDSYS.ORDIMAGE
    I am unable to display the TIFF images in an ADF form. I can use processCopy to convert the TIFF images to jpeg, which them display correctly. All other JPEG or GIF display correctly, it's only the TIFF that don't. I've tried variours tiff files (different sources, converted gif and jpeg to tiff) but none display correctly (i.e. in IE you get the red 'x' - in firefox you get the broken picture symbol or nothing)?
    Any ideas or suggestion would be appreciated.
    Is this an ADF issue?
    Thanks.
    JDeveloper 10.1.3 build 10.1.3.0.4
    DB is 10gr2

    Hi,
    yes, I can view tiff's in browsers (IE and firefox) using the quicktime plugin. I've selected quicktime as the player in the af:objectmedia property settings and Autostart = true, but using the ADF form from JDeveloper will not display tiff images (jpg's, giff's etc. are fine) even though the browser will display tiff's on it's own?
    Thanks.

  • Error while displaying the attached file

    Hi ,
    I am doing one task ,where I need to attach a TIFF file to the workitem .
    I am getting desired output while attaching the file from presentation server but While doing from application server , I am able to attach the file to corrseponding workitem but when i tried to display it ,it gives an error <b>" Operation could not be performed"</b>
    So could you please help me out how to do this ?
    I am using a FM "SCMS_UPLOAD" for uploading file from application server .
    Is there any other way to upload or read the file .
    Thanks

    Hi,
    Use the other FM's
    'SO_OBJECT_UPLOAD'
    OR
    If you are trying to read the file from an SAP Application server,
    1) "OPEN DATASET" to open the file,
    2) "READ DATASET" to read the data into an internal table
    3) "CLOSE DATASET".
    OR
    *   Retrieve Data file from Application server(Upload from Unix)
    DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.
        OPEN DATASET i_file FOR INPUT IN TEXT MODE.
        IF sy-subrc NE 0.
          MESSAGE e999(za) WITH 'Error opening file' i_file.
        ENDIF.
        DO.
    *     Reads each line of file individually
          READ DATASET i_file INTO wa_datatab.
    *     Perform processing here
        ENDDO.
    Regards,
    Nandha

  • How to open jpg, tiff files in camera raw from elements 10 organizer

    How to open JPG, TIFF files in camera raw from Elements 10 organizer.

    Thanks for that Damead, I agree with you that Organiser is real pain (there is a total lack of intuitiveness if that is  the correct word).
    For my own work I use 'Lightroom' for around 90% of the time, only going into PSE10 for the 10% difficult bits the Lightroom can't handle.
    I only needed to sort out the JPEG file opening method within PSE10 for some freinds in a small Photo Group that I run in Woodhall Spa, UK. 50% of the 12 members are beginners & a number of them do not have Raw capability on their Camera's, but now they can get their JPEG's into Camera Raw within PSE10 they have the same simple tabular form of adjustment sliders (not as many as in Lightroom of cause) but it gets over the labourious problem of going thru the PSE10's individual tool selection process each and every time since we are trying to get everyone in the Group working with individual Tools rather than the 'Auto' functions. We do this so that they learn what they are doing rather than staying 'dumb&happy' within Auto all the time & they also learn how to get more detailed control for each photo.
    Ref. your comments on file handling/usage, I agree with your comments. Its far and away much more preferable to set up a file structure in 'Finder" (or in 'Explorer' if still using Windows) that you understand so you always know how to find the files. Also, I also never ever use the Camera Auto Load programme but physically 'drag & drop' photo files direct from the 'card' into the file system so I always know thier place (ie: they go into the location I want, not that which the Auto Loader wants).
    As regards your comment about 'Lightroom', I don't have any problems at all since I just imported the whole of my photo file structure into the Lightroom Library Catalouge and then it automatically shows up on the LHS of the screen, still in that format, so you can search it direct within Lightroom and display all of the photo's in variuos arrangements and sizes; everything is as easy to find as it is in 'Finder' plus of cause you have all the 'Tagging' possibilities to use as well. As you add more new files into the 'Finder' structure, all you need to do in Lightroom is reimport, starting 1 level up from the new files and Lightroom will find the new files that need loading (ignoring the older ones already in the Library at that or lower levels) then 1 click and its done.
    Your comments about getting others to follow a set file structure is very pertinant and also applies to evrything else that one ever does apart from just photo work; the times I have had to help others find info/files etc on their PC's because they don' know the location of anything is too many to contemplate.
    Regards

  • Bridge CS4 not recognizing tiff files

    I downloaded an update for camera raw and installed in manually and after this I couldn't open Photoshop.  I then uninstalled and reinstalled CS4 and now bridge will show thumbnails of tiff files but won't open large.  All I see is a generic icon.  How do I get bridge to recognize tiff files.  It recognizes jpgs, and raw files.  I'm using Windows Vista.
    Any help appreciated
    Suzan

    All Raw files are reconnized as all jpgs.  I have my Bridge set up as a film strip with smal thumbnails and if I click on one thumbnail it opens large in preview area.  I can click on a Raw thumbnail and it will display a larger view in bridge then I can open in Camera Raw for preliminary editing.  I cannot do this with tiff files.  I can see them as thumbnails but when I click on them bridge doesn't display a larger image (only a small icon) nor am I given the option of opening in Camera Raw.  I can double click and photoshp regular will open or I can go up to file open with and go to photoshop regular but Bridge willnot allow me to view a larger than thumbnail size pic nor will it give me the option of opening in Camera Raw.  My camera raw preferences are set to "open both jpgs and tiff files with settings".
    Thanks Suzan
    I purged the cashe from one file and it affected all files(all almost 500 gigs).  I'd been working on this for hours.  Thank you and God Bless.
    Message was edited by: ImKayd1

  • TIFF file Problems in Organizer PE 4.0

    Upgrading from Elements and Album 2 to Elements 4. Many photos earlier scanned as TIFF files will not display in 4.0 Organizer. Most would not even open in Elements 4, although a few would open, but not display in the Organizer. Seems like very strange behavior for an upgraded version.
    My work around has been to open the files in version 2, and save as .bmp. Almost all of the .bmp files would then display in version 4. However, this process is not working for a couple of the files that are both .jpg and .bmp.
    Any ideas on why I might be having these display problems in the Organizer? It's not universal, since I have over 2500 images and many are TIFF that are working without conflict.

    Since this is a discussion related to PE4 I didn't think my experience in PE3 was relevant but since the referenced FAQ refers to PE3 I'm confused.
    I rarely include tif images in Organizer except inadvertently when I forget to uncheck Include in Organizer when I save but have never failed to get a normal display in Organizer.
    I just put 70 tifs into Org ranging in size form 3 to 35 megapixels and though it took forever every one displayed properly.
    My system specs are P4 2.66GHZ 533MHZ FSB; 512MB DDR SDRAM AT 333MHZ;
    120GB HD @ 7200RPM 73GB free; Custom Paging Init 1536MB Max 1536MB;
    Win XP Home SP1.
    According to the FAQ shouldn't I have at least gotten some generic thumbs?
    Maybe I don't know how to calculate MP. Width in pixels times height in pixels?
    Bob

  • Black and white conversion of tiff files in pse6

    I like the "convert to black and white" utility in pse, but was disheartened to discover that it doesn't seem to work with tiff files. Also, the "adjust smart fix" and "auto red eye" options are not available with tiff files either. Is there a way around this?

    Geoff the kiwi wrote:
    How does the OP's green/magenta colouring equate to your stated red/cyan?
    Well, it looks cyan to me. Here it is with saturation boost - assuming the OP made the screenshot correctly, assigning the display profile:
    In any case, the Photoshop bug is well known and well documented, showing up as cyan shadow banding in ProPhoto files, when GPU is set to "Normal" or "Advanced" mode.
    I'm not saying the display profile isn't involved, it most certainly is. The whole issue is the conversion into the display profile. And it also shows to varying degree with different display profiles - sometimes just subtle cyan bands, easily missed until you look for it, other times more pronounced and with secondary red banding (like here).
    It also happens with sRGB as display profile. So the bug is real, no question about that.
    What's different here is that there's cyan also in the highlights. But that could be the screenshot - or it could be "just" a bad display profile. I'm not ruling that out, just pointing out that there is a more likely explanation in this case.

  • ACR 6.3RC still makes Bridge display some TIFFs & JPGs overexposed

    I had the same problem with TIFFs & JPGs after upgrading from ACR 6.1 to 6.2. My system is Win 7x64 and, of course, PsCS5 and Bridge 4.0.39. This time the upgrade was from ACR 6.1 to 6.3RC. Not all images are affected. The problem seems to be entirely random. The amount of overexposure seems to be in the order of 1 to 2 stops. The problem is limited in this way for me:
    1. All the affected images display correctly exposed when opened in Ps and ACR 6.3RC (and ACR 6.2) hosted by Bridge.
    2. Only TIFFs & JPGs (both B&W and Colour) "derived" ultimately from original TIFF scans (both B&W and Colour) made on a Nikon SuperCoolscan 5000 ED are affected. The original TIFF scans (99.99% are 16-bit) are all unaffected.
    3. The problem does not occur with any TIFF or JPG file derived from native CRW or NEF raw files or from native JPG files produced in-camera (Canon EOS 300D and Nikon D700), all of which are themselves unaffected.
    4. It does not matter were you might be in an image editing process. Some intermediate edits to TIFFs (I never make intermediate JPG edits) are affected, others are not. Editing might start with the TIFF and continue with edits to the TIFF, and only some of the subsequent TIFFs (or final JPGs derived from them) are affected. For example, there might be 6 distinct edits to a TIFF and only edits 3 through 6 are affected. Editing might procede immediately from the original TIFF scan to PSD, finalise with PSD, and then, AND sometimes only, any TIFF or JPG made from the final, flattened PSD produces a file which Bridge will display overexposed. Only some files in a batch of scans, all made at the same time and under exactly the same conditions (almost always with no adjustments made with the Nikon scanning software), are ever affected - never all of them.
    5. Some of the edits to the original TIFF scans (where the edits were kept as TIFFs) were made with Picture Window Pro, some with Lightroom 1.3 (I think), some with ACR 4.x, ACR 5.x, but most were made with PS CS3, CS4 and CS5: it does not matter, there are some affected files from each. The problem certainly does occur with files which have never been opened, let alone edited, in any version of ACR.
    6. I have several instances where simply making a copy of a TIFF scan in another folder (whether the copy was made by Bridge or with Windows Explorer has no influence) results in the copy only and not the original being displayed overexposed.
    7. If a file is affected, all TIFFs AND all JPGs derived from it will be overexposed, never just one or the other.
    The overexposure problem detailed above does not occur with ACR 6.1. All the files affected by ACR 6.2 and 6.3RC are displayed with correct exposure by Bridge when ACR 6.1 is installed.
    I'm at a complete loss to understand what is going on. Any suggestions would be most welcome.
    Has anyone else who was experiencing the Bridge/overexposure problem with either ACR 6.2 or 6.3RC found a solution?

    This will be posted in both the ACR and Bridge User Forums
    I've done some experimentation and found a workaround for, not the solution to, my problem with ACR 6.2 and 6.3RC causing Bridge to display random TIFFs and JPGs overexposed.
    This is a temporary, and, if you have lots of affected files, a very laborious, individual file workaround. Unless Adobe investigates, finds and corrects the cause of the problem, it seems likely to re-occur. Only fixing the cause of the problem (which must lie in the new (different from ACR 6.1) code of ACR 6.2 and 6.3RC) could be be truly regarded as a solution.
    Here is how I enabled Bridge to display my affected TIFFs and TPGs correctly, that is, with no amount of overexposure. These steps apply equally to B&W and Colour images.
    For a 16-bit TIFF, duplicate it in Bridge (Edit/Duplicate) and then open the duplicate in ACR 6.2 or 6.3RC (ACR) hosted by Bridge. Make sure that all the sliders are zeroed in the Main panel and that the Amount slider in the Sharpening section of the Details panel is also set to zero (to avoid unwanted additional sharpening). Then open the image in Photoshop (Ps) and immediately save the image (Save As) over itself (yes, you're replacing the file) back in the folder from which you opened it into ACR, making sure to choose no compression. The resaved duplicate will now be displayed with its proper exposure in Bridge, and any further TIFFs or JPGs (whether 16-bit or 8-bit) derived from this file will also be displayed correctly. Following this procedure, my invariable experience is that I end up with a TIFF either the same size as or smaller than the affected TIFF.
    Why no compression? Strangely, if you choose LZW compression (really the only logical alternative to "None") you end up with a larger file than you get with no compression. I have no idea why. Why not simply fix the affected file instead of a duplicate? No reason really, other than safety. If things go belly-up you still have your original, albeit, affected file. I also intend to keep my affected files for awhile just in case of some possible desire or need to re-examine them in the future.
    For an 8-bit TIFF, although I don't have any which are affected, the procedure would be the same as for a 16-bit TIFF. You will need to conduct your own tests regarding compression/no compression and the resulting file size.
    For a JPG, the procedure is pretty much the same (duplicating, opening in ACR, zeroing all sliders, opening in Ps and then saving over itself) but when saving try choosing Maximum Quality (12) which mostly, for me at least, produces a replacement JPG the same size as the original affected file. Of course, you can choose a greater level of compression if you wish, and my tests show that this will not adversely affect the outcome. You can use the replacement JPG to produce further, derivative 8-bit TIFFs or JPGs and all will display properly exposed in Bridge.

  • Showing tiff files using web.show_document

    Hello,
    I want to show tiff files using web.show_document. Tiff files cannot be displayed in a browser, however therr are several plug-ins available to show them.
    Can anyone recommend a plugin to display tiff files in a browser?
    Kind Regards Erik

    We had tried a different approach. We store all type of documents in the database using webutil.
    And we dont directly open any document and we download the document to the local host and then open it using webutil client host ('local folder\file name')
    This way word,excel, pdf etc will be automatically opened with its relevant appln and if there is relevant appln is not found it will prompt the windows standard Open with dialog box.
    Rajesh ALex

  • Rendering Tiff File

    I am trying to view Tiff file, but the problem that it is not clear view
    I mean it is very bad look, not like view it in another Tiff viewer.
    and also it is too big, I mean the width and hight.
    any way, this is my code:-
    public void ReadingTiffFile()
    String strFileName = "d:\\b.tif";
    File file = new File(strFileName);
    SeekableStream s = null;
    try
    s = new FileSeekableStream(file);
    TIFFDecodeParam param = new TIFFDecodeParam();
    ImageDecoder dec = ImageCodec.createImageDecoder("tiff", s, param);
    RenderedImage img = dec.decodeAsRenderedImage(0);
    JFrame frm = new JFrame();
    frm.getContentPane().add(new PnlTiffGraphicsView(img));
    catch (IOException ex1)
    System.out.println("Error While Rending Images");
    public class PnlTiffGraphicsView extends JPanel
    RenderedImage img = null;
    public PnlTiffGraphicsView(RenderedImage img1)
    img = img1;
    public synchronized void paintComponent(Graphics g)
    gg.drawRenderedImage(img, new AffineTransform());
    Many thanks in Advanced.

    I found this code somewhere online... I took a few snippets from it to form my own methods that accepted image paths... Hope it helps.
         import java.awt.Frame;
         import java.awt.RenderingHints;
         import java.awt.image.DataBuffer;
         import java.awt.image.renderable.ParameterBlock;
         import java.io.IOException;
         import javax.media.jai.JAI;
         import javax.media.jai.LookupTableJAI;
         import javax.media.jai.RenderedOp;
         import com.sun.media.jai.codec.FileSeekableStream;
         import com.sun.media.jai.codec.TIFFDecodeParam;
         import javax.media.jai.widget.ScrollingImagePanel;
         public class LookupSampleProgram {
             // The main method.
             public static void main(String[] args) {
         // Validate input.
         // Create an input stream from the specified file name to be
         // used with the TIFF decoder.
                 FileSeekableStream stream = null;
                 try {
                     stream = new FileSeekableStream("C:\\my.tiff");
                 } catch (IOException e) {
                     e.printStackTrace();
                     System.exit(0);
         // Store the input stream in a ParameterBlock to be sent to
         // the operation registry, and eventually to the TIFF
         // decoder.
                 ParameterBlock params = new ParameterBlock();
                 params.add(stream);
         // Specify to TIFF decoder to decode images as they are and
         // not to convert unsigned short images to byte images.
                 TIFFDecodeParam decodeParam = new TIFFDecodeParam();
                 decodeParam.setDecodePaletteAsShorts(true);
         // Create an operator to decode the TIFF file.
                 RenderedOp image1 = JAI.create("tiff", params);
         // Find out the first image's data type.
                 int dataType = image1.getSampleModel().getDataType();
                 RenderedOp image2 = null;
                 if (dataType == DataBuffer.TYPE_BYTE) {
         // Display the byte image as it is.
                     System.out.println("TIFF image is type byte.");
                     image2 = image1;
                 } else if (dataType == DataBuffer.TYPE_USHORT) {
         // Convert the unsigned short image to byte image.
                     System.out.println("TIFF image is type ushort.");
         // Setup a standard window-level lookup table. */
                     byte[] tableData = new byte[0x10000];
                     for (int i = 0; i < 0x10000; i++) {
                         tableData[i] = (byte)(i >> 8);
         // Create a LookupTableJAI object to be used with the
         // "lookup" operator.
                     LookupTableJAI table = new LookupTableJAI(tableData);
         // Create an operator to lookup image1.
                     image2 = JAI.create("lookup", image1, table);
                 } else {
                     System.out.println("TIFF image is type " + dataType +
                                        ", and will not be displayed.");
                     System.exit(0);
         // Get the width and height of image2.
                 int width = image2.getWidth();
                 int height = image2.getHeight();
         // Attach image2 to a scrolling panel to be displayed.
                 ScrollingImagePanel panel = new ScrollingImagePanel(
                                                 image2, width, height);
         // Create a frame to contain the panel.
                 Frame window = new Frame("Lookup Sample Program");
                 window.add(panel);
                 window.pack();
                 window.show();
         }-sal

  • 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());
    }

Maybe you are looking for

  • Airport express no longer being recognized

    I previously had my home network set up and working with no problems. I have an airport base station and I have an airport express that I use to print wirelessly. After one of the recent updates, my airport express was no longer recognized by the air

  • GOS attachement

    Hi is there any standard bapis or RFcs are available to export GOS attachment from R/3 to external systemsv.  the attachement will be exist in qm02 transaction . if in case of n attachment i have to upload latest one .

  • Interactivity with Forms

    My forms are no longer interactive when I view them in email.  Interactive images (rollover images with actions attached) do not appear at all. When my file is downloaded (not viewed) from email, they are interactive.  All interactive images appear.

  • SCCM 2012 client activity BLANK

    Many of our clients aren't talking with SCCM correctly for some reason.  If I look at the devices they're all missing client activity, policy request, client check result, status message, management point, etc.. etc.. We have an enterprise of over 20

  • Cut audio from a video file and edit in an audio editor?

    Using Pre 9 and a Nikon D7000 video file: Is it possible to cut the audio portion of a movie clip (where the audio was recorded in the camera and is part of the import), edit in an audio editor (I like Sony Sound Forge Studio), then paste it back int