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
ADVERTISEMENT
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
Feb 4, 2013
I want to upload file using restful service This is my code to send file to rest service
MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
FileBody bin = new FileBody(f);
FormBodyPart bodypart = new FormBodyPart("file", bin);
reqEntity.addPart(bodypart);
[code]...
But how can i retrive at server side in restful service using plsql?
View 0 Replies
View Related
Aug 2, 2012
I am trying to upload big files to individual table with BLOB column. During upload process after long time approx. 2h I get the following error message:
[#|2012-08-01T19:03:01.667+0200|WARNING|sun-appserver2.1|java.lang.Class|_ThreadID=27;_ThreadName=httpSSLWorkerThread-8082-2;_Reques
tID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:236)
java.io.IOException: ORA-01013: user requested cancel of current operation
[code]....
I am using Glassfish Server v2.1.1 with APEX Listener v1.1.3.243.11.40...The Timeout parameters for JDBC settings in APEX Listener are default. Thus I would expect to abort earlier to be an issue of JDBC Connection?
View 1 Replies
View Related
Apr 17, 2013
After Upgrading to Apex 4.2
When uploading a static text/javascript file (i.e. filename = 'thisFile.js') the file Mime Type defaults to 'application/octet-stream' (instead of 'text/javascript'). This issue occurs in I.E. 8 but not in Firefox.
View 0 Replies
View Related
Sep 19, 2012
I want my application to provide an end-user with ability to upload the files from their machine to SFTP server directly. So far, I have managed to write the function which uses java source and allows to upload files from the database. It works just fine.
The function looks as follows:
FUNCTION SFTP_CMD (
V_USER IN VARCHAR2,
V_PASS IN VARCHAR2,
V_HOST IN VARCHAR2,
[code]..
where V_FILE_SRC represents location of the file to be uploaded. The thing is that the FILE BROWSE apex item does not allow to specify the file location, it identifies it somehow automatically, when you press the button 'Choose file'. The question is how can I catch file's path, so that I can pass it to V_FILE_SRC parameter in my function? Should I write my own plugin? or hack FILE BROWSE item? =)
View 2 Replies
View Related
Jul 25, 2013
I am new to the Upload data from excel to Table..... how to implement on this.....I need code for UpLoad CSV/XLS Files to the Table ....Table name T_UPLOAD have contains 40 columns....
View 3 Replies
View Related
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
Mar 1, 2006
I am attempting to Insert an image "C:/hi.jpg" into oracle10g with BLOB using SQLPlus.
I have created a table IMAGES...
CREATE TABLE IMAGES (
ID NUMBER(4) PRIMARY KEY,
IMAGE BLOB
);
Is that a correct way to start? How would you upload the image onto the table?
View 12 Replies
View Related
Jul 30, 2013
Using Apex 3.2 version , Need to Upload .CSV Files to the Table (T_UPLOAD),
View 11 Replies
View Related
Jun 12, 2012
I have to do upload into the table through a csv file . The table's primary key i have to load the rest through user's uploaded file. Is it possible to do the data loading to the table only to required columns and fill the other columns from backend. Or is there any other way to do this?
View 1 Replies
View Related
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
View Related
Feb 25, 2013
We are using APEX 4.1. When we try to upload data to a table through upload wizard, even if the record is an update , it still shows "Insert" and then fails with "Primary Key violation" error. We have defined the correct Primary key at table and APEX interface.
View 3 Replies
View Related
May 11, 2011
Is it possible to Bulk Upload file into Oracle table's BLOB column using Pl/Sql code.
The process I know of dose 1 file @ a time as of now.
I have more than 10000+ files to upload and this will be one off process.
View 3 Replies
View Related
Sep 12, 2012
Is there any way to upload a file to APEX as BFILE instead of BLOB? I need it to be BFILE since I will be only using XE which means I have limited data storage and unfortunately the system will allow users to upload and download files of different formats (.exe,.bat ) etc. which can be as big as 10MB. Also, how to download these files considering the authentication of the application.
View 3 Replies
View Related
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
Oct 25, 2012
in our application, we're uploading .xls files with several (and heavy) sheets.
In order to get better performance, is there any way to load just one of them?
View 0 Replies
View Related
Nov 6, 2013
Do you have sample codes to upload file from client to server using 11g forms?
View 2 Replies
View Related
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
Dec 13, 2012
I'm trying to upload a xml file into a table but I don't know which separator do I have to select to show the columns well. I does not recognize the columns.
View 5 Replies
View Related
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
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
Sep 16, 2013
I'm starting with APEX, I would like to know how to insert the contents of a file. Csv in a table, how to map a file to a table, how to insert file contents. Xls in a table.
View 1 Replies
View Related
Oct 16, 2012
Not able to understand what's wrong with the code. I am trying to import data to a table using a CSV file. I have exported the data (CSV) from the interactive report and I am just trying to insert the same data to the table, through a process. When, I tried to do so; its throwing an error message saying NO_DATA_FOUND and file is not getting inserted into wwv_flow_files table.
But when I removed the data from the CSV file for the comments field and then tried importing the file, the process worked. I don't understand whats the problem with the code.
I have a sample app setup in my workspace for this weird problem.
[URL]
Workspace details:
CSV file with comments field and data in it - when trying to import - throws an error message NO_DATA_FOUND
CSV file with comments field and without data in it - tried importing - this worked
View 2 Replies
View Related
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
Nov 12, 2010
For one of the server, we are able to start the agent but the status showing is UNKNOWN. So all the targets (50+) in Unknown state.
In the grid its in Blocked agent. We tried to unblock and did the Agent Resynchronization for this. At the end getting below error message as
Thread-9668 ERROR ThreadPool: Could not create thread, ERROR=12:Not enough space
In the emagent.log seeing below error
2010-11-12 21:03:48,950 Thread-9966 <Scheduler> Error Creating Thread for Upload Manager, OS threads exhausted (00951)
OS - AIX
DB Version - 10g
Agent version - 10g
View 4 Replies
View Related
Jan 9, 2013
I have encountered a series issue with importing applications into apex 4.2 with apex listener 2.0. Actually I have two stacks one is Apex 4.2 on Oracle 11g XE with apex listener 2.0 running in Stand alone mode and the other one is apex 4.2 on Oracle 11g standard edition with apex listener running on glassfish server. In both, I tried to import an application either from an earlier version (4.1) or an application exported from the same version and same workspace.
In apex 4.2 on Oracle 11g standard edition running on listener 2.0 with GF, even though I select the file to be uploaded again and again, after clicking next, it keeps on saying the error "File must be selected to uploaded".
In the other stack with Oracle XE, it throws an error page from apex listener "500 - Internal Server Error".
Not sure that its an issue with APEX 4.2? if so it would be a great disappointment. Is there any specific configuration needed to be done on apex 4.2 or apex listener?
View 2 Replies
View Related
Aug 15, 2012
I'm looking for a solution to hyperlink to a local file (i.e. C:/test.txt). I want that the user clicks on a "browse file" button like the file browse item. after the user selected a file or just a folder the path should be shown in a display only item. this item should be clickable...
Is it possible to create a "Browse file" dialog? I know that to link to a file is possible with some HTML tags in the "pre element text" and "post element text" fields. something like "<a href="... but I don't know how this works.
View 2 Replies
View Related
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
Mar 5, 2013
Oracel 11g R2
Apex 4.1
I got a reference from this forum on how to print CLOB data using htp.prn.
However when I run my procedure I get the error
ORA-06502: PL/SQL: numeric or value error: character string buffer too small The clob length is 195734.
The code is
CREATE OR REPLACE PROCEDURE nat_test_lsp_ws_3
IS
l_amt NUMBER DEFAULT 8191;
l_offset NUMBER DEFAULT 1;
l_length NUMBER DEFAULT 0;
v_clob CLOB;
[code]....
However, if the clob size is too small, it is printing. Is there in any restriction in size for printing clob?
View 13 Replies
View Related