473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ORA-01460: unimplemented or unreasonable conversion requested blob insert

2
Hello,

I am trying to insert an blob into a database . For this I am using c++ and microsoft ODBC driver .

The app works fine with files that have less than 4000 bytes . When i am trying to insert a file that has more than 4000 bytes , meaning 3,9 KB it returns : ORA-01460: unimplemented or unreasonable conversion requested .

The database is oracle 11.2.0 . I have searched the internet for a solution but find none .

How could I solve this problem ?

Thanks.
Apr 16 '13 #1
3 3473
Rabbit
12,516 Expert Mod 8TB
I did a quick google search and found this: "attempting to pass a string to a bind variable value in excess of 4000 bytes can result in an ORA-01460"

It sounds like you're binding your variable using a string instead of a lob.
Apr 16 '13 #2
Jonand
2
Hey ,

Yes I am binding a variable using a string .
In c++ ODBC api there is no lob ,blob ,clob type .

I'm using for binding SQL_C_BINARY and SQL_LONGVARBINARY .

Expand|Select|Wrap|Line Numbers
  1. retcode = SQLBindParameter(hstmt,  // hstmt
  2.                                 1,                     // ipar
  3.                                 SQL_PARAM_INPUT,            // fParamType
  4.                                 SQL_C_BINARY,               // fCType
  5.                                 SQL_LONGVARBINARY,           // FSqlType
  6.                                 lbytes,                  // cbColDef
  7.                                 0,                     // ibScale
  8.                                 &rgbValue,       // rgbValue
  9.                                 0,                     // cbValueMax
  10.                                 &cbTextSize);            // pcbValue
I am trying to find a solution .So far no luck .
Any help it would be appreciated .
Apr 17 '13 #3
Rabbit
12,516 Expert Mod 8TB
If the API doesn't have a way to bind a lob, clob, or blob, you may want to look for another API. You can't bind a string larger than 4000 in length.
Apr 17 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bob Kaku | last post by:
I've created a MySQL database to store a large amount of text. Since the text data type in MySQL is limited to 255 characters, I added a BLOB column. I created an PHP input screen to enter the...
1
by: Raaijmakers, Vincent \(GE Infrastructure\) | last post by:
Who can explain the huge increase in size when I convert a JPG into a PNG format using PythonMagick: I read the JPG from a video server and has a resolution of 352x240, size is about 15k After my...
1
by: Mohammad | last post by:
hi when i try to send a blob or Longraw value with more than 32k as parameter to stored procedure in oracle 9i, the following exception raise "ORA-01460 : Unimplemented or Unreasonable...
1
by: Markus | last post by:
This is my TABLE: CREATE TABLE test( data BLOB ) This is my INSERT: INSERT INTO test(data) VALUES (CAST('I am a test' AS BLOB)) But how can I SELECT the data as VARCHAR, so that I can see...
3
by: ven | last post by:
Hello i have two tables in my MS SQL named table1 and table2. In each table i have a column PRICE with my own datatype decimal 14;4 allows nulls.... now i wanna select from one table to second...
2
by: ven | last post by:
Hello i have two tables in my MS SQL named table1 and table2. In each table i have a column PRICE with my own datatype decimal 14;4 allows nulls.... now i wanna select from one table to second...
1
by: Briaaan | last post by:
Hi, I have a webservice that accepts a byte array as a field. I am trying to write this into my sql 2000 database, and have discovered the 8k limit on insert. I have found examples for doing...
2
by: Dabbler | last post by:
I'm getting the following error when I try and insert a row using FormView, ObjectDataSource and stored procedure. The form has 40+ columns on it and I'm not sure how to diagnose where the problem...
3
by: andrewkl | last post by:
hi, I have the following Perl code that inserts a string to an Oracle DB via a stored procedure: #!/usr/local/bin/perl ## Perl v5.8.6 built for sun4-solaris use strict; BEGIN...
2
by: wizardry | last post by:
hello - i'm trying to insert a blob into my table, it will insert but the string that i insert when i query the inserted data returns null with 0 bytes in the column. I have other tables set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.