How to display a thumbnail of ORDImage without store?

Hello

I use Oracle 10 g r2.

I need to show the ORDImages (and BLOBs).

Here is my procedure that displays the thumbnails:
create or replace procedure show_photo_thumbnail(v_id_photo in number, v_height in number, v_width in number) as
     obj ordsys.ordimage;
     obj2 ordsys.ordimage;
begin
     --obj2 := ordsys.ordimage.init();
     select phot_source into obj from photos where phot_id = v_id_photo;
     select phot_source into obj2 from photos where phot_id = v_id_photo for update;
     obj.processcopy('maxscale= '||v_width||' '||v_height, obj2);
     owa_util.mime_header(nvl(obj2.getmimetype(),'application/octet'), false );
     htp.p('content-length: ' || obj2.getcontentlength());
     htp.p('content-disposition: filename="' || obj2.source.srcname || '"');
     owa_util.http_header_close;
     wpg_docload.download_file(obj2.source.localdata);
     commit;
end;
It works, but if I call this function several times (from our apex application), the quality of the image becomes less good, it seems, that he always treats the same image.
And for example if I call show_photo_thumbnail (1126, 150, 150) , then show_photo_thumbnail (1126, 500, 500), so it seems that the image of 500 x 500 is treated 150 x 150 thumbnail quality is very poor.

I have read all the documentation and I don't really understand why.

By calling this another procedure, we can see that the stored content stay unchanged:
procedure show_photo_infos(v_id_photo in number, v_height in number, v_width in number) as
     obj ordsys.ordimage;
     obj2 ordsys.ordimage;
begin
     select phot_source into obj from photos where phot_id = v_id_photo;
     select phot_source into obj2 from photos where phot_id = v_id_photo for update;
     obj.processcopy('maxscale= '||v_width||' '||v_height, obj2);
     dbms_output.put_line('obj  : '||obj.getmimetype()||', '||obj.getcontentlength()||' bytes, '||obj.getwidth()||' x '||obj.getheight());
     dbms_output.put_line('obj2 : '||obj2.getmimetype()||', '||obj2.getcontentlength()||' bytes, '||obj2.getwidth()||' x '||obj2.getHeight());
end;

show_photo_infos(1126, 200, 200);
obj  : image/jpeg, 79754 bytes, 572 x 504
obj2 : image/jpeg, 4635 bytes, 200 x 176
Any help would be appreciated.

Thank you.

Yann.

It should work exactly the same for ORDimage and BLOBs, as ORDImage stores and updates the content of the image in an attribute of the BLOB.

The difference you see may be because the object that you read. In the first example, obj2 has been selected for the update, but obj1 wasn't. The local variable obj1 had old data that has been printed, and it did not differ from data of obj2, which took the changes that have been updated in the table.

If you do not want the updated image, you can then select to update, make the changes that you are currently, but the restoration then in the end (after downloading the content). Then the original image will be stored in the table and the changes made as part of this operation will be ignored. The next time that you run the procedure will operate on the original image.

I note also that you have a commit in the first code snippet, but not later. According to your logging settings, which could have an impact as well.

Tags: Oracle

Similar Questions

  • How to display a thumbnail view of pictures? My vista does not list the thumbnails in the dropdown display menu.

    How to display a thumbnail view of pictures?  When I open the folder what I see is a generic panoramic picture rather than individual images.  My vista does not list the thumbnails in the dropdown display menu.  Before updating the Windows I used to be able to see thumbnails of my photos views when I opened the files with images inside.

    Here's a possibility... go to... Start ORB / Control Panel.
    Folder options / tab / files and folders / uncheck
    "Always show icons, never thumbnails" / apply / OK.

  • How to display the thumbnails in the default view

    How to display the thumbnails in the default view. I have just started a test of DC Acrobat and cannot find how to set the thumbnail view as default.

    Thanks George. Seems to only work for individual documents. If I do your instructions, close the document and then re - open, then of course the miniature view opens immediately. However, if I open another document the thumbnail view is not here. I need the thumbnail view to be opened by default for all documents as older versions of Adobe and other PDF software. If you can help that would be great.

  • How to display photo thumbnails in windows 7...

    How can I see preview picture always in Explorer in windows 7... in xp I could right click when in 'pictures' and I menu would come to the top and let me pick list, miniature... I want to see as a thumbnail in windows 7. I don't want to have to click on a photo and go through them all one by one to see what they are. Help, please!

    I found it! If someone else needs to know... openExplorer then click on "organize" on the top left and then 'folder and search options' then click on 'display', underAdvanced settings , the first item listed is "always show icons, never thumbnails" uncheck that then click on apply or ok. ' "  Now, you will be able to view your photos in thumbnails.  Why windows has that checked by default is stupid! Overall I love Windows 7 but that wasREALLY WORRYING me!

  • Should how to display my thumbnail image I choose?

    I have a mySql database with a few of many records for each of my images. One of the data fields is thumbnail url: I want to view all the thumbnails on the screen.

    It is best to do A or B:

    A

    Use a datagrid control and a custom converter to display each image

    or B

    get all the data in a table, browse and view thumbnails on the screen.

    all advice is appreciated, I already had the url string thumbnails appear in the data grid, but how do I get the actual thumbnail to appear instead?

    Your TileList might look like this:

    Then in a script block, you can have a function like this:

    private void setImages(thumbnailURLs:ArrayCollection): void {}

    var ac:ArrayCollection = new ArrayColleciton();
    for each {(var URL: String en thumbnailURLs)}
    var image: Image = new Image();
    image.source = URL;

    ac.addItem (image);
    }

    _myImages = ac;
    }

    with a variable like this:

    [Bindable]
    private var _myImages:ArrayCollection = new ArrayCollection();

    Hope this helps,

    T.K.

  • How to display the thumbnails in view?

    How can I see thumb nails in windows when I only have the choice of big-medium etc.? or how to make an extract pdf files? My problem is with unrolling of views and not be able to view the pdf file.

    Enable or disable preview thumbnails for PDFs
    http://www.Winhelponline.com/blog/enable-or-disable-thumbnail-preview-for-PDF-files/

    Thumbnails PDF disappeared after CS3 installed on XP-Vista
    http://forums.Adobe.com/message/1225608

    What setting you have in Control Panel / folder Options / View. "Always show icons never thumbnails".

  • How to display pictures in my files without hving to open each one individually

    I have thousands of photos and images for my craft needs and with Vista when I open a specific folder it showed me what was on each scanned page or each picture in this folder.  Now, I get just a display of the symbol and must open each of them individually to see what it contains.  How can I get the value to be displayed inside each folder

    Hello

    From the description, it seems you want to view your pictures as a whole.

    1. Copy all the picture files in your library "Images" by accessing the "File Explorer" icon on the left side of your taskbar.
    2. Open the application 'Photos' of the start screen. If you do not, you can download it from the Windows Store.
    3. Click picture library and you will find your photos here.

    If you need help, feel free to reply to this message.

    Ashwin0

  • can someone help me to display the thumbnails of psd. without psdcodec or other software

    Help?

    If your on a windows 7, 8/8.1 system or 10 with photoshop cc, then there is no other way to

    view psd thumbnails in Explorer windows without a third-party solution.

    Two of the most popular and proven are

    http://www.cherubicsoft.com/en/projects/SageThumbs#.V6BiwI6uRhE

    http://www.FastPictureViewer.com/codecs/

    Mac should show thumbnails psd without any additional codec/applications.

  • How to display the names of files without the letters of the index? "A", "B", "C", ...

    Acrobat on the ipad dispays lines with 'A' 'B' 'C' between folder names lost limit screen space.  How can we just display the names of files?

    Currently:

    < local ipad-PDF files

    A

    Apple

    Arnie

    B

    bike

    books

    C

    cards

    Preferred:

    < local ipad-PDF files

    Apple

    Arnie

    bike

    books

    cards

    Hi John,.

    Can I know how many folders/files are there in the folder "ipad-pdfs" because if the number of files/folders is above 13 in the list, then it will display the letters of the index otherwise it won't.

    Let me know your results.

  • How to display items side-by-side without using tables

    Imagine I have the related code...

    What styles I declare to make sections B and D display side-by-side (as if they were in two adjacent columns of the same table)?

    The safest way is to float the two sections in their container div. If you float ensure them that there is sufficient horizontal space for them to occupy, if not one of the floating sections will go down below the other.

    You could float a section right and on the left of a section in your container. This method is a good way to build a virtual gutter between the two parties. A virtual tray allows the vagarities of handling IE Win of the contents of a div (if the content is larger than the container IE Win makes the largest container, rather than the norm, which should cause the content spread out of the container).

    The overflow property can also contain content if you wish.

    CSS code:

    . {B}
    float: left;
    Width: 300px;
    }

    . {D}
    float: right;
    Width: 400 PX;
    }

    Another thing you have to do is clear the floating sections, so that the div container can be made to seem to contain the floats. This can be done with another div, under sections D and class B. Add a div with an id of footer below the two sections.

    CSS code:

    #footer {}
    Clear: both;
    }

    concerning

    Nick Barling
    www.barkingweb.com

  • Machine virtual IOPS / s report, how to display the name of the data store?

    Hi guys

    I am new to the Foglight community, this is a great tool, and I learn a lot.

    Currently I am trying to create a simple table that will show me metric of my VMware environment: Virtual Machine name, Datastore IOPS and data store.

    However I can't find how to include data store name in the table, because it is not a measure of the Virtual Machine. I think I need to expand the scope of my table to include VMware Datastore, but I don't know how to do this.

    -Mark

    Check the options available it seems that it can be done with WCF (the frame behind the Foglight dashboards).  We recommend generally customers who plan to build views WCF take adequate training or our PSO people engaged in it.

    In any case I can help show a quick example of how it's done.

    Please try this on a local/test server.

    Go to Configuration > definition >

    Make sure that you are in my definition, and click the icon to add a view. then choose from the tables and trees - oriented line table

    Give a name to the view, go public and make a portlet/reportlet and apply

    Switch to the configuration tab and click the change for the lines and choose a query

    Under query, expand the VMware and scroll down

    Until you can select the query for virtual machines

    And press the set button.

    Your view should look like this

    Now you must select the columns.

    Each column has a value you can edit and there is a button + to add additional columns.

    Lets start with the name of the virtual machine - click on the button to change to your default column and choose the context.

    Click on the drop down menu to enter key and choose the current line (virtual vmware machine)

    Click on the drop down menu to access path and scroll down until you can select the name and then click on set.

    You have created a table that lists the names of all virtual machines.

    You can click on save. and then click test, choose a time and click the result. A new window will open a show the list you of virtual machines.
    From here you can continue to add additional columns, each time choosing the key entry in the current line and the path to the metric/string to display.

    For example, the name of the data store.
    I change the module

    Click the configuration tab and click the icon to add a column

    For the column value, that I chose defined context once again, the key input is the current row and for the path, I expand the node for the data store

    And scroll until I see the Proprietename

    If you save and test you will see the result

    Keep adding columns and the data you want, notice that you have arrows that allow you to control the order of the columns.

    Note that you can click Show advanced configuration properties

    This will give you the opportunity to see the properties of the extra table, such as header - giving you the opportunity to give a more meaningful name (name of the data store, the name of the virtual machine, etc.) to the column header.

    You can now go you drag and drop the table edge/report and under my eyes, you will see your new view

    Drop it in the main view

    I hope this has given you the starting point to build this table.

    As I said, I strongly recommend going through our WCF training if you plan build more custom views or hire software Dell PSO Organisation to help build you views that correspond to your need.

    Best regards

    Golan

  • How to display an app in the app store bought page?

    I can't used the posted answer because I only have the offending iPad and a former mac intel running Lion.

    Apps and any other purchase, can be displayed via the computer iTunes: hide and expose the purchases made on the iBooks Store - Apple Support, App Store or iTunes Store

    A friend or a family member has a computer with iTunes on could you log on to your account?

    If you find the app in the store, can not download you from there? Or you can try to contact iTunes support and ask them to view it: https://www.apple.com/emea/support/itunes/contact.html

  • Photosmart 7520 - how to display on-screen printer status report

    How can I display on the screen of the monitor or printer sales 'Total printed pages', otherwise, I have to often print "keep your computer > device reports > print status report?  I use HP Photosmart 7520e, connected wireless, Windows 7 of the month last thank you.

    Hello emmandell,

    Welcome to the HP Support forums.  I understand you want to learn how to view your number of pages without having to print a printer status report.

    The information can be accessed online using the integrated web printer (EWS) server.  Please follow the steps below:

    1) press the wireless icon on the front of the printer to find the ip address of the printer.

    (2) type the ip address of the printer in the address bar of your browser, this will bring up the SAP. I recommend that you bookmark this page for future use.  Then click on the tab "Tools".

    3) click 'Reports' on the left side menu

    (4) this example displays a screen of use with the total pages number in the upper part

    Hope that allows you to save on ink and paper.

  • How to create a thumbnail image

    I have a number of images, I want to display the thumbnails of the images...

    How can I do it...

    Thank you..

    problem is to solve...

    We can take an ImageView and can set the preferredWidth and preferredHeight...

  • How can I get thumbnails of .mov video files to view 'my videos' in the library in windows 7?

    My digital camera is sufficient. MOV video files.

    I can download them to my PC Windows 7 without problem, but when I'm in the 'my videos' library, all my old. Video files AVI (from a previous camera) display as thumbnails of the actual video (which is really convenient to quickly identify what is talking about the video), but all my new. Show only MOV files as an icon of a hot air balloon on a strip of film behind a musical note (which I think is just a symbol of a media file).

    I would like to be able to view thumbnails for. Video files MOV as well... PLEASE CAN YOU HELP! ???

    Hello


    I found a solution for this problem on the 64-bit windows 7!

    I changed and added a few keys in the registry to fix this thing to preview:
    IN REGEDIT:
    _ HKEY_CLASSES_ROOT\.mov\shellex\
    where I had only 2 keys inside the shellex.
    _I watched inside the shellex mpeg (because mpeg would generate good thumbnails):
    HKEY_CLASSES_ROOT\.mov\shellex\
    where he had 3 keys
    _SO what I tried was to copy these 3 key and replace my key shellex .mov with those 3.
    That's what you can do:
    -Open regedit
    -Click on: HKEY_CLASSES_ROOT\.mov\shellex\
    then export it (this will be your backup in case this does not work, or mess you something you'll just have to click on it to install it again.
    Then,
    -remove the "HKEY_CLASSES_ROOT\.mov\shellex\"KEY.
    -Open Notepad
    -Paste the following text in your Notepad file:
    -don't paste this line-
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.mov\shellex]
    [HKEY_CLASSES_ROOT\.mov\shellex\{3D1975AF-0FC3-463d-8965-4DC6B5A840F4]}
    @=""
    [HKEY_CLASSES_ROOT\.mov\shellex\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1]}
    @= "{c5a40261-cd64-4ccf-84cb-c394da41d590}".
    [HKEY_CLASSES_ROOT\.mov\shellex\{E357FCCD-A995-4576-B01F-234630154E96]}
    @= "{9DBD2C50-62AD-11D0-B806-00C04FD706EC}".
    -don't paste this line-

    -Save as whatevername.reg (remember to use 'all files' kind of file type.)
    -Double-click on the file reg saves you just you just saved, it will be to reinstal the shellex inside the key of .mov here:
    HKEY_CLASSES_ROOT\.mov
    with the right keys and stuff.
    -Close regedit
    -Open a folder that contains your. MOV, refresh the file several times to be sure, it should work.

Maybe you are looking for