Application Express :: Export Table Rows To Excel And Save To BLOB Field?

Sep 26, 2012

I try to find out how export data from table to Excel file format and save the result to BLOB field in some other table.I know how to download report from Page by submit, but I need to process data and instead of returning result to user as Excel file - save it in BLOB.

Also I found implementation on JAVA for the issue but actually I wanna study out - Is it possible to resolve this issue by PL/SQL and APEX API methods?

View 4 Replies


ADVERTISEMENT

SQL & PL/SQL :: GET Blob Field From DB And Save Image

Apr 14, 2010

I have a db field "image" of type BLOB and I save the contents to a file on a local folder c: example.bmp.

I found numerous examples

BEGIN -
Get LOB locator
SELECT image INTO l_blob pc_immagini_blob FROM WHERE code = WCI;
- Open the destination file.
l_file: UTL_FILE.fopen = ('C: Temp', 'EXAMPLE.BMP', 'w', 32767); -----> error

The db is not local but on an application server, the image must be saved to c: the client.

View 8 Replies View Related

Save PDF File Content To BLOB Field In Oracle?

Dec 6, 2008

how to write a procedure in oracle to Save pdf file content to BLOB field in Oracle....

View 11 Replies View Related

SQL & PL/SQL :: Export BLOB File In Excel?

Dec 5, 2012

I want to export the data from oracle with BLOB column in excel file.

BLOB file contains the Image (jpg)

View 5 Replies View Related

Application Express :: Unable To Upload CSV File Through 4.2 (Blob) To Oracle Table

Jan 4, 2013

I needed to create a page on my existing APEX application that would allow the user to upload a file, I followed an online tutorial where the user had created a dummy table and inserted CSV File inserted through APEX into the table. Following that simple example I am able to load the simple CSV file (from tutorial) into a dummy table (from tutorial) but when I attempt to insert actual/dummy data into my actual database (which has a lot more fields of different types), using the exact same process, I am unable to do so.

Ironically, I am unable to insert even dummy values despite the fact that I have been able to insert the same dummy values using SQL Developer. Icing on the cake is that APEX does not produce any error, this lack of debugging feature (especially line by line debugging) is such a pain. Just to add, I can load the values into an Array and can successfully print the delimited values off the array but am still unable to insert the same values into my table. Here is the table that I am attempting to insert into (actual names replaced by Dummyxx):

CREATE TABLE "TABLE"."STG" (
"DUMMY01" NUMBER,
"DUMMY02" NUMBER,
"DUMMY03" NUMBER,
"DUMMY04" DATE,
"DUMMY05" CHAR(3 BYTE),
[code].........     
                           
And here's the insertion process:

DECLARE

v_blob_data BLOB;
v_blob_len NUMBER;
v_position NUMBER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
[code]..........

If I run a process to produce the output of the data array onto the screen, the values displayed are in the pattern desired.

Inserting Dummy values instead of values from the Array (v_data_array) to test

EXECUTE IMMEDIATE 'insert into TABLE.STG (DUMMY01, DUMMY02 ..... DUMMY65)

VALUES (
60040,
5,
TO_DATE("14-Dec-12","DD-MON-RRRR HH:MI:SS"),
"ABC",
"ABC",
60,
"11DEC1201",
"331",
"SCOTT TIGER",
"MARKETING",
[code].......

Note that all the the CSV does not contain all the fields, the CSV files that are expected to be entered into the system contain 65 Fields whereas the Table has 73 Fields. Also note that the process runs fine through SQL loader that is invoked through a different server which I need to release and hence the attempt to load the table this way. Also, the procedure on the SQL Loader server is quite complex and involved JAVA+Unix Shell Scripts etc. which I would prefer to avoid.

View 1 Replies View Related

PL/SQL :: Delete Or Empty Single Field Containing BLOB In Oracle Table?

Jul 8, 2012

I have a table in schema with a BLOB field. I store employee's picture in this field. Fields in this table are emp_id (number) emp_name (varchar2) and emp_photo (BLOB). I want to ask if there is a way in pl / sql that i could empty this BLOB field to null or reset this field so that user can change the saved photo graph and save another one.

what i am looking for is something like

alter table employee set emp_photo = empty_blob() or alter table employee set emp_photo = null

View 3 Replies View Related

Application Express :: How To Show Alert When Data Not Exist In Table And Clear Field

Jun 8, 2012

Recently i created a form which contains emp_name,deptno,supervisor_name.For emp_name if i type the emp name (eg:allen) it will show me a list of employees named allen as a select list.For that i used a jquery script on page header

<link rel="stylesheet" href="URL.....
<script type="text/javascript" src="URL....
<script type="text/javascript">
[code]....

and i have created a dynamic action for emp name to fetch the deptno,supervisor_name if select the employee name it is working fine is if i type a emp_name which doesn't exist in the employee table it will show me a alert message employee does not exist and it will clears all the fields.

View 0 Replies View Related

Application Express :: Exporting Inside Database In Export Repository - Owner And Table Name?

Jun 12, 2013

We are exporting our apex application inside the database in the Export Repository.  what owner and table name are those export located exactly?  

View 1 Replies View Related

Application Express :: What Would Cause Oracle To Insert Duplicate Rows Into A Table

May 2, 2013

What would cause Oracle to insert duplicate rows into a table? Could a join of two tables in the initial query assigned to an application page cause ORacle to insert an extra row into a table when an update to data value occurs? I have no insert triggers and no foreign keys assigned to the table. I am not sure what would cause Oracle to assume that an insert of a row must occur. I want to prevent that insert.

View 9 Replies View Related

Application Express :: 4.0 - How To Save Detail Along With Master Record

Apr 16, 2013

I am using APEX 4.0. I have created a master detail page , the business logic is “ We can save master record only if there is at least one detail record exist.”

But current wizard developed page has functionality that I have to save master first then only I can add detail record. I want to save them together.

View 0 Replies View Related

Application Express :: Save Before Exit Tabular Form

Feb 21, 2013

I have seen the Skill builder plugin for Save Before Exit, and it looks great.

Unfortunately, my project is using apex 3.2.

Is there a recommended way to achieve this for a tabular for in apex 3.2.

View 4 Replies View Related

Application Express :: How To Save And Edit Word Template

Aug 30, 2012

How to save and edit a Word template and excel (extension. doc and. xls), which can be opened to allow the document and record all changes made ​​by the user of the pacification.

View 0 Replies View Related

Application Express :: HTML Text Area With Save Button

Oct 22, 2012

I have created a region Q_INFO and in the region i have added HTML text area. This text area is editable for only few users. If the user types in the text area and presses save button. The text is stored in the table INFO. And this text is displayed to all other users. But when i enter any data in the text area with multiple new lines and press SAVE button. The text is displayed in single line. I want to maintain new line and paragraph in the text area.

View 2 Replies View Related

Application Express :: How To Display Blob As Text

Jul 9, 2013

I am developing an apex application using the apex cloud (apex.oraclecorp.com). I am using the DB link to show the data on APEX UI. I have a blob data which is stored in the remote DB, and I want to display the BLOB data as text on a popup or a new page or a download link.  I tried using display only item but APEX throws an error saying that remote DB is not supported. Also, It would be great if I can just show a download link on the UI for the BLOB data, again when I try to select the format as BLOB in the column attributes, When I give the table@dblink as BLOB table I get an error saying that "table@DBLINK not found". Is there any way to display the BLOB data as text or download it which is present in my local DB?

View 10 Replies View Related

SQL & PL/SQL :: Export Of Table Data To Excel Through Code?

Jan 20, 2012

code for:

Export table data to excel file in Oracle PL/SQL.

View 3 Replies View Related

Application Express :: Save Form Changes When Click Report Link Column

Jun 19, 2013

Apex 4.2.0.00.27 I have a page with a Form region and a Classic Report region. How can I automatically save changes made in the Form when a user clicks the Edit link column in the Report? At the moment, when the user returns to the Form, any changes made there are lost. 

View 2 Replies View Related

Application Express :: Where Does APEX Save Libraries Added Through Apex_javascript.add_library

Sep 25, 2013

i recently installed an apex plugin but after deinstalling the plugin some of the functionality was still there.I suspected the plugin uploaded a js library and a css file.I found the functions apex_javascript.add_library and apex_css.add in the plugin.Where does apex save the files that are uploaded using those functions?I want do remove then. 

Oracle DB:    11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionAPEX:   4.1.1.00.23

View 4 Replies View Related

Application Express :: Display Only Value Not Save To Database Based On Dynamic Action?

May 22, 2013

I have a select box with products, and a dynamic action that updates a display only element with the price, based on the product selection.After the selection is made and the page is submitted, I have noticed that the price is not stored in the database. If I change the display only value to a text box, the data is saved. Is this expected behavior? If so, can I add something to the text box to make it not editable?

Version is Application Express 4.1.1.00.23

View 6 Replies View Related

Application Express :: Edit Bar And Save Report From Actions Menu Is Missing

Jun 21, 2013

We have recently did upgrade from 4.1 to 4.2 with listener 2.0. The edit bar (to edit the page) and Save Report option from Actions Menu ( Interactive Report) are missing, is it a bug?

View 3 Replies View Related

Application Express :: Blob Downloaded Image Not Displayed

Dec 18, 2012

We have apex application with one record report that shows image.We use database procedure to show image.And call it in apex like:

'<img src="show_image?p_id=' || NVL(dp.id, 0) || '" height="200" width="200" />' as image

But the image is not shown. We only see broken image icon.With right click on broken icon, we can save it and it's actual image we want to display.

If we call procedure like: URL.....

If we use the same procedure on another table with images which are smaller, then the image is shown.Minimum image length in table A is (DBMS_ LOB.getlength (file)): 105243..Maximum image length in table B is: 1702. URL....

View 7 Replies View Related

Application Express :: Function Returning Blob Content

Sep 10, 2012

I am using the below function to return a blob (CSV) content, this is working fine..But i need to modify this function to display headline for the report and fixed width column in CSV ( then user no need to expand the each and every column ).

create or replace function GET_BLOB (
p_query varchar2
) return blob as

l_cursor integer;
l_cursor_status integer;
l_col_count number;
l_desc_tbl sys.dbms_sql.desc_tab2;
l_col_val varchar2(32767);
[code]....

View 10 Replies View Related

PL/SQL :: How To Do A Loop On Table And Export Data In Excel Format

Dec 13, 2012

i need to do a loop on a table and export the data in Excel format (so i need a procedure to do it).

write a java class that build this Excel.. oracle procedure loop around the data and every step my Java class write on Excel file.

So, for this i should initialize my java class for example

public class ExcelExporter{
private String fileName;
public ExcelExporter(String fileName){
this.fileName = fileName;
}
}

So, for this issuse i should call the ExcelExporter costructor from my PL/SQL so i can create an object of it and next i use this to populate my Excel.

How its possible to create Java object from PLSQL ? I've seen on the net all procedure call only Java static methods...

View 5 Replies View Related

Application Express :: Automatic Save File From Apex To User Local Directory

Jun 13, 2012

how can save pdf file from apex to user local directory on button click?

View 2 Replies View Related

Application Express :: How To Stream The Blob File To The Web Browser Without Saving It

Oct 18, 2012

I have a stored procedure that returns pdf as a blob.

Is there any way that this can be streamed to the browser without saving it?

View 1 Replies View Related

Server Utilities :: Export Excel Sheet Data In Database Table?

Jul 17, 2012

i want to export excel sheet in database table, so i have converted excel file in .csv file(comma delimated)and made control file, then i started sqlldr by double clicking on it. path is-D:oracleproduct10.2.0client_1BIN

i run this command from cmd-

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:UsersNeetesh>sqlldr scott/tiger@localdb control=c:/users/neetesh/scott_data.
ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Tue Jul 17 17:20:33 2012

[code]....

and i attached the .ctl file. and .csv file is stored on same directory as .ctl file, why oracle couldn't find the .ctl file.

View 21 Replies View Related

Application Express :: BLOB Action - Implement File Upload And Download Function

Sep 11, 2013

In my project, I implement file's upload and download function by  "BLOB Support in Forms and Reports" of  official development document Advanced Programming Techniques When user click the BLOB column to download file, I want to trigger an action to update one table  for counting this file is downloaded one more times. But I can not find any "dynamic action" about this Blob column of Report.

View 1 Replies View Related

Forms :: Export Table Data Into Excel Sheet On Local Machine Or Server Itself?

Oct 9, 2013

i am accessing a form from server through URL using oracle application server FORMS & REPORT services. and i am trying to export table data into excel sheet on my local machine or the server itself.

i am using the following code on WHEN BUTTON PRESSED

PROCEDURE REFERENCELIST IS
BEGIN
DECLARE
AppID PLS_INTEGER;
ConvID PLS_INTEGER;
RCount Number := 0;
CURSOR c1 IS SELECT MATID, MATCODE ,DESCRIPTION , PARTNO FROM REFERENCETABLE;
PROCEDURE INSERTROW (invalue VARCHAR2, incol NUMBER) IS

[code]....

this does not give any error and any result as well. the above code very much fine while i run it on my local laptop.

View 1 Replies View Related

SQL & PL/SQL :: Select Rows From Table With Same Particular Field?

Aug 20, 2012

select the rows from a table with the same particular field in PL/SQL. Actually I don't want to write two loops one inserted into another.

View 7 Replies View Related

Application Express :: Upload From Excel For Several Tables

Jan 7, 2013

Pretty new to APEX and was hoping to accomplish with native functionality.

Using the latest APEX, there is nice functionality that creates a wizard for you for a single table. I wanted to have a single wizard but pick a table then have the ability to map my fields for insert/update.

View 2 Replies View Related

Application Express :: How To Change File Character When Export Application (4.2.1.00.08)

Feb 5, 2013

I need to change "File Character" when I export application with Apex 4.2.1.00.08 version, but this option, is not possible. The ComboBox already select with

"Unicode UTF-8]', but I need "ISO-8859-1 - Europa Ocidental",

how can I do change it?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved