Showing image on Browse Image You can go for the following code:
You have to create a file browser item on your page you have to create a file browser item on your page and add the below code into the post text section.
post text section :
<canvas id="image-preview" width="100" height="50"></canvas>
Dynamic action on change :
Identification:- Action>Exectue Javascript Code
var canvas = $x('image-preview');
var ctx = canvas.getContext('2d');
var img = new Image;
img.src = window.URL.createObjectURL(this.triggeringElement.files[0]);
img.onload = function() {
if (img.width > 200) {
canvas.style.width = "50px";
}
canvas.width = img.width;
canvas.height = img.height;
ctx.drawImage(img, 0, 0);
$("#container-img-preview").show();
}
You can create Query on Image Item and use the following Query:
select "ID","NAME","MIMETYPE","FILENAME","IMAGE_LAST_UPDATE",
sys.dbms_lob.getlength("IMAGE")"IMAGE"
sys.dbms_lob.getlength("IMAGE")"IMAGE"
from "DEMO_COMPANY"
Tags:
Oracle Apex