How to show a picture from my database (BLOB field) Oracle into my JSP

Hi all, i got a problem trying to show a picture in my JSP.
I have a servlet which loads my picture, the problem is that i dont know how to set into a session// session.setAttribute("xxx","aaa") // or if there is another way to set it up, in order to show it in my JSP, if someone could help me i really appreciate it... thanks

The way you include it in your jsp is the standard way you download any image.
With an image tag
<img src="myImageServlet?imageId=42"/>
and your imageServlet actually returns the picture via its output stream.
ie it makes 2 requests. One for the jsp page, and then when it receives and parses the html, one to the servlet to get the image.

Similar Messages

  • How do i get pictures from ps 3.2 to convert into photoshop elements 9?

    d

    Install PSE9, run it, and you should get a dialog box asking you if your want to convert. Click "Yes".
    If that doesn't happen, in PSE9, select File->Catalog->Convert and point PSE to your PSE3.2 catalog.
    By the way, contrary to your subject line, you are not converting the pictures. Those remain unchanged and unmoved. You are converting the PSE catalog.

  • How do I Get pictures from my canon camera to upload into iphoto

    I plug my canon into usb and it looks like pictures are uploading but then only 5 are in iphoto and the rest it say are not readable.

    If you have a data card try plugging that in and see if it work better

  • How Do I Download Pictures From My Samsung M320 Cell Phone

    Does anyone know how to get the pictures from the Samsung M320 cell phone into iTunes? I tried a USB cable but the computer doesn't seem to want to connect to the camera and do anything with it. I tried Bluetooth and while I seemed to be able to connect it to my iMac I couldn't really seem to do anything with it. I called the store I bought it from and they seemed to think the only way was to use the send picture feature which as far as I can tell I have to pay for and can only send one photo at a time. The phone does not seem to have any remoovable card or anything that the pictures are on.
    Any advice?

    http://datapilot.com/productdetail/89/producthl/Notempty/
    That and an actual "data cable" compatible with this phone did the trick. Previously I had a "USB charging cable" from WalMart which is apparently only good for charging not for data. With Datapilot I am able to download the pictures to my hard drive. It can also work with phonebooks and calendars to some extent but I don't need to do that yet and so can't speak as to that capability.
    Cheers!

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • How can I copy pictures from my computer to my SX50 so I can show them from the camera?

    How can I copy pictures from my computer to my SX50 so I can show them from the camera?

    I know this is an older thread, but FWIW you should be able to open up My Computer in Windows, locate your memory card there, then either drag and drop and/or copy and paste images from your computer's hard drive onto the memory card.

  • How can i move pictures from the phone to the pc?

    How do I move pictures from my cell phone to my PC?

    Do you get an error when transferring, or do you not see the card/phone show up in a file manager/My Computer?  Do you have the updated drivers for USB from Samsung?
    If all of this is fine, can you not cut and paste or drag and drop from the phone/card to a folder? 

  • How can I transfer pictures from my MacBook Pro to my iPad mini please?

    How can I transfer pictures from my MacBook Pro to my iPad mini please?

    If you are on iTunes 11 on your Mac then you may want to re-enable the left-hand sidebar via View > Show Sidebar, which might make it easier to navigate and may instructions may make more sense.
    To sync photos, connect and select your iPad on the left-hand side of your computer's iTunes (if you've enabled the sidebar), and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page. You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - synced photos can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.
    If you haven't enabled the sidebar, then from your library click 'iPad' at the top right of the screen and you should get a series of buttons along the top of the screen, including one for Photos

  • How do I download pictures from my pc to my iphone

    How do I download pictures from my PC to my iphone?

    First you have to create a ringtone from a song and move it into your iTunes library (if you haven't already).  This video will show you how: Create free ringtones with iTunes 10.  Then go to the Tones tab of your iTunes sync settings, check Sync Tones and sync your phone.  (The Tones tab won't appear until you have at least one ringtone in your iTunes library.)

  • How do I transfer pictures from messages on my iPhone to my photo library

    How do I transfer pictures from IM (messages) on my iPhone to my photo library?

    Hi patricew9,
    Welcome to the Support Communities!
    The link below will show you how to save photos in Messages to your iPhone's camera roll.  You can then get photos from your iPhone into your computer by using Photo Stream, or importing directly into the computer.   I'll include more information for you below:
    Save a photo or video you received in Messages - Message - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI88#TI88
    To save a photo or video you received in Messages, tap the photo or video to open it fully. Tap the Share icon in the bottom left corner of the screen.  Then tap Save Image to save it to your Camera Roll.
    iOS: Importing personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083
    If you have an iCloud account, you can also enable Photo Stream on your iPhone and your computer to sync photos:
    iCloud: Set up Photo Stream
    http://support.apple.com/kb/PH2605
    Cheers,
    - Judy

  • How do i get pictures from iphone to mac?

    How do i get pictures from iphone to mac?

    If you want your photos to end up in iPhoto, just do a normal sync. If you don't want to use iPhoto, or if you just want to put your phone photos in a normal visible folder on the desktop, luckily when you plug in the iPhone a Mac sees it like a camera or card reader. This means the iPhone will show up in common applications that have an import-from-camera feature. I've copied photos off my iPhone using Apple Image Capture, PhoneView, and Adobe Lightroom, for example.

  • How do I export pictures from my IMac to my iPad.  I have only certain albums I want to export and not all my albums?

    How do I export pictures from my IMac to my iPad.  I have only certain albums I want to export and not all my albums?

    You can select only the albums that you want to sync in the photos tab of iTunes when you sync your iPad. If you are using iPhoto it is very easy. Simply select iPhoto in the Sync Photos From heading and then select the albums that you want to sync.
    If you are using iTunes 11 - enable the side bar by going to View>Show Sidebar from the iTunes Menu. This explains how to sync photos.
    iOS and iPod: Syncing photos using iTunes - Apple - Support

  • How do I download pictures from my Mac to a sd card?

    How do I dowload pictures from my Mac to an SD Card

    Where are the pictures - in iPhoto? If so, put the SD card in the drive and then in iPhoto select the pictures you want on the SD card and choose File>Export. Navigate to the SD card and save them there.
    If the pictures are just in a folder on your Mac, put the SD card in the drive and drag the folder with the pics on the Mac onto the SD icon on your desktop.
    (If SD card doesn't appear on your Desktop check Finder>Preferences, General & Sidebar tabs to make sure the option to show it is ticked).

  • How do I import pictures from my mac to my iphone 5

    How do I import pictures from my mac to my iphone 5???????

    Connect to two devices with the supplied lightning/USB cable and ITunes will launch on your Mac .
    In the left hand pane your iPhone name will show up under devices.
    Click on this to open the IPhone control panel in the main iTunes browser window.
    At the top you will see a series of radio buttons
    Summary Info Apps Music Movies TV Shows Books Photos
    Click on Photos
    Put tick on sync photos with iPhoto (Default you can also choose Aperture if you buy this)
    In the panel below you can choose to sync All libraries or Selected events- this opens an inspector panel displaying the folders as they appear in iPhoto (Aperture) with tick boxes to select differing collections/images
    Now click the apply button in the bottom right corner and your choosen images sync with to your iPhone.

  • How do I download pictures from the computer to the ipad

    how do I download pictures from the computer to the ipad?
    I want to temporarily put pictures that I took from another camera that's on my desktop into my IPAD so I can carry it to another location and show off my pictures to friends and family?

    Connect and select your iPad on the left-hand side of your computer's iTunes, and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page. You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - synced photos can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.
    If you want more control over your photos (e.g. being able to sort them directly on the iPad and delete synced photos) then there are third-party photo apps such as Photo Manager Pro.

Maybe you are looking for

  • Can a hyperlink be created for an iCal Todo?

    I would like to be able to refer create an iCal Todo URL (not Mail todo) so that I can link to a particular todo from elsewhere. Is this possible?

  • IMovie Events 'markup' changing size

    Hi there, I have a number of drives (3) that I store my iMovie events on, and I was working on a project a few months back, and I now go and click on the event and the 'mini-view' to the right shows the 'clips' sqaure (if I move the slider to All, th

  • Transferring CS6 to new computer

    Hi! I have a year long subscription (paid monthly) to CS6 but just got a new computer. How do I transfer CS6 from my old computer to my new computer?

  • Cretification in EP

    Hi Friends, I am working on webdynpro java and EP. I am already Sun Certified java programmer. Now I want to do certification in SAP. Which certification should I do and what is the prerequisite for it and what is the name of it. Regards Sagar Ingalw

  • LMS 4.0 discovery issue

    Dear All,            I have a question, can i discover a device with more than one IP address, as i need to discover my remote site router with both of it is IP addresses, as i have two different connections to this router with two different service