BLOB problem (image storing or image curruption)

AOA!
I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
Please help us in this regard. We will be thankfull to you.
Usman Rana
Dont reply to above mantioned email my actual email account is [email protected]

hello,
these are very specific questions about forms and reports functionality. i would suggest you publish this
question in the forms and reports forum.
regards,
philipp

Similar Messages

  • Blob problem (Image storing or Currupted )

    AOA!
    I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
    SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
    It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
    The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
    Please help us in this regard. We will be thankfull to you.
    Usman Rana
    Dont reply to above mantioned email my actual email account is [email protected]

    hello,
    these are very specific questions about forms and reports functionality. i would suggest you publish this
    question in the forms and reports forum.
    regards,
    philipp

  • Blob Problem (image not store or currup in database)

    AOA!
    I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
    SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
    It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
    The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
    Please help us in this regard. We will be thankfull to you.
    Usman Rana

    I have a mistake , the right code is :
    <listobject:create name="mylist" columns="field,value" />
         <listobject:addrow name="mylist">
              <listobject:argument name="field" value="historyAttr1" />
              <listobject:argument name="value" value="1234" />
         </listobject:addrow>

  • Display BLOB/CLOB image data in OBIEE 11g

    Dear Gurus,
    I want to display employee profile picture in dashboard, the image data was saved as blob/clob image.
    How to configure and display it in obiee?
    Regards
    JOE

    Hi
    Thanks for your quick response.
    actually im not using EBS, im just using publisher with OBIEE 11g.
    if explain step by step what you wrote first replay-
    Let i have a table with one BLOB column.
    1) first load blob data to my table
    2) create data model from oracle publisher.
    3) change the xdm file with above tagline , my xdm file is in below link-
    C:\mw_bi_home\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\catalog\SampleAppLite\root\shared\zia%2exdm
    i don't know is that right step? because if i re-open the xdm file after change by your given tagline its shows error.
    I will grateful to you please give me a little explanation which file i can put the following tagline.
    _<fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMAGE_ELEMENT"/></fo:instream-foreign-object>_
    Thanks again and waiting your feedback -
    @zia

  • Problem with storing and retriving a different langauge font in mysql

    hi,
    i have problem with storing and retriving a different character set in
    mysql database ( for example storing kannada font text in database)
    it simply store what ever typed in JTextField in database in the
    formate ??????????? and it showing ???????? .
    please what can i do this problem.
    thanks
    daya

    MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
    1. make sure you know what character set is used for the database table.
    2. make sure you know what character set is used by Java (default to UTF-8 ..
    sort off - there are few character that it cannot save). You can enforce the
    character set being sent to the database by the String's getBytes(String charsetName) method.
    3. make sure the application you use to view the table use the correct character set
    if it use a different character set, then any character that it does not recogized
    will be replaced with a quetion mark '?'....eventhough the data is correct.

  • Problem in storing JAPANESE character in DB 10g

    All,
    I have problem in storing data in Db.
    I used page directive in JSP like
    <%@ page contentType="text/html; charset=iso-2022-jp"%>
    in jsp screen in will get JAPANESE character but in DB I found some JUNK but reteriving the same in jsp it shows correct JAPANESE character...
    Any one help me please.
    I used Hibernate
    Thanks and Regards
    Babu

    You have probably posted in the wrong forum. Try the JDeveloper forum: JDeveloper and ADF

  • Problem in storing JAPANESE character in DB 10g charset iso-2022-jp

    All,
    I have problem in storing data in Db.
    I used page directive in JSP like
    <%@ page contentType="text/html; charset=iso-2022-jp"%>
    in jsp screen in will get JAPANESE character but in DB I found some JUNK but reteriving the same in jsp it shows correct JAPANESE character...
    Any one help me please.
    I used Hibernate
    Thanks and Regards
    Babu

    Hai John..Thanks for ur reply.
    In DB NLS_CHARACTERSET is JA16SJIS.
    Want to change it?
    Please guide me.
    Thanks in advance.
    Babu

  • Having problem with storing data in array

    Hi,
    I'm having problem on storing data in array. My problem is that each time it loops, the array just keep overwrite instead save to the next index. Like at 0 the value is 123, and 1 is 234. But i having that all data capture all overwrite at 0 till the last data it still show at 0. How do i correct this problem?
    Solved!
    Go to Solution.

    How to use array to do comparison? Like Array 1 go thru array 2 to get data Loss out and build an array. Like Array 1 ,1000,1024,1048,etc before 1520 fall in between Array 2 range 1000-1500. So Freq 1000,1024,1048 etc will get Loss value as 1 and 1520 fall in between 1500-2000 will output Loss 2. and so on till the end of the list. How should do this? Need help on this.
    Array 1                                                Array 2
    Freq                                              ​     Freq   Loss
    1000                                              ​    1000      1
    1024                                              ​    1500      2
    1048                                              ​    2000      3
    1100                                              ​     :
    1200                                              ​     :
    :                                                 ​        18000
    1520
    18000

  • Blob Problem (storing Images)

    AOA!
    I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
    SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
    It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
    The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
    Please help us in this regard. We will be thankfull to you.
    Usman Rana
    Dont reply to above mantioned email my actual email account is [email protected]

    I think that both your SQL is wrong and your intended use is wrong. According to the SQL reference, the following seems to be a simplified definition that seems to match what you're trying to do. UPDATE &lt;table&gt; SET &lt;column&gt; = &lt;expr&gt;. So PROPERTIES should be a &lt;table&gt; of some kind and X should be a &lt;column&gt; of that table. This changes your PreparedStatement to *"UPDATE PROPERTIES SET X = ? WHERE NAME = ?"* Then you can do ps.setBlob(1, b) and ps.setString(2, ...). Because your statement is DML you must do ps.executeUpdate(). So your code might look something like this.
    Blob b = ...;
    String x = ...;
    ps = c.prepareStatement("UPDATE PROPERTIES SET X = ? WHERE NAME = ?");
    ps.setBlob(1, b);
    ps.setString(2, x);
    int i = ps.executeUpdate();
    The executeUpdate() returns the row count (i.e. number of rows) of your DML statement. Try that and see if it helps.

  • (Blob Column) Image in email

    Hi All,
    I am using Oracle 11g.
    Can anyone please provide any link or code of adding an Image which is stored in the DB Blob column of a table to an Email.
    Email is being sent through Pl/sql procedure written for it.
    Please let me know if you need any more info.
    Thanks in advance
    Shoaib

    Hello Shoaib,
    where is your problem,
    reading the BLOB from db?
    Encoding it {message:id=10364104}?
    Attaching it?
    Anything else?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=attachment&objID=f75&dateRange=thisyear&userID=&numResults=15&rankBy=10001
    Regards
    Marcus

  • Display blob field image in Oracle Express

    Hi,
    I upgraded the apex in my Oracle express edition to 3.2 and tried to display image in blob field following the step in the Apex tutorial,
    but the error '*The requested operation is not allowed* ' prompt.
    I save the image file in a table with fields mime1,picture1=> blob field.
    I created a problem as follow:
    CREATE OR REPLACE PROCEDURE download_my_file(p_hotel_id in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --execute immediate
    --'SELECT MIME_TYPE'||to_char(p_picture)||', picture'||to_char(p_picture)||', '||to_char(p_picture)||',DBMS_LOB.GETLENGTH(blob_content) '||
    --'INTO v_mime,lob_loc,v_file_name,v_length FROM hotels_pic '||
    --'WHERE hotel_id = '||to_char(p_hotel_id);
    select mime_type1,picture1,'test/picture1',DBMS_LOB.GETLENGTH(picture1)
    INTO v_mime,lob_loc,v_file_name,v_length
    from hotels_pic where hotel_id=1;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'),FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment;
    filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    GRANT EXECUTE ON download_my_file TO apex_PUBLIC_user;
    GRANT EXECUTE ON download_my_file TO public;
    I tried display the image by using <img src="#OWNER#.download_my_file?p_hotel_id=1" height=60 width=40 /img>
    But the image don't display...
    if I type http://127.0.0.1:8080/apex/HOTEL.download_my_file?p_hotel_id=1 to display the picture , the error " Forbidden,The requested operation is not allowed" prompt.
    Am I miss out anything? Anyone can help?
    Thanks
    Vincent

    Hi,
    I use a slightly difference code to display images: [http://apex.oracle.com/pls/otn/f?p=267:11]
    It is possible that your GRANT command needs to be for PUBLIC instead of public - some things are case-sensitive.
    Also, have you checked in SQL Workshop, Object Browser, Procedures to see if your procedure is valid?
    Andy

  • Generating full-size image from thumbnail using BLOB DB images

    Hi all,
    Assuming that all necessary steps were taken in other posts and tutorials to display images on a web page from BLOB objects stored in an Oracle 10g DB, how is it possible to set the size of the created images (from the servlet that creates the image file from BLOB) so that it is smaller than the actual image in the DB. the user would then have to click the image to open the full image.
    would this be done by possibly creating 2 servlets, one that displays a smaller version, and one that displays the actual image?
    i don't see how this can be done since the url property of each image is bound to the url of the servlet. If the thumbnail has a url pointing to image produced by thumbnail servlet, would i assign an action handler for clicking the image that redirects to a url given by the full size image servlet? or should i use an image hyperlink instead?
    any help is always appreciated!

    Suggest you take this one step at a time.
    1. Create a database and store your images in it. (Or write the upload mechanism if you need it).
    2. Display your full size images.
    3. Display your full size images as thumbnail size. (Performance will not be good but you'll have results.) Creator allows you to set image size independantly of the size of the underlying image.
    4. Modify the servlet you wrote in step three to optionally reduce the resolution (or quality) based on an input parameter.
    References: Steps 1 -3
    http://blogs.sun.com/sakthi/entry/how_to_upload_and_retrieve
    Step 4
    http://java.sun.com/developer/onlineTraining/javaai/jai/RenderableScaleFrame.html
    Or possibly some other library.

  • Problems while storing a BLOB

    Hi
    I need to store a blob in a MS Access db while receiving a mail, but I can't arrive!
    This is my code, could anyone help me?
    Many thanks in advance.
                             Blob blob = null;
                             PreparedStatement pst2 = con.prepareStatement("INSERT INTO TMail (Allegato, NomeAllegato) VALUES (?, ?)");
                             pst2.setBlob(1, blob);
                             pst2.setString(2, "prova");
                             pst2.executeUpdate();
                             con.commit();
                             PreparedStatement dbQuery = con.prepareStatement("SELECT Allegato " +
                                       "FROM TMail WHERE NomeAllegato = " + "'prova'"); //primaryKey);
                   ResultSet rs = dbQuery.executeQuery();
                   rs.next();
                   blob = rs.getBlob("Allegato");
                   OutputStream outstream = blob.setBinaryStream(1L);
                    long size = blob.length(); // sarebbe getBufferSize()
                    byte[] buffer1 = new byte[(int)size]; // occhio al cast!
                    int length = -1;
                    while((length = in.read(buffer1)) != -1)
                             outstream.write(buffer1, 0, length);
                    outstream.close();
                    PreparedStatement pst1 = con.prepareStatement("INSERT INTO TMail (Allegato) VALUES (?)");
                     pst1.setBlob(1, blob);
                     pst1.executeUpdate();
                     con.commit();
                     ... then I'm uploading the others fileds into a db.Maybe is possible to store the blob withut to reserve an empty space while uploading the others fields?

    This post will not solve your problem.
    However, MS Access IS NOT a database, it is an
    application that mimics relational databasebehavior,
    but a database it is not. There are formal definitions of databases and at
    least to some extent MS Access meets the definition.I believe at to be a true database, you must provide for multiple users to access the db via network protocols, independent of the OS. Access doesnt do that. JMO.
    >
    Secondly, whenever I tried
    to use MS Access and Java via the JDBC-ODBC Bridge
    during my college career, I had nothing butproblems.
    And which of the following did you have problems
    with?
    1. The ODBC driver itself?
    2. Understanding what the bridge, the MS Access ODBC
    driver and what MS Access allows?
    3. Something else that has nothing to with MS Access
    but instead might apply to any database?
    Most of our problems were related to the JDBC-ODBC bridge and the underlying system DSN. We also had numerous problems after executing even the simplest of select querries, we would end up with empty result sets. Once we switched to MySQL and the Connector/J, the problems went away.
    Another problem was the schools policy of not allowing us to save data on any computer. We could install software and save files, but as soon as the 'puter was turned off, the HDD was restored to the original image 'approved' by the school. For our senior capstone courses we were susposed to design, develop, and deploy a system to solve some problem. We were free to choose the topic. Given the computer policy it was a waste of time unless you used Microsoft Access. We couldnt even save DSN's on the schools puters nor change the time of the system.
    Further, I did some research on the web and the
    prevailing view I discovered was not to use MS
    Access.I believe you will find many more opinions that you
    shouldn't be using java but instead should be using
    C# or C++.
    So what language do you program in?Java 2 SE
    >
    hope you find a solution to your problem. In
    addition, a small piece of advice for you in the
    future would be to use MySQL (you can downloadfree)
    and or Oracle 10g (also a free download). Presumably you are addressing the needs of a student,
    because a business can not use Oracle for free. Even
    a minimal install is quite expensive.Yes, I assumed this was a student project as the OP mentioned something about a test/project.
    I am also guessing the OP's school is heavily vested with Microsoft's products such as the Office suite, Visual Studio, and even the class registration web sit did not function correctly without IE5 or better. I normally use Firefox and I always had to register using IE.
    >
    And I haven't checked recently but at one time that
    was potentially true for MySQL as well.I believe MySQL uses a dual licensing model. If you develop a GPL open source application, its free. If you release some comercial product that uses MySQL, you must buy a license.
    Most of the time I am using the DB's at home for educational / proof of concept type stuff. For school projects. I do not believe there is any problem. However, if the project is soo good that it can be comercially used, then by all means buy a license.
    >
    Both also require installs (of the database itself)
    into the production environment. MS Access on a
    windows box does not require that.
    I dont understand what you are saying. MySQL runs fine on my laptop. Also whats to prevent a company from deploying to a test / development environment prior to roll out? Other than money that is.
    Those are
    both true databases. Please before anyone screams
    at me about database X or Y... I know there are a
    myriad of others out there but Oracle and MySQLare
    the 2 biggest dogs out there competing with
    Microsoft.
    >
    The competition with those would be MS SQL Server and
    not MS Access. And MS SQL Server also is "free" at
    least in the same way that Oracle is.Thats cool. The last time I had looked all the SQL server downloads were time limited to like 90 days. But that was several years ago.

  • After Effects CC 2014 problem: Image from frame from the last Premiere CC-After Effects link permanently burned into new project compositions.

    One frame from one of the clips I sent from Premiere to After Effects through "replace with After Effects composition" was permanently burned in After Effects and now it appears in every new composition of every new project I create as the background of such composition. 
    For example, I sent from Premiere a clip of a building to After Effects for color correction with Finesse, and warp stabilization and then after rendering, finishing, and closing all the applications, now, every time I open After Effects for any other project, whether already-created or brand-new, every existing or newly created composition (in a Mac Command N) you see the image of the building as the background of the composition.  If you create a new composition, while it remains empty of any layers, you see the image of the building.  If you have an already-created composition with layers, when you turn off all the eyes of the layers, you would expect to see black (nothing) in the composition window (if that's the color you assigned to be as the background of the comp), but instead you see the building.  If you change the color of the comp's background in Composition Settings, you still see the building as the background.  If you render such empty composition (no layers) you render out the image of the building, not black.  I tried clicking everywhere and going through the preferences, and even uninstalling the application and re-installing it, but it seems to be permanently burned in into every comp's background.
    Please, any ideas of what's going on and how to get rid of it?
    Thanks so much for your help,
    RR.

    Thanks so much Dave.  It fixed the problem.
    Raoul.

  • Colour profiles problem - images saving too dull. Please help.

    I realise you have probably had this question a million times before and I have looked at enough related threads, but I am still at a loss as to what to do. Please note I'm not the most computer-savvy.
    For the record I am using Photoshop 7 (yes it's old, but it suits my needs just fine!) and Windows Vista Home Premium.
    What I do is take photographs of my artworks, edit them in Photoshop until they look accurate, then post them online. Images have always looked identical in every program, and I had never had any problems, until I got connected to the Internet on Tuesday. This computer has not been connected to the net for a good few years, and so lots of updates got installed. I'm not sure which ones exactly, as my boyfriend took care of that, but I'm convinced this has caused the problems I am having now:
    First I found that an image I had edited and saved as .jpg for web use was showing up overly saturated and contrasty in the Windows Photo Gallery preview. I assumed I had saved it wrongly. I re-opened the jpg in Photoshop to check - it looked exactly as I had saved it. I figured something had messed up with Photo Gallery during updates, so I uploaded the jpg to the Internet. The image that uploaded was the overly-saturated, contrasty one.
    After realising that suddenly ALL the images I had uploaded online, and all the images saved on my computer, now had this awful over-saturated look, and yet the thumbnails on my desktop looked fine... I realised it must be something to do with the colour profiles, and tried to find out the answer online. My monitor colour profile was set to "21.5 inch monitor" so I changed that to sRGB as default. I can't remember what Photoshop was set to, but at any rate I set it to sRGB also.
    I thought I had it fixed, as it seemed to just be Photo Gallery that was not matching up (it was displaying my images with less saturation than as I saved them).
    However today I took a new photo of a drawing I'm working on, to load onto my blog. I had to take it into Photoshop to make edits and correct, as always. I opened my photo in Photoshop... lo and behold, far too contrasty and saturated!!
    This time, Windows Photo Gallery preview is showing the (unedited, straight out of camera) photo as it should be... Photoshop opens it too contrasty.
    I made my edits anyway, saved for web as .jpg, checked the jpg in Photo Gallery before uploading... It saved duller than it should have done!
    Uploaded the jpg to the internet... and I have the dull image uploaded.
    So first they were too contrasty, now they're too dull. I have tried to follow advice given on similar topics, to no apparent avail.
    Being an artist who displays work online and has a certain reliance on the internet... my images have to be accurate and consistent all the way through. Is there anything I can do to set things back to the way they were before?
    I appreciate any help.

    eartho - All my images are already converted to the sRGB colourspace by default, as far as I can tell. My images out of camera, the ones I have edited and saved as jpg - I even checked some old images. Through Mode/Convert to Profile, they're all already set to sRGB.
    emil emil - Thank you. I will do that in the morning - right now my head hurts and I need my bed.

Maybe you are looking for

  • How to back up my files?

    Hi there, I would like to backup the files (photos, IDs, mail, music, word documents) on my computer, and format my drive. I've read a lot of threads about backing up, but I'm still confused. I have an external drive. Can I just buy something like "S

  • Regarding connection reset exception in socket

    hi, I am using java socket on one side and c socket on other side iam trying to send data and recieve from it but i got error socketexception connection reset by the peer, Environment which i am using to open a socket is websphere studio test environ

  • Itunes is finally opening, but problem reoccurs after turning off computer

    so I previously had a problem with my itunes program not opening. However, after searching through other discussions, I learned about the misconfig solution. And that got my itunes program working long enough to update my ipod. But now that I have sh

  • "........iMac is not supported on the iPhone

    I have an older iphone - 2 I think.  When I try to connect the bluetooth I receive a message on the iphone, ".........iMac is not supported on the iPhone" Does anyone have a solution.  Both the iphone and imac can find each other, the iphone just wil

  • Page Item with Date format DD-MON-RR - APEX 32

    Hello, I am passing date parameter but somehow it is not formatting date properly on calendars. For e.g. Below is my calendar query select distinct count(*) knt, initcap(username) username, to_date(to_char(trunc(timestamp),'DD-MON-RR'),'DD-MON-RR') t