Image Upload error ora-01460:
Hi to all,
I am doing a development in .Net to upload the Image.
I tried using to upload Image using Oracle Client Connectivity provided by .Net. I am able to upload the Image of any size upto 4GB on Blob field.
I tried using the same thing just changing the connectivity to OLEDB and tried to upload the Image but I'm getting the error as ora-01460: unimplemented or unreasonable conversion requested for Image file size greater than 32K.
What would be the possible causes for this.. I posted below my table structure and the procedure involved in the uploding the picture.
Name Null? Type
ID NUMBER
IMAGE_FILENAME VARCHAR2(500)
IMAGE BLOB
MIME VARCHAR2(4000)
FILENAME VARCHAR2(4000)
Procedure
CREATE OR REPLACE PROCEDURE DBO.SP_UPLOAD_FILE(P_ID IN NUMBER, P_FILENAME IN VARCHAR2, P_MIME IN VARCHAR2, P_PICTURE IN BLOB) AS
BEGIN
UPDATE TEMP_IMAGE SET IMAGE = P_PICTURE, FILENAME = P_FILENAME, MIME = P_MIME
WHERE ID= P_ID;
END;
Please post your suggestions..
Thanks and Regards,
Vijayaraghavan K
What would be the possible causes for this.OLEDB?
Did you post the entire error message or did you just cut out the ORA-01460 part?
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:481421535472#72682112997104
Similar Messages
-
Error ORA-01460 warning ORA-01461 during running a mapping with parameters
Oracle 10g release2(10.2.0.1.0), OWB 10.2.0.1.31, Workflow server 2.6.4
I have a simple process flow ( start -> mapping -> end).
The mapping consists of 4 input groups(3 ordinary tables<INGRP1, INGRP2, INGRP3> and 1 mapping input parameter operator <INGRP4>), a joiner, a filter, an expression operator and 1 output group.
I want to use two variables in join condition, so I bound two mapping input parameters(<INGRP4.SRC_SYS_CDE> and <INGRP4.ADMIN_ORG_NUM>) with two parameters of the process flow's start activity.
Those two mapping input parameters are of type char, one is 4-char long and the other is 2-char long. So I set both of the two parameters of the start activity as String, one as 08, another as 7504.
My join condition is:
INGRP1.ORGIDT = INGRP2.SOURCEORGANIZATIONNO AND
INGRP2.SOURCESYSTEMCODE = INGRP4.SRC_SYS_CDE AND
INGRP2.ADMINORGANIZATIONNO = INGRP4.ADMIN_ORG_NUM AND
INGRP1.CURCDE = INGRP3.NUM(+)
There are no errors and warnings in validation, generation and deployment process, but when I run the process flow, it always finishes blankly(zero insert) with no error and warning messages. It should insert more than 20,000 rows.
When I run the mapping and set the parameters 08 and 7504 at the parameter prompt, then start, the following error and warning occurs.
Error ORA-01460: unimplemented or unreasonable conversion requested
Warning ORA-01461: can bind a LONG value only for insert into a LONG column
So what's the problem? How can I fix it?The problem was mapping input parameter type.
VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't. -
Work around/Alternate solution for Oracle error ORA-01460 and ORA-02063
After the installation of Oracle.DataAccess version 2.111.7.20, I get the following error.(the code worked fine with Oracle.DataAccess version 9.2.0.700 )
I have attached the error as well as the sample code.
ORA-01460 and ORA-02063 are known bugs in the new ODP but would like to know if there is any Work around/Alternate solution for this problem(other than
the use of stored procs)..
Thanks!
Error:
ORA-01460: unimplemented or unreasonable conversion requested
ORA-02063: preceding line from BSREAD_STAGINGRO at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
at Oracle.DataAccess.Client.OracleCommand.ExecuteReader()
SampleCode
private bool isValidFieldData(string clientName, string fieldNumber, string uniqueID, string clientID)
using (OracleConnection mBSConnection = new OracleConnection(mBSConnectionString))
OracleDataReader oRdr = null;
OracleCommand Valid_FieldData_Command = null;
try
Valid_FieldData_Command = new OracleCommand();
Valid_FieldData_Command.Connection = mBSConnection;
Valid_FieldData_Command.CommandText = "SELECT uniqueid FROM EXTDB.BSData WHERE agencyid = :agencyid and agencyname=:agencyname AND fieldnumber =:fieldnumber AND uniqueid = :uniqueid";
Valid_FieldData_Command.Parameters.Add(":agencyid", OracleDbType.Varchar2, 255).Value = agencyID;
Valid_FieldData_Command.Parameters.Add(":agencyname", OracleDbType.Varchar2, 255).Value = agencyName;
Valid_FieldData_Command.Parameters.Add(":fieldnumber", OracleDbType.Varchar2, 255).Value = fieldNumber;
Valid_FieldData_Command.Parameters.Add(":uniqueid", OracleDbType.Varchar2, 255).Value = uniqueID;
mBSConnection.Open();
oRdr = Valid_FieldData_Command.ExecuteReader(); ->Error occurs here
The error occurs whenever the length of any of the parameter is increased. But there is no specific length where it is breaking down.
For example in this case, it breaks down with the given error if
agencyID > 8
agencyName > 6
fieldNumber > 9
uniqueid > 6The problem was mapping input parameter type.
VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't. -
Developer Details:
Image upload error. Error resizing image: Error converting image (image resize). The "" folder has no write permissions. (IMG_RESIZE)
User Error:
Image upload error. Error resizing image.
tNG Execution Trace - VIEW
tNG_update.executeTransaction
STARTER.Trigger_Default_Starter
tNG_update.doTransaction
BEFORE.Trigger_Default_saveData
tNG_update.saveData
BEFORE.Trigger_Default_FormValidation
tNG_update.prepareSQL
tNG_update.executeTransaction - execute sql
AFTER.Trigger_ImageUpload
tNG_update.afterUpdateField - frumorsimg, Fimg1.gif*
tNG_update.getRecordset
tNG_update.getFakeRsArr
tNG_update.getLocalRecordset
tNG_update.getFakeRecordset
does anybody know why this happens?
My folders are 777. The image is being uploaded.
If I turn off the resizing the page loads fine.
The error appears when having the resizing or when displaying a thumbnail.
Please help!!!!
Thank youI am not a php guy but just trying to help out..
1. check what u have configured in the control panel of ADDT for image resize.
2. i have heard something called GD is used. or image magick.
3. in asp i use image magic.
the image resize will use some temporary directory..
ur webserver will run as some account so ..
it should have write permission on this temporary directory.
and the library u specified it to use for resizing should also physically exist.
and ofcourse the anonymous webuser account should be able to create process to resize this image. -
ADDT multiple image upload: "error 500"
Right now, I have managed to get the update record form wizard working, the right input ends up in the correct fields in the database.
So I'm left fighting with the "multiple image upload", which gives me an "error 500" message (error connecting to server)
The window does show me the correct files in the correct folder, but when I try and upload an image I always get the error 500 message.
I have read that the "multiple file upload" uses a temporary folder, and Im assuming that the "multiple image upload" does the same, and I suppose that I should CHMOD that folder to 777.
Do you know where I can find that folder?
Can anyone help me with that error?
Please?
Sorry about my name, I tried a lot of other names, and all were taken, but this random name went just fineI thought it did - When I used the upload and save to database it saved the original images in a folder and created a sub folder called "thumbnails" and saved the thumbnails - origianl filesname just with width and height appended at the end.
I checked my server files and their definately created.
I browsed the java script and the help files which mentions it does this but I would like to be able to change the naming format of the thumbanils if possible -
ZCM 11.2.3a Image upload error [directory does not exist]
We are uploading a number of images to the server.
A lot of these are large images and the workstation has been build as a VMWare workstation.
So far with the exception of one, all have uploaded successfully.
One image is failing to upload when it is about halfway through. The error displayed on the workstation says "Directory not found"
Looking at the novell-pbserv.log I see the following error message related to the image upload.
RWCC unknown compression command code: 0x4000000 (67108864)
RIP2 RWCC faiolure 3, 1851,
Any help /ideas appreciated.
Thanks
MarkHi Shaun,
No we are using the the ZCM 11.2 pxe boot files.
Although we have upgraded to ZCM 11.2.3a the image files from 11.2.3.a and the latest October Imaging update are crashing.
I did post on the forums regards this and have a SR open for it. # 10865188291
We are testing an upload of this particular image for the 3rd time. The other images have uploaded without issues.
They have run a defrag on the disk prior to uploading.
Regards
Mark -
Dear all, we have a requirement to upload employee images in the custom application we have built. The applicaiton runs under ora apps env.
Is there a procedure available in ora apps which we can call to upload images from client hard disk to the DB server ?
As i'm new to ora aps, please point me to the right direction.
Thanks
RahulI've done this several times, and many ways are possible. The easiest one is via dataload, which works fine, if your number of photos to load is not too high.
-
EMOD Hosting Library - Image upload error
Hi,
I have this error "A record already exists that contains identical values to the record you have created." when I try to upload image to the hosting library. However when I check there is no duplicate image at all. Does anyone know the cause and how to solve the problem?Try renaming the image file and uploading. Make sure you're uploading to the Images area and not the Documents or Templates area. If that doesnt work, log a support ticket.
-
ORA-01460: unimplemented or unreasonable error & OPEN-FOR statement ...
Hi,
I have a procedure that opens a cursor which returns a result set based on a dynamic SELECT statement. The IN clause
in most cases needs to handle more than 1000 expressions. So to avoid the ORA-01785 error, I use a function to
convert the comma separated list of ids (which are unknown) into a collection which can then be used in the sub query
to process each expression or id. I assumed that the maximum string length I could use for these list of ids was
32767, i.e. VARCHAR2. But f I attempt to open the cursor with a list of ids where the string length is greater than 4000 bytes , the cursor is invalid
and it seems to throw the following Oracle error:
ORA-01460: unimplemented or unreasonable conversion ...
Note that anything less than 4000 bytes is fine. I have attached some of the code below and would appreciate if anyone
could tell me what im doing wrong! For example, can a varchar2 variable greater than 4000 bytes not be used when
executing dynamic SQL in the context of the OPEN-FOR statement?
-- Create type to hold collection of identifiers.
CREATE OR REPLACE TYPE IDList IS TABLE OF NUMBER;
-- Function which converts a string of comma separated list of identifiers
-- into a collection.
CREATE OR REPLACE FUNCTION fnConvertIDListToCollection(
varList IN VARCHAR2,
varDelimiter IN VARCHAR2 DEFAULT ',')
RETURN IDList
IS
varString long := varList || varDelimiter;
varPos pls_integer;
varData IDList := IDList();
BEGIN
LOOP
varPos := instr(varString, varDelimiter);
EXIT WHEN (nvl(varPos, 0) = 0);
varData.extend;
varData(varData.count) := trim(substr(varString, 1, varPos - 1));
varString := substr(varString, varPos + 1);
END LOOP;
RETURN (varData);
END;
CREATE OR REPLACE PROCEDURE MyTestProc
myCursor OUT SYS_REFCURSOR
AS
varListOfIds VARCHAR2(32767);
BEGIN
-- Hard coding this for now but this will be an incoming parameter containing a list
-- of unknown ids, separated with commas.
varListOfIds := '1,2 .. , 5000';
OPEN myCursor FOR
'SELECT DISTINCT val1, val2, val3
FROM TABLEA
WHERE val1 IN (select * from table(cast(fnConvertIDListToCollection(:ListOfIds) as IDList)))' USING varListOfIds;
END;
/APC,
Many thanks for the suggestion and yes I could possibly implement an alternative solution, certainly for some cases but I need to investigate further for others. I'm migrating some SQL Server logic over to Oracle and that was simply the approach taken on that platform.
Could I trouble you with one further question as a newbie to all of this. I hinted in my last response that I was somewhat confused over the limits with the use of varchar2 variables in PL/SQL. If I were building up a piece of dynamic SQL (e.g. SELECT statement including a WHERE clause) using an incoming VARCHAR2 parameter for the WHERE clause, can this parameter contain more than 4000 bytes if necessary. I assumed it could be as big as 32767 bytes but an earlier response suggested a maximum of 4000 bytes. Really sorry for probably a fairly basic Oracle question but it would be very appreciated if you could explain this to me.
Again, many thanks. -
Js-error while executing Multiple Image Upload wizard
If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
can someone help?
thanx
peterThat again would be more of a question for the Cold Fusion group.
Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
Those people will be able to help you out more.
Brad Lawryk
Adobe Community Expert, Dreamweaver
Adobe Usergroup Manager, Northern British Columbia Adobe User Group -
ORA-01460 error only in production enviorment in ADF 11g application
Hi ,
We are using ADF 11g rel 1 11.1.1.4.0
And database is
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
All our enviornments are running the same database
But when we are deploying the application in Production we get the Error
JBO-27122: SQL-fejl under forberedelse af sætning. Sætning:
select DB_TST_API.test_proc(Id1, id2) from table;
## Detail 0 ##
java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested
While executing the query which has a call tp API and input variable
select DB_TST_API.test_proc(Id1, id2) from table;
The DB function is defined as
the FUNCTION test_proc(p_value IN VARCHAR2, p_list IN VARCHAR2) RETURN number;
The input parameter is only 10 digit integer in ADF application, there is a logical difference that the DB function takes a string and ADF is supplying with Integer, but the code has worked before and has suddenly started giving this error
The code also works fine on all other test eviornments
Also the sql query when run from sql devleoper on production DB does not give any error
Its becoming difficult to find out what could be causing this only on production enviornmentIn ANY case, I'd be using explicit conversions here, not implicit ones, so my recommendation would be one of these:
a). Use TO_CHAR on the input
b). Use Java to convert the integer to a string
c). Change the functionto take a NUMBER as the parameter (if it really is a number)
d). Write a wrapper for the function. The wrapper should take a number and convert it using TO_CHAR and call the real function
John -
Image / file upload error cannot upload image even after setting write permissions
Hi there everyone
I am having this problem when I try to upload a file (image file) to my server
I have a dynamic for working fine , all the other fields insert the information ok then I try to add an image upload behaviour to a file field
When I try to upload the file I get this error
Error:
An error occurred while inserting the records.
File upload error: File upload error. Error creating folder..
File upload error. Internal error.
Developer Details:
tNG_multipleInsert error.
An error occurred while inserting the records. (MINS_ERROR)
File upload error: PHP_UPLOAD_FOLDER_ERROR
File Upload Error. No write permissions in "../../productimages/" folder.
(FILE_UPLOAD_ERROR)
So I login to my server and change the write permissions to 777 and then try again and get the same message
I have closed DW and tried again and still get the same message......
I think I have followed all the steps correctly..... I have done the same type of forms many time and tested them locally on WAMP testing server and all work ok......
So..... Anyone got any ideas
Any help would be great
Have a nice dayOn 5/17/07 4:26 PM, in article [email protected],
"Gü[email protected]" <> wrote:
>
> To my experience servers behave differently -- on some I really had to use
> 777, others are happy with 755.
>
> in regards to "any user" :: On most ADDT respectively MX Kollection - based
> backends I made the image & file upload feature available to user having e.g.
> the "levels" 1 & 2, but not 3 -- I wouldn´t expose something like this to all
> users
>
> Günter Schenk
> Adobe Community Expert, Dreamweaver
My backend is only for admin, so they are the only ones who can access the
upload pages. My concern is an images folder on the site being 777. Can't
anyone from the outside plant a file in that folder if they just know where
to find it using an ftp program? ? -
I have an issue where myself and another user are unable to upload a csv file to my application using the "File Browse" page item in V4.1.1. I get the following error, "Error ORA-01403: no data found".
This function was working perfectly last week prior to the upgrade of our APEX to V4.1.1 from V3. Other users are still able to upload the csv file, so the PL/SQL behind it must be ok.
So here is where I am up to with testing.
Tested the upload using my login on my PC – Fail
Tested the upload using my login on another PC – Fail
Tested the upload using other user’s login on my PC – Success
Tested the upload using other user’s login on another PC - Success
Any help would be greatly appreciated.
Cheers,
GregThe offending piece of code was in a block of script that I used from an online sample when I was first setting up this upload script. A colleague had the same issue in another application and rewrote the script to resolve the issue, see below.
I'm still perplexed as to why the majority of users could run it ok, and there were only 2 of us that it errored on. But now it's working for all, and I can go back to building some cool stuff in V4.1.1.00.23.
-- Read data from wwv_flow_files
select blob_content into v_blob_data
from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USERID)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USERID);
-- Rewritten to the following, which works.
select blob_content into v_blob_data
from wwv_flow_files
where id = (select ID from wwv_flow_files
where UPDATED_BY = :APP_USERID
and LAST_UPDATED = (select max(LAST_UPDATED) from wwv_flow_files where UPDATED_BY = :APP_USERID)); -
ORA-29400: data cartridge error/IMG-00703: unable to read image data error
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
ORA-29400: data cartridge error
IMG-00703: unable to read image data
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 37
ORA-06512: at "ORDSYS.ORDIMAGE", line 927
is raised when the following trigger is processing certain JPGs (example). Other JPGs are handled as expected:
create or replace trigger photo_size_trg
before insert or update on photos
for each row
declare
photo_width integer;
begin
-- Check to see if the new photograph is different from the old one... --
if dbms_lob.compare(:old.photo, :new.photo) != 0
then
-- ...if so, check to see if it's wider than the desired 250 pixel --
-- maximum... --
photo_width := to_number(ordImage.getMetadata(:new.photo)(1).extract('/ordImageAttributes/width/text()').getStringVal());
if photo_width > 250
then
-- ...and if so, apply an image transform that will resize to the photo --
-- to a maximum of 250 pixels wide, keeping the original aspect ratio. --
-- There doesn't seem to be an elegant way of specifying a constraint --
-- in one dimension like this, so the height is specifed as a large --
-- enough value to cover all practical contingencies. --
ordImage.process(:new.photo, 'maxScale=250 10000');
end if;
end if;
end;Any thoughts/suggestions?hi,
I am getting following error,kindly help me out to rectify this ..
thank you
ORA-29400: data cartridge error
ORA-00600: internal error code, arguments: [kokbCollTerminate], [13], [], [], [], [], [], [] -
ADDT multi image upload leads to Fake Record error???
Rather than using a Wizard to create a multi image upload (which wasn't
work!), I created an insert record page, and then created an "upload &
resize image" file action on each of three fields:
Thumb
ItemImage
LargeImage
I designated these fields as file fields in the Insert Record setup, even
though they are text fields because that allows a browse button to be added.
I then added the Upload and Resize action on each of those fields and there
is a place to store the image name in the fields for Thumb, Large, etc.
It appears to be correct, but I got this error when trying to load the page:
Error:
Internal error.
Developer Details:
tNG_fields.getFakeRecordset:
SQL error: Error creating temporary table:
Table 'KT_fakeRS_20080918' already exists <<<<<<<<<<<<!!!!
SQL:
CREATE TEMPORARY TABLE KT_fakeRS_20080918 (LargeImage TEXT, ItemName TEXT,
ItemShortDesc TEXT, ItemLongDesc TEXT, ItemCatID TEXT, LHJ_Number TEXT,
ItemType TEXT, BrandName TEXT, ItemQuantity TEXT, Price TEXT, ItemThumb
TEXT, ItemImage TEXT, catID TEXT) (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
tNG_insert.executeTransaction
STARTER.Trigger_Default_Starter
tNG_insert.getRecordset
tNG_insert.getLocalRecordset
tNG_insert.getFakeRecordset*
Why does this table exist? Is there some duplication in the ADDT code when
adding Upload actions to an existing Insert Record set?
Jeff
Jeff
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.comOn 9/19/08 7:05 PM, in article C4F94626.7F2EF%[email protected],<br />"Jefferis Peterson" <[email protected]> wrote:<br /><br />> <br />> Okay, I'm having a problem here. ItemThumb is a text field that stores the<br />> name of the gif or jpg file.<br />> <br />> I have 3 upload file fields (large, medium, thumb) which are supposed to<br />> store their values (file names??) in the text fields, and I have set the<br />> ItemThumb to receive its value on insert from the file field.<br />> There seems to be a duplication of field insertion requirements here, so I'm<br />> not sure what to make of the problem, but if I remove the text fields from<br />> the insert transaction, there is no option to store their names in those<br />> fields in the file upload dialog box....<br />> <br />> What is odd is that I'm not getting that error on the medium image text file<br />> even thought it is setup exactly the same as the thumb text...<br />> Jeff <br />> <br />> ~~~~~~~~~~~~<br /><br />After checking the database online, it is adding the information to all the<br />file fields but it is not uploading the images to the directories... Not<br />sure what the reason for the error is...<br />~~~~~~~~~~~~<br />Jefferis Peterson, Pres.<br />Web Design and Marketing<br />http://www.PetersonSales.com
Maybe you are looking for
-
Error in report RSPOR_SETUP : "Different Server Times"
Hi, I installed BI 7 and I have configured the communication between BI and EP. When I execute report RSPOR_SETUP to verify the configuration, I am getting the following error message at step 12 (Maintain User Assignment in Portal): 2. Compare SAP BI
-
Dual boot OS 9 on MacBook Pro?
I have a mid-2009 MacBook pro with OS X 10.8.3, is it possible to dual boot it with OS 9? Also, is it possible to use the OS 9 environment by dual booting OS X 10.6 Snow Leopard or OS X 10.5 Leopard?
-
Working with External editors & switching between 32 bit & 64 bit
Finally getting my Aperture 3 up and working (after days of frustration!) I am enjoying the new version now. BUT, my external editor (Photoshop Elements 8 for Mac & Topaz Fusion) will yet only work in 32 bit. After some early teething problems Apertu
-
Why are colors in Illustrator 6 so much darker than in Illustrator 4?
I recently switched from Illustrator CS4 to CS6. The colors in 6 are much darker than in 4, and are not accurate to actual Pantone colors (they were very close to being accurate in 4). Has anyone experienced this, and does anyone know what to do abou
-
Airport Disk Utility not working on Intel mac...
Ok here's a new one... I just got a new macBook (intel) to replace my 12inch G4. On the 12inch, Airport Disk Utility worked just fine recognizing my lacie drive hooked up to AEBS. I used a firewire cable to import settings to the intel macbook and th