How to output Pictures?

Hi,
Is it possible to create a picture with JIMI and output it directly to a web page via servlet? I know how to use JIMI to create an image and save it in a directory, but I want to know if it is posible to output the image to a webpage without saving onto the hard drive, and how can I do it? Thanks

Just redirect your OutputStream to the ServletOutputStream instead of a FileOutputStream. Just remember to set the content-type to "image/gif" or whatever format before you send the image.
In your HTML page you would have <img src="/myApp/imageServlet?image=Person" height="x" width="x">
Cheers,
Anthony
BTW Have you been able to use JIMI to get meta data from PSD files at all? I'm trying to work out how to get the notes/captions etc from a photoshop file.

Similar Messages

  • I need to know how to copy pictures to a cd with the captions showing, elements 8 and windows 7

    I need to know how to copy
    pictures to a cd with the captions showing, elements 8, windows 7

    Here are some suggestions.  Perhaps others will have even better ideas.
    1 -- for viewing on a Windows computer,  you can experiment with making a PSE Organizer slide show creation in which you specify to show the captions. Then save the Output of the slide show as a WMV file that the recipient could play on a computer with Windows Media Player.
    If you have a DVD burner on your PC, you can also use that WMV file as input to the Windows 7 DVD Maker program for making a TV playable DVD. And if your recipient(s) who will view on a computer have DVD readers, you could make video DVDs playable on computers or TV DVD players instead of using CDs.
    The limitations of this approach are that this wmv file you create is really a video file so
    -- it advances photo slides at the rate specified when you create the slide show
    -- the choices to save a wmv file are not very high resolution so that recipients who have high resolution monitors will not see the photo images are not getting the benefit of seeing the photos at their best
    -- your recipients can't print from this video slide show
    2 An entirely different approach is to
    -- For each individual photo, make a copy of the photo file and depending on how high resolution your originals you might want to resize down to monitor viewing sizes.
    -- Then use the PSE Editor Text Tool to place the caption on a layer above the photo. (I think that you could display the existing caption and then do a copy and paste so that you don't need to retype everything.)
    -- You should save this photo copy with the text as a uniquely named JPEG file. Use the file names to control the sequence in which you want the viewer to see the photos.  (Don't save as a PSD because others probably can't read the PSD format).
    -- Then use your computers CD burning software to burn a folder containing all those jpeg files with the captions to CD
    This approach is a bit of work for each photo and you did not say how many photo files you will be doing. However,
    -- computer users should be able to display  the jpegs as high resolution photos on their computer as well as optionally print from those photo files
    -- many TV DVD players can play (display) jpg files from a CD disc which also gives recipients the opportunity to view the photos on their larger TV screen
    Process 2 may seem complicated but once you get started I think it will be more of a production line.
    ADDITION
    Do you have any portrait orientation photos included with those you wish to send ? If yes, we might need to discuss some additional processing for them.

  • Reportin how to upload picture file

    Dear All,
    in reporting how to upload picture file. any documentation. where is the properties are there in reporting. here i am going start report but my client requirement output in the excel sheet picture output in the screen.. any pdf file for upload pic like .bmp, .jpeg etc
    Thanks in advance
    [email protected]
    please sent to me doucmentation & pdf file
    again Thanks in Advance

    Dear All,
    in reporting how to upload picture file. any documentation. where is the properties are there in reporting. here i am going start report but my client requirement output in the excel sheet picture output in the screen.. any pdf file for upload pic like .bmp, .jpeg etc
    Thanks in advance
    [email protected]
    please sent to me doucmentation & pdf file
    again Thanks in Advance

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • How to output sound to RCA cables?

    I give up! I can't for the life of me figure out how to output the sound from my Macbook to play on my stereo or TV which use RCA cable hook-ups.
    I got the VID ADPT MINI-DVI TO VIDEO ADAPTER-GEN but that only adapts the video, not the sound. Do I have to get some kind of optical to analog adapter?

    This would do the trick, although you can probably find something at Radio Shack for less.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=FFB 21895&fnode=home/shopipod/ipod_accessories/cablesdocks&nplm=TN779LL/A
    I got an iPod kit with a power supply, extra dock, and a Monster Cable (yeah I think they're overhyped) mini jack to RCA connector.
    There are a bunch of ways you can do this. If you've already got long enough RCA cables, these would do the trick:
    http://www.radioshack.com/product/index.jsp?productId=2103710
    Or if you have a short distance, maybe something like this (doesn't say how long it is):
    http://www.radioshack.com/product/index.jsp?productId=2427991
    There are more attractive versions of this type of adapter. Radio Shack shows at least a dozen from different companies.

  • How GET Output to Excel with Oracle9i Report using OC4J

    how GET Output to Excel with Oracle9i Report using OC4J.
    I FINISHED THE SETPS CONCIDERING THE JSP CODE NEEDED TO GET THE EXCEL OUTPUT ON LOCAL MACHINE.
    I NEED TO PUBLISH THIS REPORT THROUGH APPLICATION SERVER.
    THE QUESTION IS:
    1- HOW TO START AN OC4J INSTANCE FROM ORACLE 9I DS FOR THIS REPORT?
    2- WHERE (PATH) TO PUBLISH THE REPORT ON THE APPLICATION SERVER?
    3- WHAT IS THE DEFAULT URL TO RUN THIS REPORT AND WHERE TO PUT IT?
    4- HOW TO MAKE MAPPING FOR DIRECOTRY PATH TO TRANSLATED AS URL FOR THIS REPORT?
    5- IF ANY ONE CAN GIVE ME THE FULL CODE TO RUN AND CALL SIMPLE JSP REPORT TO BE VIED IN INTERNET EXPLORER.
    THANK YOU

    Hi,
    I can't answer to all your questions, however I can tell you that:
    2) The directory where to put the report file is specifiend in a file named
    <serverName>.conf
    in the sourceDire property
    <property name="sourceDir" value="/directory/dove/mettere/i/report"/>
    that you can find under ORACLE_HOME/reports/conf
    3) The URL is
    http://<server IAS address>:<port number>/<jsp file path>/<repName>.jsp?server=<report server name>&userid=<user>/<pwd>@<DB conn string>[&<param>=<valore>[&...]]
    5) In IE you have only to set the previous URL in the address bar.
    Hope this helps you
    Bye
    Raffy

  • How to save picture from an iPad on someone else computer

    how to save picture from an iPad on someone else computer.

    Why don't you save pictures to Dropbox?
    You don't have to save it on someone's computer
    http://i1224.photobucket.com/albums/ee374/Diavonex/b90c9d4d.jpg

  • How to transfer pictures from iphoto on macbook pro to iPad. I have the transfer app on both devices.

    How to transfer pictures from iphoto on macbook pro to iPad. I have the transfer app on both devices.

    Connect the iPad to your MBP and open iTunes.  In the photos section of your iPad in iTunes you can choose selected albums, Events or the entire iPhoto library to sync to your iPad.
    OT

  • How to view pictures sequentially?

    I have a Nokia E71 phone and would like to know how to view pictures in a folder one after the other (that is, without having to press the back button). it seems like the built-in app won't do that. I'd also like the similar capability with video files too. Are there some recommended apps? Please suggest. Thanks.

    use navigation key left and right
    If this post helped... Add some kudos!!

  • How to output video to TV or Home Theatre? (iphone)

    How to output video to TV or Home Theatre? (iphone)

    I recently bought a AV projector and was asked by a smirky but envious friend the same question, after watching me hook up my powerbook, having already purchased an ipod video 30gig with the UNIVERSAL DOCK with remote control and ifrared remote control I remembered reading about it also working with the iphone, so it having a s-video output with a audio mini output port, I plugged the iphone into it and it came up with a little message saying this is not a iphone compatible device, and asked me to turn on airport, I ignored the request and it just clicked over to the itunes section, I picked a video and presto instant big screen projection TV off the iphone, How IMPRESSIVE! then I went to utube launched a utube video and wow how cool it also played seamlessly, although it pays to let the Youtube videos buffer for a minute to get a better play off the EDGE net work verse the Wi-Fi, I plan on having lots of out door theatre shows this summer with this very compact multi-media package, What a hoot! Get the universal dock no glitches!

  • How to output full image path to logger/console

    Hi All
    I'm just starting to get my hands dirty with the lr sdk and could do with a little guidance.
    For part of a plugin I need to retrieve the full path to each image, and although I can achieve what I want I'm struggling to print the path to the console/logger and can't understand why.
    Here's a snippit of code to illustrate things:
    for photo in exportSession:photosToExport() do
         filename = photo:getFormattedMetadata( "fileName" )
         outputToLog( filename )  -- Works as expected
         folderName = photo:getFormattedMetadata( "folderName" )
         outputToLog( folderName )  -- Works as expected
         local path = LrPathUtils.standardizePath(photo:getRawMetadata("path"))
         outputToLog( path ) -- Output is always blank
         -- and yet when passed to exiftool the path is correct and works as expected
         LrTasks.execute("exiftool  -Copyright=\"Imaginary person\" \""..path.."\"")
    end
    Basically I can get the path and use it as part of an exiftool command, but can't work out how to output the path to the log/console for debugging purposes. Am I missing something simple or is this an intentional limitation?
    Any help much appreciated.

    I don't know what the problem is. What device are you outputting to?
    i.e. did you try logger:enable( "logfile" ) -- that works for me in OSX to log to a file.
    Here is the code I use:
    self.logger = LrLogger( logName )
    local function logToFile( msg )
        local f = io.open ( self.logFilePath, "a" )
        if f == nil then
            Debug.pause( "can't open log file", self.logFilePath )
            return
        end
        f:write ( LrDate.timeToUserFormat( LrDate.currentTime(), "%Y-%m-%d %H:%M:%S"), " ", msg, '\n' )
        f:close ()
    end
    if self.verbose then
        --self.logger:enable( 'logfile' ) -- enable everything to log file.
        self.logger:enable( logToFile )
    else
        local actions = {
            -- debug output is suppressed when not logging verbosely
            trace = logToFile,
            info = logToFile,
            warn = logToFile,
            error = logToFile,
            fatal = logToFile,
        self.logger:enable( actions ) -- suppress trace & debug.
    end
    R

  • How to output data when converting labview vi into matlab mex functions

    Hi,
    I am a fairly new user to labview and am currently working on labview
    7.1. I have created a labview vi which can extract data from ni daq
    6070e in real time. The problem is that this code has to be converted
    so that it can be used with matlab.in order to do that i am using math
    interactive tool kit which converts the labview code into mex files
    which can then be used in matlab. Unfortunately i have not been able to
    figure out how to output this data so that it can be processed in
    matlab easily. i cannot afford any loss of information and all the
    output must happen in real time. the o/p must take place after the fft
    has been done. i am attaching the vi for convenience.There are 10
    broken wires ,and this is the place where i want the o/p to be
    generated.
    Also do let me know if this vi can be further improved.
    Regards
    Attachments:
    RT_loop2ver4_working.zip ‏642 KB

    Manuj,
    You seem to have misunderstood the way in which LabVIEW processes data.  The code that you have produced will run in exactly the same way without the need for the case structure.
    The code does not actually run the data from the previous case. It is merely processing data from the previous loop iteration, regardless of the case. If you were to remove the case structure, leaving only one copy of the code intact, and remove the toggle switch you have produced, or used the shift register which, I assure you would have worked, then you will have exactly the same functionality.
    I have attached an example that uses the shift register to toggle cases, but also iterates that the case structure is not needed by using the same feedback node (and code) without a toggle switch or case structure.
    Hope this helps you optimize your code
    Regards
    AdamB
    Applications Engineer
    National Instruments UK
    Applications Engineering Team Leader | National Instruments | UK & Ireland
    Attachments:
    CASE_NO-CASE_Example.vi ‏24 KB

  • How to output FTP file with Code Page 8400?

    Hi gurus,
           As we know we can use  GUI_DOWNLOAD to download fiel with specific Code Page,
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         filename          = 'E:\TEXT.TXT'
    *      confirm_overwrite = 'X'
          codepage          = '8400' "Chinese
        CHANGING
          data_tab          = i_file
        EXCEPTIONS
         file_write_error  = 1
          OTHERS            = 24.
      IF sy-subrc EQ 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    But my question is how to output file into FTP server with specific code page 8400?
      call function 'FTP_R3_TO_SERVER'
        exporting
          handle         = p_handle
          fname          = p_filename
          character_mode = 'X'
        tables
          text           = i_file
        exceptions
          tcpip_error    = 1
          command_error  = 2
          data_error     = 3
          others         = 4.

    Thanks but it is not my anwser
    I want to output file to FTP Server with specific code page like
    GUI_DOWNLOAD

  • How to Output Rich Text Format.

    Hi everyone, i use a rich text editor called tiny mce in my web application. After i click the submit button the value inside the text area would be saved in my database including the HTML tags e.g. <i>Sample Report edited via Tiny MCE Rich Text Editor<i>. I need to output the text in a webuijsf static text component but the moment i see the output the tags are still there and the text is not in italics format. Does anyone know how to output it in static text with the design in it?

    It is not updated for more than 1 years and it is dropped by Sun and users were recommended to migrate to ICEfaces.
    [http://woodstock.dev.java.net]
    The Woodstock release 4.2 is the last official version of Woodstock that Sun will release. Sun will continue to support its customers that have built on top of Woodstock 4.2. The Project Woodstock code is still available, and community members can still create new features or enhancements. For future development or migration of existing Woodstock projects, Sun is officially endorsing ICEfaces as the replacement technology for Woodstock. Also see [http://www.nabble.com/Woodstock-Migration-Path-to-ICEfaces-td21057513.html], although I would recommend RichFaces above that. It is only that it doesn't have a drag'n'drop palette for Netbeans, so it is not reachable for blind visual developers.

  • How to Output Rtf

    I need to create an app that reads text from text files and outputs the text to an rtf file, which will later be read into a Word document.
    Although my app will not contain any kind of UI, I've discovered that the javax.swing.text and javax.swing.text.rtf packages might let me accomplish my goals. I also found following snippet, which illustrates how to output some RTF:
    private void writeFile()
         FileOutputStream stream;
         try
              stream = new FileOutputStream("test.rtf");
              RTFEditorKit kit = new RTFEditorKit();
              Document doc = kit.createDefaultDocument();
              SimpleAttributeSet bold = new SimpleAttributeSet();
              StyleConstants.setBold(bold, true);
              doc.insertString(0, "TITLE", bold);
              doc.insertString(doc.getLength(), "\n\r" , null);
              doc.insertString(doc.getLength(), "Bla bla bla", null);
              doc.insertString(doc.getLength(), "bla bla bla", null);
              kit.write(stream, doc, 0, doc.getLength());
         catch (FileNotFoundException e)
              e.printStackTrace();
         catch (IOException e)
              e.printStackTrace();
         catch (BadLocationException e)
              e.printStackTrace();
    }What I need to do now is figure how to create the RTF for a table. Does anyone know how to do this?
    Thanks much...

    Hi pdevaal,
    Thanks for reply, For first question I test it and it works but it is possible to add MIMETYPE on server other wise I have to modify every Run report procedure for this to work.
    For second question I just view the slide show by Oracle to create template for spreadsheet output.
    Regards, Khawar

Maybe you are looking for

  • How to use multiple models in one Function module?

    Hi, In my FM i am using 2 models and if i dont completely exit the Function and use the same fm for another query based on another model it is giving error saying invalid type. if iv_type_of_search = 'A'. start the application BT     lv_bol_core = cl

  • Backup profile for Ecc 6.0

    Hi, How to take backup profile for Ecc 6.0 as i'm using Oracle Database 10g and windows server 2003 as my OS. Kindly help me out. Thnx in advance. Regards Promod

  • Help needed after uploading photos to my PC and being unable to rotate images and video

    HELP!! When I connect my iphone to my PC it imports all pics and video. Then when I go into the folder located where these images are located in my C drive and I want to rotate a photo (and video) that was taken upright on my iphone, I get a warning

  • Syncs changes to my Touch even without any changes in iTunes

    Recently, everytime I connect my 32G Touch to my Macbook, it updates around 350 songs even if I have not made any changes to my iTunes library or Touch. I can even let it finish updating the 350 songs and disconnect then reconnect and it doest it aga

  • User's default email address for use with Answers

    How to use user's default email address for use with Answers? When I was referring to the Admin Guide I found the below description for email session variable. Can somebody please help me with this. Contains the user's default email address for use w