Limitations with interMedia with ORDSYS.ORDImage.process()?

Hello,
We are currently writing an Apex application that will allow our users to upload pictures to the database. We have been using interMedia to manipulate them as we want to create thumbnails etc. We have one picture that just won't scale down at all. We are using blobs to store the images on the database. We are using the command:
ORDSYS.ORDImage.process(l_thumb, 'maxscale=160 160');
and as I say most of the images are scaling but some are not. The image details is by using ORDSYS.ORDImage.getProperties:
MIME Type: image/jpeg
Width: 3292
Height: 3279
File Format: JFIF
Content Format: 24BITRGB
Compression Format: JPEG
Content Length/Size: 3634347 (bytes)
As I say when I try and do the process command it makes no difference as the thumbnail properties are the same as the original properties.
If so is there anyway around this?
Thanks,
Paul.

Hi there.
We are trying to do this in PL/SQL and was wondering if it did write anything to a exception table?
Here is the code that we use:
declare
l_page blob;
l_web blob;
l_thumb blob;
L_TEMP_BLOB BLOB;
TEMP_ID INTEGER;
AMOUNT INTEGER;
l_mime VARCHAR2(250);
begin
IF (:P2_FILE_NAME is not null)
THEN
SELECT blob_content a, mime_type
INTO L_TEMP_BLOB, l_mime
FROM HTMLDB_APPLICATION_FILES
WHERE NAME = :P2_FILE_NAME;
INSERT INTO PL_IMG_DATA(img_data_id, title, location, img_date, grid_ref, orig_img_loc, description, staff_number,unit_id, mime_type, file_name)
VALUES (PL_IMG_DATA_SEQ.nextval, :P2_TITLE, :P2_LOCATION, :P2_DATE, upper(:P2_GRID_REF), :P2_ORIGINAL_LOCATION, :P2_DESCRIPTION, :P2_STAFF_NUMBER, :P2_MAN_UNIT, l_mime, :P2_FILE_NAME)
RETURN img_data_id into TEMP_ID;
COMMIT;
UPDATE PL_IMG_DATA SET THUMBNAIL = EMPTY_BLOB(), WEB_IMG = EMPTY_BLOB(), PAGE_IMG = EMPTY_BLOB()
WHERE IMG_DATA_ID = TEMP_ID;
COMMIT;
SELECT THUMBNAIL, WEB_IMG, PAGE_IMG
INTO l_thumb, l_web, l_page
FROM PL_IMG_DATA
WHERE IMG_DATA_ID = TEMP_ID
FOR UPDATE;
amount := dbms_lob.getlength(L_TEMP_BLOB);
DBMS_LOB.copy(l_thumb, L_TEMP_BLOB, AMOUNT, 1, 1);
DBMS_LOB.copy(l_WEB, L_TEMP_BLOB, AMOUNT, 1, 1);
DBMS_LOB.copy(l_PAGE, L_TEMP_BLOB, AMOUNT, 1, 1);
ORDSYS.ORDImage.process(l_thumb, 'maxscale=160 160');
ORDSYS.ORDImage.process(l_web, 'maxscale=320 320');
ORDSYS.ORDImage.process(l_page, 'maxscale=640 640');
UPDATE PL_IMG_DATA SET THUMBNAIL =L_THUMB, WEB_IMG = L_WEB, PAGE_IMG = L_PAGE
WHERE IMG_DATA_ID = TEMP_ID;
COMMIT;
DELETE FROM HTMLDB_APPLICATION_FILES
WHERE NAME = :P2_FILE_NAME;
END IF;
END;
As we say it seem to work for images that are a certain size but anything that is roughly over 3,500 KB it doesn't scale it down.
We were wondering if the this is a version problem as we are currently on Oracle 9.2.0.8.0?
We did manage to scale it down when we used a TIFF but then the application didn't display it so we converted the scaled down image back to a jpeg. This seems a bit mad to do right enough,

Similar Messages

  • How to populate a table with ORDSYS.ORDImage item by BLOB item?

    Hi, I have a table, that contain blob column and another table with ORDSYS.ORDImage column and I would like to populate ORDSYS.ORDImage item in table by BLOB item, in which I have store some images?

    You should be able to do something like (this is off the top of my head, so please excuse any compile errors...):
    define
    b blob;
    i ordsys.ordimage;
    begin
    INSERT INTO ordsysImgs VALUES (1,ORDSYS.ORDImage.init());
    select imgCol into i from ordsysImgs where ID = 1 for update;
    select blobcol into b from blobImgTable;
    i.source.localdata := b;
    i.setlocal();
    i.setproperties();
    update imgcol set imgCol = i where ID = 1;
    commit;
    end;

  • Help me with ordsys.ordimage

    i have problems when using interMedia to import images on DB server.
    i have 2 tables :
    create table t( pic_id number, pic_ord ordsys.ordimage);
    create table demo(id number, b BLOB);
    create directory PICDIR as 'd:\pic'; --- this directory is correct on server;
    grant read on directory PICDIR to PUBLIC;
    commit;
    DECLARE
    img ordsys.ordimage;
    ctx raw(4000);
    BEGIN
    insert into t values(1,ordsys.ordimage.init());
    select pic_ord into img
    from t
    where pic_id=1 for update;
    img.setSource('FILE','PICDIR','1.bmp');
    -- set source is OK,but the following IMPORT() raises exceptions
    img.import(ctx);
    img.setProperties();
    update t
    set pic_ord=img
    where pic_id=1;
    commit;
    end;
    ERROR at line 1:
    ORA-29400: data plug-in error IMG-00002:
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 590
    ORA-06512: at "ORDSYS.ORDIMAGE", line 65
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 677
    ORA-06512: at "ORDSYS.ORDIMAGE", line 213
    ORA-06512: at line 16
    =====================================
    after millions of times trying that ,i tried to load the file into a blob,
    and copy from blob to ordsys.ordimage.source.localdata(this is a blob);
    see:
    DECLARE
    l_blob blob;
    l_file bfile;
    BEGIN
    delete from t;
    insert into demo values(1,EMPTY_BLOB())
    returning b into l_blob;
    l_bfile := bfilename( 'PICDIR', '1.bmp');
    dbms_lob.fileopen( l_bfile );
    dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
    dbms_lob.fileclose( l_bfile );
    end;
    succeed!
    SQL> select id, dbms_lob.getLength(b) from demo;
    ID DBMS_LOB.GETLENGTH(B)
    1 1963494
    ===================================================
    then i copy the blob into t.pic:
    insert into t
    ( select id, ordsys.ordimage(ordsys.ordsource(b,NULL, NULL, NULL, SYSDATE, 1 ),
    NULL, NULL, NULL, NULL, NULL, NULL, NULL )
    from demo
    ==================================================
    then i check the blob's size in ordimage,and use setProperties() :
    declare
    img     ordsys.ordimage;
    ctx     raw(4000);
    begin
    select pic into img
    from t
    where pic_id= 1 for update;
    dbms_output.put_line('ord blob length:'||dbms_lob.getLength(img.source.localdata));
    img.setProperties();
    update t
    set pic=img
    where pic_id=1;
    commit;
    end;
    ord blob length:1963494
    declare
    ERROR at line 1:
    ORA-29400: data plug-in error:IMG-00002:
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 590
    ORA-06512: at "ORDSYS.ORDIMAGE", line 65
    ORA-06512: at line 10
    i do not know the mechanism of data plug-in. but i suppose it's the configuration's error of my oracle DB.
    please help me!!
    [email protected]

    Thank you!
    My db version is 9.0.1.0.1
    interMedia version 9.0.1.0.1
    i thought it's the installation error, but i have tried the /ord/im/admin/imchk.sql.
    Both version and components are VALID.
    JServer setup is correct.
    the JServer java objects are all valid.
    ORDSYS.ORDPLUGINS is VALID.
    but the codes can still not run!!
    i don't know what's wrong.
    please help me!
    thank you!!
    Apex

  • Export complete database with InterMedia tables

    Hi all,
    I need to move my developement database for one schema to the same schema on another server. So I started up the "exp.exe" app and run trough the processes.
    I then moved the *.dmp file to the server and started "imp.exe". All tables, grants and alike are imported successfully, except the tables which are created with Intermedia.
    Is there a problem with exporting/importing tables with Intermedia columns? If so, is there a workaround? I need to have the other database rolling next week.
    Thank you.

    I only received your reply by email notification today....
    Yes, we are storing in the ORDSYS schema. This is how we have been told to store media's. From the manual it notes "Note that ALL Intermedia objects and procedures are defined in the ORDSYS schema".
    Better to store them in the schema that the user is using? Will then everyhting still work (Image manipulation, etc.)?

  • I moved my music from the c drive to the d drive. All of my music is in itunes but my ipod won't sync with itunes. The syncing process is taking much longer than usual too. I left my ipod over night to sync and it didnt finish. Fails to sync every time.

    I moved my music from the c drive to the d drive. All of my music is in itunes but my ipod won't sync with itunes. The syncing process is taking much longer than usual too. I left my ipod over night to sync and it didnt finish. Fails to sync every time. I tried to restore my ipod and it didnt help.

    Ignore.  I figured it out:)

  • X220 Tablet and Windows 8.1 - Limited Touch drops with Intel HD 3000 is installed?

    I have installed Windows 8.1 Professional on on a Lenovo X220 Tablet and everything seems to have installed correctly, although my system, which supported limited touch with 2 touch points in Windows 7, only has Pen Support in 8.1.
    I have been able to get the system to be recognized as "Pen and Limited Touch Support with 2 Touch Points" but only if I disable/unintall the Intel HD 3000 driver, and use Microsoft Basic Display Adapter instead.  The problem is that the resolution isn't as crisp.  
    Any recommendations as to what I can do to get the limted touch to be recognized with the Intel HD 3000 driver?  This one is baffling.  
    Any help would be appreciated. 
    The X220 Tablet's type is 4296-2WU
    Also, the Intel HD Graphics 3000 driver is the latest version compatible with 8.1 64bit - 9.17.10.3517.
    Update: I have also tried the previous Intel driver release, 9.17.10.3347, as well as the recommend Intel driver from the support page 9.17.10.2843 and non of them allow my screen to do Limited Touch Support with 2 Touch Points.  Yet, if I disable the Intel driver, and restart, I can.  

    Troy,
    Thanks for sharing your expeirences and the details of the driver version.
    Officially, I don't think Lenovo provided full support for Win 8 on the X220, but as you note it (and the upgrade to 8.1) can work with some limitations.   I'll check with one of our software engineers to see if he may have some suggestions on this one.
    I expect you will probably draw some responses from the community as the X220 was a very popular system with a good following.
    Best regards,
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Is CPA Cache refresh linked with  ftp or file pooling process in XI?

    Hi,
    I have a file to file scenario using Transport protocol as FTP in XI 3.0 SP 15.
    When we try to sends some file using ftp protocol where we are using
    FTP  connection parameters
    Server                          = <CORRECT IP>,
    Port                               =  21 ,
    User name                <CORRECT NAME>,
    Password                  <PASSWORD> ,
    Data Connection           = Active
    Connection Seq          = None
    Connection Mode          = Permanently
    Transfer Mode            =   Text
    Processing Parameters
    Quality of Service    = Exactly Once
    Pooling Interval        = 1 sec
    Processing Mode    = delete
    File Type                   = Text
    File encoding           = utf-8                 
    The problem we are facing like some time the ftp is not working even the file is present in the location for pick up. If few files are stacked up to be collected then when we are using CPA Cache refresh in Full mode manually then it fetches all the files from the location but the problem is that ,we have a time constraint for this process to be completed in just 60 seconds if we are not able to pick up a  file in 60 Secs then the file will be treated as invalid.
    So I just want to know how Manual CPA CACHE refresh in full mode generally solve the problem.
    Next if more files will be stacked up then cache refresh also failed to solve the problem and more cache refresh result in NOT pooling any other files in XI including the above discussed flow.
    So,in anyway Cache refresh linked with ftp or file pooling process in XI?
    Please assist me in correctly understating the whole problem and what solution could be put to solve this.
    Thanks,
    Satya
    Edited by: Satya Jethy on Mar 14, 2008 12:28 PM

    Hi Suraj,
      If you see my query i have mentioned that the pooling interval is 1 Second.
    If we are not able to pick the file with in 60 Secs as this is a  real time scenario so the file will be treated as a invalid file.
    Moreover this problem is happening some time.
    I have also checked the component monitoring it is saying everything is ok as because we are receiving the file with out any error and the file transfer is also success.The only problem is that it is not collecting the files from the given location.
    Hope i make you understnad the problem .If not please revert back i will try to explain once again.
    Thanks,
    Satya

  • STO with WM with shipping and transportation process

    Hi ,
    Can anyone explain the process STO with WM with shipping and transportation?. What are all the config needs to be done for shipping and transportation?
    Regards,
    abi

    <STO with shipping>
    [1]
    Please set shipping data for the receiving plant and supplying plant.
    img -> mm -> purchasing -> PO -> set up stock transfer order -> define shipping data for plant.
    receiving plant <> ship to party
    supplying plant <> sales area.
    [2]
    Please assign delivery type and checking rule.
    img -> mm -> purchasing -> PO -> set up stock transfer order -> assign delivery type and checking rule.
    [3]
    Maintain shipping point determination:
    [4]
    Maintain and assign confirmation control key (if you are using two step STO and want to post GR via inbound delivery).
    This is the same as normal PO.
    ==========================================================
    WM and transportation.
    This is basically the same as normail WM and transportation.
    Once outbound delivery (replenishment delivery) is created, the process is the same as normal outbound delivery.

  • What is the standard method to integreate with AME for the approval process

    I have developed a new OAF page and registered under Employee Self Service menu.
    What is the standard method to integreate with AME for the approval process.
    Appreciate your early response

    Any one used AME with the new OAF pages?
    Please share , how you use AME with OAF page

  • Integration of oracle intermedia  with forms

    how do one integrate oracle intermedia with forms6i

    hi
    refer these
    Message transfer from Oracle to SAP R/3
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    How to get data from Oracle to SAP
    <i></i>
    Message was edited by:
            Anu Ram

  • How do I enable cascading style sheets - Many of the websites are just limited to text with a minimum of graphics

    Many of the websites are just limited to text with a minimum of graphics - Yahoo Mail, Wikipedia, etc.

    ok then,
    do you know if there is an alternative way, such as underclocking permanently the GPU, just as I did with the CPU?
    at least it would stabilize the temperatures around 80.. or sth

  • Starting out with intermedia

    Hello,
    I've been asked to try and use intermedia to search and rank content from a oracle database. The interface is web based and I'm just searching text in documents.
    What's the best thing (document, book) that I can read to get a good start with it.
    I'm an experienced developer, but not with oracle. So It would be great to find somthing that will not require me to know lot's of oracle stuff already.
    Is it simple? At the moment I think I need to set up some stuff with intermedia, then use some special SQL commands to score the query's?? As you can see, I'm a little confused.

    Check the application developers guide (http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/text.920/a96517/toc.htm).
    There is a simple example of how to index and search documents.
    Also please post on the Oracle Text forum for text searching questions.

  • Has anyone integrated with PaymentTech for credit-card processing?

    My client would like to capture credit-card payments using PaymentTech payment processor. We are using Oracles Apps 11i. I am aware that AR is integrated with iPayment for credit-card processing. However iPayment uses Cybercash as the payment system and it does not currently support voiceauth (i.e. ability to capture/settle payments based on an authorization not obtained via iPayment).
    Has any one done any custom development to integrate directly to PaymentTech (or to a
    3rd party application which integrates with PaymentTech)? I would appreciate if you can provide any directions.
    Thanks.
    - Tushar Khinvasara
    Oracle Consulting, iServices Southwest
    P.S.: If possible, please also cc your response to my internet email addr [email protected] which i can more easily access from the client site.

    Authorize.net is a supported payment gateway, take a look here - Supported payment gateway providers and here - Authorize.net for the steps to configure it.
    Thanks,
    Mihai

  • Have functional difference with GPU acceleration and software processing of Mercury Playback Engine?

    Used Decklink SDI and Premiere CS6 to testing.
    I have a question~Have functional difference with GPU acceleration and software processing of Mercury Playback Engine?
    (Can GPU acceleration export same used 59.94i external monitor export?).
    IN specification,Is it need“software processing”? whether other restrictions?
    If Anyone know please tell me.
    thank you.

    Thank you for your help, and sorry about didn't make it clear.
    Use Decklink SDI and Premiere CS6 to test.
    In GPU mode of Mercury Engine, the signal form SDI is 1080i, but  even fields will be missing.
    Take a simple test:
    Make quick slide for reproduce animationin in quadrangle(1080i 29.97),  but it can't paly smooth and same gone to 30P.
    If in Software mode, the action can be smooth.
    Although use Software mode can be ok,but if GPU does not realize,it will take long time to render.
    system info:
    macpro 10.8.1
    premiere cs6.0.2
    blackmagic driver 9.6.4
    GTX285
    sequence of premiere
    Presets/blackmagic/8bit YUV/interlace/59.94i
    Have any problems with my System or the  GPU mode can no  external monitor output in 59.94?
    IN specification,Is it need“software processing”? whether other restrictions?
    thank you!

  • HT201328 I unlocke my Iphone with AT&T, followed the process and put a new SIM, restored with Itunes, it worked, but it doesn't acccept any other SIM, even with restoring. Iphone 3g baeband 5.15.04. Please i need help

    I unlocke my Iphone 3G with AT&T, followed the process restoring with a new SIM, but when I put a difffrenet SIM, it doesn't recognize SIM, just says No SIM, even restoring.  Any help will be appreciatte it.

    Before going to the unlock by itunes, I restore it from factory. There was not any problems, I received the message of congratulations, your phone is unlocked, but when I try with a different sim, it just say "no sim". My baseband is not comun, is 5.15.04 it is the original, I did not modify it. I do not if there is a limit of unlocking actions, of there is a conflict in my baseband. My baseband can not be modified with jailbreaks for unlockings.
    Thanks for your fast answer Larry.

Maybe you are looking for