473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to insert BLOB?

Hi,

Is it possible to insert BLOB data without doing a select first? I have
data available and want to insert a row with BLOB data.

Should I use the callback function with OCILobWrite() or is it not
possible at all without doing a select?

How about using a temporary LOB? I have tried everything I could come up
with but nothing seems to work.

Thanks in advance?
Br,
Ole Hansen

Jul 19 '05 #1
2 17803
Use GetChunk and PutChunk methods of adodb.recordset
hope that would do
Ole Hansen <rm*******@city .dk> wrote in message news:<3f******* *************** *@dread16.news. tele.dk>...
Hi,

Is it possible to insert BLOB data without doing a select first? I have
data available and want to insert a row with BLOB data.

Should I use the callback function with OCILobWrite() or is it not
possible at all without doing a select?

How about using a temporary LOB? I have tried everything I could come up
with but nothing seems to work.

Thanks in advance?
Br,
Ole Hansen

Jul 19 '05 #2
Im using the array interface with OCI but still have problems although I
now succeeded inserting one row with BLOB columns.

Thanks.
Ole
SoftwareEngr wrote:
Use GetChunk and PutChunk methods of adodb.recordset
hope that would do
Ole Hansen <rm*******@city .dk> wrote in message news:<3f******* *************** *@dread16.news. tele.dk>...
Hi,

Is it possible to insert BLOB data without doing a select first? I have
data available and want to insert a row with BLOB data.

Should I use the callback function with OCILobWrite() or is it not
possible at all without doing a select?

How about using a temporary LOB? I have tried everything I could come up
with but nothing seems to work.

Thanks in advance?
Br,
Ole Hansen


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2900
by: Ole Hansen | last post by:
Hi, I have a working application inserting rows to a table using the array interface. Now I want to insert BLOBs as well but OCIStmtExecute crashes when executed with BLOBs. For BLOB types I use OCIDescriptorAlloc() and uses this to allocate space for my data (app. 1Mb). Afterwards I store data in memory allocated by OCIDescripterAlloc.
2
6880
by: Niraj | last post by:
Hi, I am trying to do bulk insert of binary data (array of bytes) in an Oracle table. The data type of the table is BLOB. I am using Oracle Objects for OLE (OO4O) in C++. The binary data that I have to insert is in the form of byte array. My problem is that the bulk inserts happen only as long as the length of array is less than 4K. Any data more than 4K gets truncated. Is it possible to do bulk inserts in a BLOB field with data more...
11
23035
by: Chris Fink | last post by:
I have setup an Oracle table which contains a blob field. How do I insert data into this field using C# and ADO.net?
0
2397
by: yoyo | last post by:
DOes anybody have a working example of how do make this work? I've tried everything I could find, Clara patch, many non-working examples using pack, baseencode, addslashes, str_replace, bin2hex, hex2bin, for read only, using different db2 dataypes blob,clob etc.....I'd post code but I've tried too many to list. just an example would be excellent. I've been trying 2 days now. I know there is a php bug report 25118...
1
5379
by: cricrin | last post by:
Hello guys! This is Cristian From Argentina, and I wanted to ask you some help, I've looking on this and it makes me mad, I found that the error is in the $content , when y try to insert the record into the table via PHP code i receive an error message saying that the sin taxis its incorrect,however if i print the query echo ($query) and i copy and paste the query in the PHPmyAdmin the insert executes successfully. the $content variable...
1
16321
by: shallowpool | last post by:
Can someone provide me the simple syntax necessary to insert or update to a row containing a single BLOB column, where the BLOB data will be obtained from a file? This is on a linux installation. The table has 2 INTs and 1 BLOB column. So, I've scoured various docs and such, and the closest I've come up with is some sort of animal that looks like this: db2 load from /tmp/myblobfile of asc method L (1 780) insert into......
6
29895
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I'm using JDBC to connect to DB2. I have a binary data (array of bytes) and want to save them. Is it possible to write an INSERT statement to do this: INSERT INTO TABLE (ID, BYTES) VALUES(1, '0x33 0x34') -- for example or do I have to use PreparedStatement and setBlob/setBytes method? Best regards,
2
442
by: Ole Hansen | last post by:
Hi, Is it possible to insert BLOB data without doing a select first? I have data available and want to insert a row with BLOB data. Should I use the callback function with OCILobWrite() or is it not possible at all without doing a select? How about using a temporary LOB? I have tried everything I could come up with but nothing seems to work.
2
5054
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 up this way and i'm able to insert text data into it with no problems. I've checked the database design its basiclly a duplicate. I did have to remove my not null on the long blob element. but other then that, i don't understand why this is...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.