Image retrieval error

Hi,
I have a weird problem. I have a blob field in two tables. Both contain a potential thumbnail of a given document which is stored in a different table. I have a simple web application that displays the thumbnails using the PL/SQL web cartridge.
Here is the problem. In one environment (A HP 64 machine) the procedure works fine, it loads which ever image is required with no problems. The other environment that I am running is identical and runs on windows 2000 pro. In this environment one table allows me to show the thumbnails, the other does not...I have placed checks in the code to see whether the BLOB is being retrieved correctly for the thumbnail that is not showing; and it is definitely there.
Has anyone seen anything like this before ?
Here is a copy of the procedure,
PROCEDURE download_thumbnail(
pn_item_id IN number
) IS
CURSOR c_items ( id IN NUMBER ) IS
SELECT *
FROM bvhe_portal.bvhe_items
WHERE 1=1
AND item_id = id;
r_curr_item c_items%ROWTYPE; -- current item
lv_filename VARCHAR2(128) := 'thumb.gif';
lblob_dummy blob;
lv_dummymime VARCHAR2(128);
     lv_desc VARCHAR2(128);
BEGIN
OPEN c_items(pn_item_id);
FETCH c_items INTO r_curr_item;
IF c_items%FOUND THEN
IF (dbms_lob.getlength(r_curr_item.thumbnail) != 0) THEN
owa_util.mime_header('image/gif', FALSE);
htp.p('Content-Length: ' || dbms_lob.getlength(r_curr_item.thumbnail));
IF (instr(r_curr_item.file_name,'.',-1,1) != 0) THEN
lv_filename := substr(r_curr_item.file_name,1,instr(r_curr_item.file_name,'.',-1,1)-1)||'_thumb.gif';
END IF;
htp.p('Content-Disposition: inline; filename="'||lv_filename||'"');
owa_util.http_header_close;
wpg_docload.download_file(r_curr_item.thumbnail);
ELSE
-- start of thumbnail section
-- This section does not return an image ??????
SELECT thumbnail, mime_type, description
INTO lblob_dummy, lv_dummymime, lv_desc
FROM bvhe_portal.bvhe_item_types
WHERE 1=1
AND item_type_id = r_curr_item.item_type_id;
     owa_util.mime_header('image/gif', FALSE);
htp.p('Content-Length: ' || dbms_lob.getlength(lblob_dummy));
--htp.p('Content-Disposition: inline; filename="'||lv_desc || '_' || lv_filename||'"');
owa_util.http_header_close;
wpg_docload.download_file(lblob_dummy);
END IF;
ELSE
null;
--htp.p('Item could not be located.');
END IF;
CLOSE c_items;
END;
If anyone could help I would be most appreciative,
Thanks,
Mark

Hmmmm,
From a 10 minute look over, I can't see anything wrong. If your data was in an interMedia data type, you would be able to do a "checkProperties" to see if the image data was correct.
You might want to ask this question in the Oracle Portal forum that sopports the htp and owa packages.
Larry

Similar Messages

  • How to display Image as Error instead of Error Message from Resource Bundle

    hi,
    I want to display images as error instead of error message from Application Properties in struts1.1
    Ex:
    I want to prompt a user to type password length min. of 6 char. If failed, need to show simple image as error rather
    "Length should be min. 6".
    reagrds
    parthiban.

    BalusC wrote:
    RahulSharna wrote:
    in the respective resource bundle modify the value by something was below
    error.password.length=<img src="/images/password-Length.gif" alt="Password Length Issue" align="center"/>
    OK, it apparently allows HTML in error messages.Yes struts allows it :)

  • Incompatible image size error

    Hi,
    I had a program that was working, and then made a copy of it to make some changes.  The main change was to be able to put a BCG correction on the subtracted image.  Now for some strange reason I get an Incompatible image size error.  Can anyone help - also, if you could give me a suggestion soon that would be helpful as I have a deadline coming soon.
    I suspect that I'm missing something obvious, but can't work out what it is.
    Thanks for your help
    Sam Whitehead
    Attachments:
    error.jpg ‏23 KB

    Hi casualfanta,
    I understand that you are using I-16 type greyscale images, but your screen capture does not include the BCG part. I am assuming you are using the IMAQ ColorBCGLookup VI even though you don't need colour, because the input for the IMAQ BCGLookup (no colour) is of U8 type.
    If you are already using IMAQ ColorBCGLookup, then try using the IMAQ Cast Image VI to force a U32 type input and hopefully that'll solve the issue. Let me know if that helps!
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Labview 6.0.2 patch does not remove my "image.cpp" error

    I have an industrial PC with the following characteristics:
    * Sharp LQ10D367 10.4" TFT screen, running a VGA driver (16 colours only option)
    * ROBO 608, Industrial SBC motherboard with onboard video driver, from Chips and Technologies, 69000; 2MB onboard video memory
    The standard VGA driver is the most recent driver, and in fact the only one available for this hardware.
    Labview 5.1 runs without problem on this machine, but when I loaded Labview 6 (with the 6.0.2 patch) it came up with an "image.cpp error, line 4150" every time I tried adding a graph to the front panel. Changing the screen acceleration properties did not make any difference.
    Though I have gone back to version 5.1
    for the time being, my application would benefit substantially from the current version.
    Are there any fixes for this, or is Labview 6 simply not compatible with VGA screen drivers?
    Thanks,
    Jo

    I have LV6.0.2 running on an Arcom SBC with the Chips and Technology 69000
    HiQVideo 2MB display chip. This chip is not capable of rendering 3D graphics.
    I have noticed the CPU will go to 100% usage if I open a sub-VI panel with lots
    of the new 3D graphics on it, as the display chip passes rendering off to the
    main processor.
    Perhaps you could try replacing the LV6 3D graphics with the older versions
    that are available on the Controls pallet. At 16 colors the new graphics look
    terrible anyway.
    I am running the chip at 1024 X 768 screen resolution and 65K colors with
    no other problems.
    Regards,
    Alan Brause
    "Jo" wrote in message news:[email protected]..
    > I have an industrial PC with the following characteristics:
    >
    > * Sharp LQ10D367 10.4" TFT screen, running a VGA driver (16 colours
    > only option)
    >
    > * ROBO 608, Industrial SBC motherboard with onboard video driver,
    > from Chips and Technologies, 69000; 2MB onboard video memory
    >
    > The standard VGA driver is the most recent driver, and in fact the
    > only one available for this hardware.
    >
    > Labview 5.1 runs without problem on this machine, but when I loaded
    > Labview 6 (with the 6.0.2 patch) it came up with an "image.cpp error,
    > line 4150" every time I tried adding a graph to the front panel.
    > Changing the screen acceleration properties did not make any
    > difference.
    >
    > Though I have gone back to version 5.1 for the time being, my
    > application would benefit substantially from the current version.
    >
    > Are there any fixes for this, or is Labview 6 simply not compatible
    > with VGA screen drivers?
    >
    > Thanks,
    > Jo

  • Failure: "image.cpp", error 11602

    I'm developing an application in LabView and with the Web publishing tool I can visualizethe results in Internet. The problem is that I open the explorer (Netscape or Internet Explorer) the following message appears in the screen: "Failure, "image.cpp", error 11602, please contact with NI" and the explorer is close... It's labview 6.1

    eddie wrote:
    >
    > I'm developing an application in LabView and with the Web publishing
    > tool I can visualizethe results in Internet. The problem is that I
    > open the explorer (Netscape or Internet Explorer) the following
    > message appears in the screen: "Failure, "image.cpp", error 11602,
    > please contact with NI" and the explorer is close... It's labview 6.1
    A good general starting point is www.ni.com/failure . Worth looking at
    the specific tips (if any) for this error, and the general tips.
    Mark

  • Bad Image Data Error!

    Hi,
    I'm doing a project for a my class doing a simple sunrise/sunset program. I've noticed that if I either create simple images in fireworks and import them, or even images form the web, I get an error message saying "Bad Image Data Error!" and all the images turn to red squares.
    Any ideas of how to fix this? I don't want to have create images in flash.
    Thanks,
    Avi

    Oh and I forgot to add....I've experience this problem on both CS3 & CS4. Tried it on my desktop and laptop, both are Windows 7 64bit.

  • 40D raw .CR2 files still causing 'Unsupported Image File' error

    I have the most recent version of Leopard 10.5.1 and the newest version of Aperture 1.5.6 (2J2). Often times I open a RAW image shot with a Canon 40D (.cr2 file), I get the red screen "unsupported Image File" error message. Color mode is RGB. These were shot with RAW plus JPEG (not SRAW). It doesn't happen on every image shot at the same time in the same way, just some of the images. Can anyone advise why I would still be having this issue so long after Apple is offering 40D support? I've tried rebuilding my library data base to no success. I've tried reinstalling aperture. What next? Getting very frustrated, thanks!

    hi, sazer01
    sazer01 wrote:
    I have the most recent version of Leopard 10.5.1 and the newest version of Aperture 1.5.6 (2J2). Often times I open a RAW image shot with a Canon 40D (.cr2 file), I get the red screen "unsupported Image File" error message. Color mode is RGB. These were shot with RAW plus JPEG (not SRAW).
    I use Nikons and sometimes get a message like that. This might not be Aperture causing this. Blow out the connector holes on your memory cards and pins inside the cameras where the card connects. If the error is on the same frames all the time reformat your card a couple of times before using and make sure the card is seated properly. Don't turn off the camera immediately after taking the shot but let the camera finish the process of writing the photo frame onto the card.
    Have you opened the frames in Preview to check if it see it?
    victor

  • How to retrieve error message(s) after failed web service call

    Hi!
    I tried to create an item using the web service ego_item_pub.process_item and it worked ok (version 12.1.1). Sending the same request again, I got an error which should be ok since the item id already exists. The thing is, that I only get an "E" as return status:
    <X_RETURN_STATUS>E</X_RETURN_STATUS>
    <X_MSG_COUNT>1</X_MSG_COUNT>
    As described in the integration repository, there should be a parameter called msg_data which should contain the message if there is exactly 1 message, but I cannot find it.
    So, I tried to get the message using fnd_message.get, but the response of my web service call is:
    AuthorizationFailure : User not authorized to execute service. (I use sysadmin/sysadmin as ws security user).
    I use the following grant details:
    All Users     Direct     GLOBAL     Revoke Action Enabled
    SYSADMIN SYSADMIN     Direct     USER
    What else can I do or how can I retrieve error messages for a failed web service call?
    Thanks a lot,
    Konrad

    Hi Konrad,
    As we've found out, search the Integration Repository for internal name ERROR_HANDLER and use that. Letting the general public know the answer for this one!
    Regards,
    Gareth
    http://garethroberts.blogspot.com

  • Content-based image retrieval with SQL/MM Still Image

    Hi
    With ORDIMage signature matching being deprecated in 11g, does anyone have any experience of performing content based image retrieval with SQL/MM Still Image?
    Thanks
    Brian

    The details in that thread is the only information that can be shared.
    Melli
    Oracle Multimedia

  • Content based image retrieval using Oracle Multimedia

    I'm doing a thesis in which I'm trying to improve content based image retrieval, and using Oracle 11g Multimedia and I'm hoping to do CBIR system based on signature generated by Multimedia.
    To do my application I'm using  this documentation http://fildz.developpez.com/tutoriel/oracle-java/ordimage/
    Now I need to have an idea about the technique used to generate signature. In this link https://community.oracle.com/message/618866#618866, i find some indications like : texture histograms, global color, the Manhattan distance... so i look for a clear and rich documentation about generated signature in CBIR using Oracle 11g.
    Thank you

    The details in that thread is the only information that can be shared.
    Melli
    Oracle Multimedia

  • Where are APEX images retrieved from in an n-tiered environmen?

    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?
    Thank you.

    >
    Please update your forum profile with a real handle instead of "user601798".
    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?The answer (as usual) is "It depends".
    If you're using Glassfish and the APEX Listener (or OHS) then images referenced using <tt>/i/</tt> / <tt>#IMAGE_PREFIX#</tt> are stored on and retrieved from the web server file system. If using EPG then they're stored on and retrieved from the database using the XMLDB repository.
    If the image is referenced using <tt>#WORKSPACE_IMAGES#</tt>, <tt>#APP_IMAGES#</tt>, or declarative BLOBs then they're stored on and retrieved from the database.

  • "Bad image format" error when displaying an image on Nokia 6600

    I get a "bad image format" error when I try and display an image on a Nokia 6600 cellphone. The image displays correctly when I run it on the J2ME 2.1 Emulator, but gives an error on the phone. Plz help!!

    More info please... what kind of an image are you trying to display?

  • What's with the occasional "Unsupported image format" errors?

    I get this error randomly -- suddenly Aperture can't show me anything but a brief flash of the image, and then I get the maroon screen "Unsupported image format" error. Restarting Aperture returns things to normal. I've seen this in both version 1.5.6 and 2.
    I can count on this occurring about every hour or so. This is quite frustrating. I use CR2 files almost exclusively, written from a Canon 5D.
    Any ideas or workarounds for this behavior?

    I was getting this all the time with 1.5, I have not seen it yet with 2. I think it's a memory thing, it happens more quickly if I am running Safari and other stuff. Sometimes quitting Aperture then starting again does the trick, more often shutting the machine down and rebooting clears it. I also have some very large tiff's in the library, Aperture can't (I've not tried it in 2 yet) cope with them, always the unsupported error message. These files are between 300mb to 1gig, sometimes it justs hangs on to the 300mb but mostly not. By the end of the day it was a real problem, I could only export images 2-3 at a time, if I tried to email 10 low res I would get either an out of memory warning or unsupported etc.
    Something holds onto the memory somewhere either in Ap or Safari or all things running.
    Kevin.

  • Unsupported image format error

    Hey folks,
    I've read several older threads on this topic and have not seen any new information. I am hoping there is a fix and someone out there knows it.
    When I fired up aperture today I discovered that all of my images display with the dreaded unsupported image format error.
    Thinking that my 215gb library had gotten too large, I tried to create a new library. Same result. When I import new images from my Canon 40D they show as a tiny preview and then quickly turn to the red message. It appears the raw files are not even imported into the library.... which made me think permissions. I repaired permissions and went so far as to set my ~/Photos/ to 777 ... still no dice.
    I tried rebuilding my library - did not help
    I have tried restoring from TimeMachine backup - no help
    I deleted the plist and ~/Library/Application Support/Apreture - no help
    I'm getting really worried that I have lost my library. I understand that the files are still there, but what about my edits and metadata. Seeing that this is a wide-spread issue is not helping my situation.
    Any suggestions? Thanks in advance!

    Good questions and thinking! I was vague about the chronology.
    I first noticed the issue when I intended to import some images on my iMac which is home to my main 200+gb library. I never even got to the importing stage b/c I saw red, literally, when I launched the app.
    I then created a new library and tried to import.
    My final stage was to import onto the MBP, different machine, different library.
    As for updates, I had applied the Dec. updates to the iMac but not the MBP.
    While I know this will destroy my crediability as a troubleshooter (if you saw my images you'd know I have none as a photog ) I have realized that my Canon 40D somehow got switched into a custom mode during a few of the shots causing it to go into Canon's sRAW. I think that accounts for the behavior of the imported images on the MBP. It does not, however, account for my entire library turning red on the iMac.

  • Image.cpp error

    When I try to print the labview panel & diagram on my new canpn pixma iP1000 printer I get the following message. I am using LV6.0
    "image.cpp error" in line 11035. Please contact ni.com. Anyone can help!

    hi labview 1958,
    please look here:
    Failure: image.cpp, line 11035 in LabVIEW 6.0
    Greets!

Maybe you are looking for

  • Overflow field Representation is not getting in the crystal report viewer

    Hi , I am using Crystal report 2008 and Visual Studio 2008(C#) . In CR designer for number fields I am setting AllowFieldClipping to False(Un Checked) , It works fine in the Designer , but when I put the same report in CrystalReportViewer, the numeri

  • F Secure causing E7 to restart during updates?

    My E7 on Symbian Anna, has since the update and in last 10 days started to suddenly restart - sometimes as many as 6 times during a short span of time. This happens on not on all days, and sometimes even when it is on standby. Today I happened to not

  • MY PHONE IS POSSESSED!!!!!

    Something has taken over my phone.  For the past 4 days my Voice Dialing comes on and says, ``initializing`` then say a command, it then says no match found and goes back to the home screen.  THEN, this process carries on and does not stop all day! 

  • Add image in a specific point

    Hi! I'm new in swing... How can i load an image from a file and next click in my internalFrame (already created) and display the image in the point where i click? Thank you for the time.

  • Adobe application manager won't open

    I just subscribed to Adobe Cloud CC , but my download won't work because Adobe application Manager won't launch. Any suggestions ? Vic