ORDAudio and ORDVideo setProperties

Hi,
I am using ORDAudio and ORDVideo objects to store audio and video items in databse 11g.
when i call method .setProperties() as shown below:
byte[ ] ctx[ ] = new byte [4000][1];
VideoObj1.setProperties(ctx);
it is throwing exception as given below:
for Audio:
exception : java.sql.SQLException: ORA-29400: data cartridge error
AUD-00706: unsupported or corrupted input format
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 29
ORA-06512: at "ORDSYS.ORDAUDIO_PKG", line 154
ORA-06512: at "ORDSYS.ORDAUDIO_PKG", line 314
ORA-06512: at "ORDSYS.ORDAUDIO", line 1006
ORA-06512: at "ORDSYS.ORDAUDIO", line 975
ORA-06512: at line 1
and for Video:
exception : java.sql.SQLException: ORA-29400: data cartridge error
VID-00714: internal error
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 29
ORA-06512: at "ORDSYS.ORDVIDEO_PKG", line 191
ORA-06512: at "ORDSYS.ORDVIDEO_PKG", line 473
ORA-06512: at "ORDSYS.ORDVIDEO", line 1142
ORA-06512: at line 1
can anyone please help in fixing this issue?
When i remove the setProperties call from the code, code works fine and I am able to store my audio and video files in database.
I am trying to upload .mp3 file and .mp4 video file.
Thank You
Edited by: 896943 on Dec 3, 2011 1:32 AM

Supported formats are documented here: http://docs.oracle.com/cd/E11882_01/appdev.112/e10776/toc.htm (see appendix A and C). Audio .mp3 is not supported so you see that error. But video .mp4 is supported. The 'internal error' you are seeing indicates is a different problem. Is it possible that the file format is not really .mp4?
The data can be stored in the database whether or not the formats are supported. If the formats are not supported then the metadata attributes cannot be extracted.

Similar Messages

  • Support for CMYK and IPTC

    Can interMedia store CMYK colorspace images and images containing IPTC metadata?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Susan Mavris:
    Can interMedia store CMYK colorspace images and images containing IPTC metadata?<HR></BLOCKQUOTE>
    Any image, regardless of format and/or color space, can be stored in the interMedia ORDImage object type. Similarly, any audio or video can be stored in the ORDAudio or
    ORDVideo object type.
    If the format of the media being stored is natively understood by interMedia, we offer additional capability, namely attribute extraction and image processing.
    The ORDImage import method automatically calls the setProperties method to extract image attributes. This is a problem for formats that are not natively understood by interMedia. If the format stored in the format attribute of the ORDImage object begins with "OTHER", the import method will not automatically call setProperties after importing the image into the BLOB. This
    is how to avoid problems with importing CMYK and IPTC images using the ORDImage import method.
    Please take a look at the interMedia Annotator Utility. This utility, available on OTN, is capable of parsing IPTC metadata
    and uploading the metadata and the image into the database. Depending on what formats you're using, it may also be able to parse your CMYK color space images.

  • How to load and retrieve images from Portal. URGENT

    Dear all,
    I've designed a table with an ordsys.ordimage field for images. BIG MISTAKE, because there is no possibility to upload images from a form. I'd like to change it into a BLOB field but an error arises:
    "You cannot modify the column definition for types CLOB, NCLOB, BFILE, BLOBand Intermedia Object types(ORDSYS.ORDIMAGE, ORDSYS.ORDAUDIO, ORDSYS.ORDVIDEO). (WWV-17079)"
    Could I change it anyhow in order not to build a new table? I have a lot of forms referring to that table and I should change these forms too....(and we know it is pretty difficult)...
    I would appreciate any help.
    Tomas

    Tomas,
    Do you have any active constraints on that specific row? If the row is accessed by other forms (tables etc) you would need to disable them (for example foreign key constraints) and update the row (or remove and re-add it).
    Kostas

  • How to load and retrieve images from Portal!!!

    Dear all,
    I've designed a table with an ordsys.ordimage field for images. BIG MISTAKE, because there is no possibility to upload images from a form. I'd like to change it into a BLOB field but an error arises:
    "You cannot modify the column definition for types CLOB, NCLOB, BFILE, BLOBand Intermedia Object types(ORDSYS.ORDIMAGE, ORDSYS.ORDAUDIO, ORDSYS.ORDVIDEO). (WWV-17079)"
    Could I change it anyhow in order not to build a new table? I have a lot of forms referring to that table and I should change these forms too....(and we know it is pretty difficult)...
    I would appreciate any help.
    Tomas

    Tomas,
    Do you have any active constraints on that specific row? If the row is accessed by other forms (tables etc) you would need to disable them (for example foreign key constraints) and update the row (or remove and re-add it).
    Kostas

  • ORDVideo MPEG initialization

    Hi,
    I have problems with the initialization of the ORDVideo object while trying to use the Obj.import(ctx) and Obj.setProperties(ctx,TRUE) methods ( I get an "ORDVideoExceptions.VIDEO_PLUGIN_EXCEPTION"). The same methods are working with .avi & .mov files (which I use like external sources). In the Oracle documentation, on some places (not all) is mentioned that .mpg files are also supported with ORDVideo obj.type(& btw the ORDX_MPEG_Video package exists & is valid).
    I would really appreciate if someone can tell me where is the problem. Thanks in advance,
    Aleks

    It's Oracle 9.2i release. Btw, I found out(using the Intermedia Annotator) that the problem is in d parser - for .avi & .mov it works perfectly bcoz there are apropriate parsers but with .mpg Annotator is reporting : "Parsing of <file:D:\NASHI\SASE\AlienSong.mpg> ...
    Error:     {AnnotationHandlerException} Parse Failed with file:D:\NASHI\SASE\AlienSong.mpg
         {AnnotationFactoryException} No Annotation found for mime type: video/mpeg"
    I don't know how to "upload" a mpeg-parser within d Annotator. Thanks in advance

  • Seach and Play Realmedia files

    Hi Sir,
    I'm new to use intermedia for video.
    I did found examples on storing video in database.
    But we are also looking at making use of intermedia to do searching on real media files that is not stored inside Oracle database, by as OS files. What should I create or setup in this case? How should I create the index so that I can search the properties on the realmedia file, just like we can create index and search for contents inside text document or winword document.
    Would be very appreciated if some one can advice on this as soon as possible.
    Thanks.

    You can store the actual media files outside of the database as BFILEs and run setProperties() method.
    Depending on what kind of metadata you want to use, you can use the interMedia Annotator for metadata extraction and handling.

  • Re: abot loadDataFromFile method

    It's not giving you a "null exception", it's giving you a NullPointerException.
    PLEASE PLEASE PLEASE don't "interpret" error messages like that, cut and paste them; in far too many cases the details matter. In this case, I read your post 2 hours ago and didn't understand what you were talking about so I didn't reply. Later, I happened to bring it up again by accident, and I figured out you meant NullPointerException
    Of course it's giving a NullPointerException. Your code is:
    OrdVideo videoproxy=null;
    videoproxy.loadDataFromFile("E:\\ATHADU DVD SONGS\\athadu.AVI");You can't call a method of a null object (well, maybe a static method, but that's bad style even if it works, IMHO).
    Here's an example of how to do it, taken almost directly from the Oracle interMedia Documentation:
    http://download-east.oracle.com/docs/html/B14302_01/ch_websrvtier.htm#sthref124
    Please, READ THE FINE MANUAL!
    conn.setAutoCommit(false);
    // manufacture new interMedia objects by creating storage for them in the DB
    String query2 =
      "begin insert into pm.online_media " +
      " (product_id, product_photo, product_audio," +
      " product_video, product_testimonials) values" +
      " (3106, ordimage.init()," +
      " ordaudio.init(), ordvideo.init()," +
      " orddoc.init()) returning product_photo," +   
      " product_audio, product_video," +  
      " product_testimonials into ?, ?, ?, ?;end;";
    OracleCallableStatement cstmt =
    (OracleCallableStatement) conn.prepareCall(query2);
    cstmt.registerOutParameter(1, OrdImage._SQL_TYPECODE,
                                   OrdImage._SQL_NAME);
    cstmt.registerOutParameter(2, OrdAudio._SQL_TYPECODE,
                                   OrdAudio._SQL_NAME);
    cstmt.registerOutParameter(3, OrdVideo._SQL_TYPECODE,
                                   OrdVideo._SQL_NAME);
    cstmt.registerOutParameter(4, OrdDoc._SQL_TYPECODE,
                                   OrdDoc._SQL_NAME);
    cstmt.execute();
    OrdImage imgProxy = (OrdImage)cstmt.getORAData(1,
                         OrdImage.getORADataFactory());
    OrdAudio audProxy = (OrdAudio)cstmt.getORAData(2,
                         OrdAudio.getORADataFactory());
    OrdVideo vidProxy = (OrdVideo)cstmt.getORAData(3,
                         OrdVideo.getORADataFactory());
    OrdDoc docProxy = (OrdDoc)cstmt.getORAData(4,
                         OrdDoc.getORADataFactory());
    cstmt.close();
    // populate the objects with data from file
    String imageFileName = "laptop.jpg";
    String audioFileName = "laptop.mpa";
    String videoFileName = "laptop.rm";
    String docFileName = "laptop.jpg";
    imgProxy.loadDataFromFile(imageFileName);
    audProxy.loadDataFromFile(audioFileName);
    vidProxy.loadDataFromFile(videoFileName);
    docProxy.loadDataFromFile(docFileName);
    // store the loaded interMedia objects into the database
    String query3 = "update pm.online_media set" +
        " product_photo=?, product_audio=?," +
        " product_video=?, product_testimonials=?" +
        " where product_id=3106";
    OraclePreparedStatement pstmt = (OraclePreparedStatement)conn.prepareStatement(query3);
    pstmt.setORAData(1, imgProxy);
    pstmt.setORAData(2, audProxy);
    pstmt.setORAData(3, vidProxy);
    pstmt.setORAData(4, docProxy);
    pstmt.execute();
    pstmt.close();
    conn.commit();

    Thanks for u r help, thats great, i will tell the error messages properly next time, thanks again for u suggestion.
    I have a problem, i modified my code with your solution, the code is:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY bgcolor="pink">
    <%@ page import="oracle.ord.im.OrdVideo" %>
    <%@ page import="oracle.jdbc.driver.*" %>
    <%@ page import="oracle.sql.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.File" %>
    <%@ page import="java.util.Date" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*;" %>
    <CENTER>
    <%
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","indublin");
    try
    PreparedStatement ps =con.prepareStatement("INSERT INTO t1 (id ,vid) values(16,ORDSYS.ORDVIDEO.INIT( ))");
    ps.executeUpdate( );
    ps.close();
    con.setAutoCommit(false);
    Statement st=con.createStatement();
    out.println("gdjhg");
    out.println("gdjhg");
    OracleResultSet rs=(OracleResultSet)st.executeQuery("select vid from t1 where id=16 for update");
    out.println("gdjhg");
    rs.next();
    OrdVideo videoproxy = (OrdVideo)rs.getORAData("vid", OrdVideo.getORADataFactory());
    String videofile="CAMWIZ 15-APR-06 16=44=52.50.wmv";
    videoproxy.loadDataFromFile(videofile);
    out.println("gdjhg");
    byte[ ] [ ] ctx = new byte[1][64];
    videoproxy.setProperties(ctx);
    out.println("gdjhg");
    String updateSQL = "update t1 set vid=? where id=16";
    OraclePreparedStatement opstmt = (OraclePreparedStatement)con.prepareStatement(updateSQL);
    opstmt.setORAData(1, videoproxy);
    opstmt.execute();
    opstmt.close();
    con.commit();
    catch(Exception e)
    out.println(e.getMessage()+"I/O exception");
    %>
    </center>
    </body>
    </html>
    The problem in the code is, there r no errors, but the jsp page is not loading in the web server, it is loading continously, not stoping at all. What i changed is i kept yhe con.SetAutoCommit(false), after the insert statement, becuse i want to select the inserted record. How long it takes normally to load a video file in to database, i want u r help.
    Thanks,
    bye now.

  • How do I determine type?

    I'm working on a project where I would like users to be able to upload multimedia (audio, video, images) into the database using a web form, but I'm having some problems. Once a user has uploaded something, I need to figure out if it is an image, audio clip, or video so that I can create an OrdImage, OrdAudio, or OrdVideo. Does Oracle provide anything that will allow me to do this? I know I could use Java to check the MIME type of the uploaded file, but it seems to rely on the file extension to determine the MIME, and this doesn't seem especially reliable.
    Thanks for the help!

    Hi,
    I think what you really need here is the new ORDSYS.ORDDoc type, introduced in Oracle9i. The ORDDoc type is designed to hold media of any type (image, audio, or video), and can determine the MIME type of any recognized format. However, as I said, that is new with Oracle9i.
    For Oracle8i, you have a number of choices. One option would be to upload the data to a temporary BLOB, then use the interMedia relational interface to determine its type by calling the image, audio and video setProperties method. When one of the setProperties methods recognizes the format, you could store the data in an ORDSYS object of the appropriate type. Another approach might be to always store the data in a table in a BLOB, and always access and process the data using the relational interface.
    Having said that, please be aware that interMedia doesn't recognize all media formats, although we are adding new ones all the time. For example, new ones were added in Oracle8i 8.1.7 and in Oracle9i 9.0.1.
    Therefore, for those formats that interMedia doesn't recognize, you really have no option but to rely on the MIME type supplied by the browser, which is indeed based on the file name extension of an uploaded file. In fact, interMedia Java Classes for Servlets and JSPs does just this for unrecognized formats. If a call to setProperties fails, the store methods will use the browser-supplied value to set the mimeType attribute.
    In summary, if its likely that users will be mucking about with file name extensions, then I'd go with using the relational interface, in one manner or another, at least for 8i; for 9i, there's ORDDoc. Alternatively, generally speaking, using the media type component of the browser-supplied MIME type, will typically work in most cases.
    Hope that helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, how you are developing and deploying your application, and any new functionality you'd like to see added to Oracle interMedia. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected]. Thank you!
    Regards,
    Simon
    null

  • ORA-29541: class ORDSYS.oracle/ord/media/img/PropsAdapter could not be reso

    When running the demo for the product_media (pm) schema I get:<br><br>
    ERROR at line 1:
    ORA-29541: class ORDSYS.oracle/ord/media/img/PropsAdapter could not be resolved
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 814
    ORA-06512: at "ORDSYS.ORDIMAGE", line 89
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 901
    ORA-06512: at "ORDSYS.ORDIMAGE", line 572
    ORA-06512: at line 22I ran this code directly from the docs(section 2.1.4):<br><br>
    DECLARE
      img ORDImage;
      aud ORDAudio;
      vid ORDVideo;
      ctx RAW(64) := NULL;
    BEGIN
      -- Insert a new row into the pm.online_media table
      DELETE FROM pm.online_media WHERE product_id = 3003;
      INSERT INTO pm.online_media
             (product_id,
              product_photo,
              product_audio,
              product_video)
      VALUES (3003,
              ORDImage.init('FILE', 'MEDIA_DIR', 'laptop.jpg'),
              ORDAudio.init('FILE', 'MEDIA_DIR', 'laptop.mpa'),
              ORDVideo.init('FILE', 'MEDIA_DIR', 'laptop.rm'))
      RETURNING product_photo, product_audio, product_video
      INTO img, aud, vid;
      -- Bring the media into the database and populate the attributes 
      img.import(ctx);
      -- ORDImage.import also calls ORDImage.setProperties;
      aud.import(ctx);
      aud.setProperties(ctx);
      vid.import(ctx);
      vid.setProperties(ctx);
      -- update the table with the properties we have extracted
      UPDATE pm.online_media
      SET    product_photo = img,
             product_audio = aud,
             product_video = vid
      WHERE  product_id = 3003;
      COMMIT;
    END;
    /I did narrow it down to the Annotator.jar I believe, but I am not sure. I have uninstalled the ord schema and the JVM and then resinstalled...anyone have a clue?
    chet

    while running ord\im\admin\imchk.sql:
    ...snipped
    com.sun.media.jai.* Java package                   VALID
    com.sun.media.jai.mlib.* Java package              VALID
    com.sun.medialib.mlib.* Java package               VALID
    javax.media.jai.* Java package                     VALID
    oracle.ord.media.* Java package                    INVALID
    262 rows selected.
    interMedia installation is invalid
    PL/SQL procedure successfully completed.when installing (ord\im\admin\iminst.sql):<br><br>
    ...snipped
    BEGIN dbms_java.loadjava('-synonym -schema ORDSYS -resolve -grant PUBLIC ord/jlib/ordimann.jar'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures
    occurred during processing. Check trace file for details
    ORA-06512: at "SYS.DBMS_JAVA", line 222
    ORA-06512: at line 1
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    BEGIN dbms_java.loadjava('-synonym -resolve -schema ORDSYS ord/jlib/jai_core.jar ord/jlib/mlibwrapper_jai.jar ord/jlib/jai_codec.jar ord/jlib/ordimimg.jar'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures
    occurred during processing. Check trace file for details
    ORA-06512: at "SYS.DBMS_JAVA", line 222
    ORA-06512: at line 1ordimimg.jar has the PropsAdapter class. The trace file just say that it (each class) can't be resolved, with no other error message. I followed the README in the ord\Annotator directory setting up environment variables as well...

  • ORDImageSignature Invalid data type in Oracle 8i

    hi there,
    i have just started working on Intermedia, i am using Oracle 8i. i have configured the intermedia and executed the ordwebutl.sql file. all othe media data types are working perfectly like, ORDAudio, ORDImage,ORDVideo, but the ORDIMageSIgnature is not working at all. when i use it as data type in any table it says Invalid data type. which means oracle 8i is not recognizing ORDImageSIgnature at all. plz help me as soon as possible. Thanks in advance.

    The ordimagesignature is not something you can see or hear. It is strictly binary metadata about the image, used only to compare images to each other.
    What are you trying to do?
    Larry

  • Extending OrdMultiMedia

    I am trying to extend the OrdMultiMedia class similar to the provided ORDAudio, ORDImage and ORDVideo classes. However I get an error from JDeveloper :
    class document.ORDText should be declared abstract; it does not define method getContentLengthAPI() in class oracle.ord.media.OrdMultiMedia
    I have included the declaration :
    String getContentLengthAPI() {}
    in my class, so I don't understand why it is complaining.
    The full class skeleton follows :
    package document;
    import java.sql.*;
    import oracle.ord.media.*;
    public class ORDText extends OrdMultiMedia {
    public ORDText() {
    String getMediaType() {
    return "OrdText";
    String getFormatStr() {
    String getUpdStr() {
    String getSourceStr() {
    String getContentLengthAPI() {
    public int getContentLength() throws SQLException {
    public void flush() throws SQLException {
    public void refresh(boolean forUpdate) throws SQLException {
    null

    Hi Les,
    it is not documented well because it was necessary to document, by Oracle's doc guidelines, but was never intended to be used in the manner you are trying to use it. In fact, since these classes were made, jpublisher has come along and changed the "standard" interface used for accessing object relational types. You can expect to see new classes soon on technet that are somewhat different from the java classes that exist today. The new java classes don't include an ORDMultiMedia type.
    Larry

  • ORDSYS.ORDIMAGE vs BLOB

    Dear all,
    I've designed a table with an ordsys.ordimage field for images. BIG MISTAKE, because there is no possibility to upload images from a form. I'd like to change it into a BLOB field but an error arises:
    "You cannot modify the column definition for types CLOB, NCLOB, BFILE, BLOBand Intermedia Object types(ORDSYS.ORDIMAGE, ORDSYS.ORDAUDIO, ORDSYS.ORDVIDEO). (WWV-17079)"
    Could I change it anyhow in order not to build a new table? I have a lot of forms referring to that table and I should change these forms too....(and we know it is pretty difficult)...
    I would appreciate any help.
    Tomas

    And you are possible to display blob from table in form s image item?
    I tried this, but it didn't go, can you tell me, how did you do?

  • Looking forward a help  from Sniper13

    To Sniper13:
    Several days ago ,I read the answers you give for the performance problem with oracle database .There ,you mentioned you run a example and solved the problem.
    Now I am working with a Multimedia DataBase . Until now, I have successfully use a proceduer to store the Video Data into Oracle.But I used the BufferedOutputStream to store the data in the form of bit_stream into database through JDBC . Now ,I must find out a way to play the data I had stored . I spend several days to read the JMF Guider,but I am not very clear about the way I can pull the data from the database to the DataSource to Create a player . I just download a sample code from sun which can play the video I stored in my disk . I need your help .
    thanks ,

    Thanks a lot for your good advice. Follow your advice ,I read the Oracle intermedia doc,and I understand how to play the OrdVideo object through JMF .
    But, after reading that doc,I am a bit confused about the BLOB class and OrdVideo &Ordaudio class. At first ,I store the video data into the database as a stream .But ,form the doc,If I want to play it in jmf,I must store it as a OrdVideo object . I am not sure about the difference between BLOB object and OrdVideo object. I am sure there must be some relationship between BLOB and Ordvideo class,but I can't understand it very well.
    I hope you can give me some explanations about the difference of blob object and Ordvideo object ,and there relationships .
    If I want to store the video as Ordvideo object ,How?
    thanks again for you worm_hearted help!!

  • Error on start uploading a file?

    hi,
    when i tries to define ORDAUDIO,ORDIMAGE,ORDVIDEO to a database field, i keep getting the error "invalid specification of chunk value for lob storage of coloumn.its minimum value for this database is 8192".
    please tell me how to define intermedia fields in my database tables?
    thank you.

    Hi,
    I'm afraid I don't really understand your environment.
    First we need to understand the version of the database you are using. When you say:
    C:\> sqlplus scott/tiger
    SQL*Plus: Release 8.1.7.0.0 - Production on Fri Jun 29 10:01:22 2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.1.1 - Production
    With the Partitioning option
    JServer Release 8.1.7.1.1 - Production
    SQL>Please start SQL*Plus and provide the version information that it displays.
    Next, we should try creating a simple image table using SQL*Plus and using all the defaults. For example:
    SQL> CREATE TABLE myimages ( id VARCHAR2(10), image ORDSYS.ORDImage );Alternatively, for an existing table, such as:
    SQL> CREATE TABLE myimages ( id VARCHAR2(10) );try adding an image column as follows:
    SQL> ALTER TABLE myimages ADD ( image ORDSYS.ORDImage );If that works, then the issue is with the wizard tool you are using. In that case, you need to contact Oracle support and provide full information about the tool you are using and the steps you followed when you tried to create the table. If that fails, then please supply full details of the error message that is displayed.
    Please let us know what you find.
    Regards,
    Simon
    null

  • Downloading BLOBs in a report

    I tried to put a link to a downloadable column on a table ( a blob ) on a report.
    If you insert an element and then you try to list it in the report, the link works, and you download the file you entered. Buty if you close your session, and reopen it... at the time you try to download the file you get and error
    Tue, 17 Apr 2001 13:54:41 GMT
    ORA-01403: no data found
    ORA-06512: at "PORTAL30.WWA_API_MODULE_STACK", line 124
    ORA-06512: at "PORTAL30.WWA_APP_MODULE", line 1495
    ORA-06512: at "TDCINTRANET.FILE_DOWNLOAD", line 13
    ORA-06512: at line 8
    DAD name: portal30
    PROCEDURE : TDCINTRANET.file_download
    URL : http://debian.netjuice-network.com:7777/pls/portal30/TDCINTRANET.file_download?p_block=DEFAULT&p_object=DATA&p_ID=Unai%20Mantenimiento
    PARAMETERS :
    ============
    p_block:
    DEFAULT
    p_object:
    DATA
    p_ID:
    Unai Mantenimiento
    When you UPDLOADED a file in the same session, everything works fine for all the blobs in the table.... but if you DON't UPLOAD anything in the same session.... portal crashes the way I showed....
    Any advice?
    null

    Unai,
    1. Oracle Portal does support (in both forms and reports) interMedia object types for audio, video and image documents. So, if your table contains ORDIMAGE, ORDAUDIO or ORDVIDEO columns they will be recognized when you build a form or report on that table. interMedia provides better control over those types of documents than standard BLOBs.
    2. The APIs of WWA_APP_MODULE are internal forms APIs and should not be called directly by user code.
    3. If you looked at the generated forms package, you probably have an idea how to download a BLOB data, here is an example to replace the code you have:
    procedure download_1
    p_rowid in varchar2
    is
    l_size integer;
    l_blob blob;
    l_tmpblob blob;
    l_mimetype varchar2(4000);
    l_rowid urowid;
    begin
    htp.init;
    l_rowid := p_rowid;
    SELECT MY_BLOB
    INTO l_blob
    FROM SCOTT.EMP1B
    WHERE ROWID = l_rowid;
    l_size := dbms_lob.getlength(l_blob);
    dbms_lob.createtemporary(l_tmpblob,true);
    dbms_lob.copy(l_tmpblob,l_blob,l_size,1,1);
    owa_util.mime_header('image/gif', false,null);
    htp.p('Content-length: '&#0124; &#0124; l_size);
    htp.p('Pragma: no-cache');
    htp.p('Cache-Control: no-cache');
    htp.p('Expires: Thu, 01 Jan 1970 12:00:00 GMT');
    owa_util.http_header_close;
    wpg_docload.download_file(l_tmpblob);
    dbms_lob.freetemporary(l_tmpblob);
    exception
    when others then
    owa_util.mime_header('text/html', false);
    htp.p('Content-length: 0');
    owa_util.http_header_close;
    end download_1;
    Hope this will help.
    Thanks,
    Dmitry
    null

Maybe you are looking for