473,499 Members | 1,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing binary data to external file

Hi!

What is standard and direct way (within Oracle 9.2 stored procedures)
for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files
consisting out of "line" of size no more than 32767 bytes and adds new_line
symbol upon closing files.
Also we checked out interMedia types and packages for writing BLOB to
disk but now we get stuck with some strange error messages.

--
With best wishes,
Igor Shulgin
---------------------------------------------------------------------------
JSC Uralsvyazinform | Applied Systems Department
Jul 19 '05 #1
4 9014

Originally posted by Igor Shulgin
Thank you, Tanel.
But I need to _write_ binary data and according "Database
Concepts"
(p.355):
"BFILEs are read-only; you cannot modify them"
--
With best wishes,
Igor Shulgin
--------------------------------------------------------------------
--------
JSC Uralsvyazinform | Applied Systems Department
"Tanel Poder" <ch*********************@integrid.info> wrote in message
news:3f**********@news.estpak.ee"]news:3f**********@news.estpak-
.ee[/url]...
Igor,
Check for BFILE datatype.
Tanel.
"Igor Shulgin" <ig**********@chelptt.ru> wrote in message
news:bh***********@image.surnet.ru"]news:bh7ab1$11gn$1@im-

age.surnet.ru[/url]...
Hi!

What is standard and direct way (within Oracle 9.2 stored
procedures) for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files consisting out of "line" of size no more than 32767 bytes and adds
new_line
symbol upon closing files.
Also we checked out interMedia types and packages for

writing BLOB
to disk but now we get stuck with some strange error

messages.

I think I provided you a usefull link in same post but different thread.
It's your choice to ignore replies to your posts.

Regards
/Rauf Sarwar

--
Posted via http://dbforums.com
Jul 19 '05 #2
"Igor Shulgin" <ig**********@chelptt.ru> wrote in message news:<bh***********@image.surnet.ru>...
Hi!

What is standard and direct way (within Oracle 9.2 stored procedures)
for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files
consisting out of "line" of size no more than 32767 bytes and adds new_line
symbol upon closing files.
Also we checked out interMedia types and packages for writing BLOB to
disk but now we get stuck with some strange error messages.


Igor, are you using put_raw to perform the write operation?

There is no need to cross-post.

HTH -- Mark D Powell --
Jul 19 '05 #3
Mark D Powell wrote:
"Igor Shulgin" <ig**********@chelptt.ru> wrote in message news:<bh***********@image.surnet.ru>...
Hi!

What is standard and direct way (within Oracle 9.2 stored procedures)
for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files
consisting out of "line" of size no more than 32767 bytes and adds new_line
symbol upon closing files.
Also we checked out interMedia types and packages for writing BLOB to
disk but now we get stuck with some strange error messages.

Igor, are you using put_raw to perform the write operation?

There is no need to cross-post.

HTH -- Mark D Powell --

afaicr, Tom Kyte stated that the 32k is a utl_file boundary.
You will have to use another program, or the LOB packages,
as you suggested. Without the actual errors, no dice

--
Regards, Frank van Bortel

Jul 19 '05 #4
On Tue, 19 Aug 2003 4:03:05 +0800, Frank wrote
(in message <bh**********@news2.tilbu1.nb.home.nl>):
Mark D Powell wrote:
"Igor Shulgin" <ig**********@chelptt.ru> wrote in message
news:<bh***********@image.surnet.ru>...
Hi!

What is standard and direct way (within Oracle 9.2 stored procedures)
for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files
consisting out of "line" of size no more than 32767 bytes and adds
new_line
symbol upon closing files.
Also we checked out interMedia types and packages for writing BLOB to
disk but now we get stuck with some strange error messages.

Igor, are you using put_raw to perform the write operation?

There is no need to cross-post.

HTH -- Mark D Powell --

afaicr, Tom Kyte stated that the 32k is a utl_file boundary.
You will have to use another program, or the LOB packages,
as you suggested. Without the actual errors, no dice


use the java file packages, there you have no limit.

steve

Jul 19 '05 #5

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

Similar topics

4
6393
by: john smith | last post by:
Hi, I have a file format that is going to contain some parts in ascii, and some parts with raw binary data. Should I open this file with ios::bin or no? For example: filename: a.bin number of...
6
23555
by: Sebastian Kemi | last post by:
How should a write a class to a file? Would this example work: object *myobject = 0; tfile.write(reinterpret_cast<char *>(myobject), sizeof(*object)); / sebek
5
5540
by: rob | last post by:
hey every1, I've got alot of data to write out to file and it's all just 1's and 0's. It's all stored in 2 dimensional arrays of width 32 and varying height. At the moment it's all just...
6
5615
by: DanielEKFA | last post by:
Hey there :) I was once told that the STL classes had member functions to write their data to disk and to restore that data. Searching google (and why are there no "stl" or "map" manpages?), it...
103
48479
by: Steven T. Hatton | last post by:
§27.4.2.1.4 Type ios_base::openmode Says this about the std::ios::binary openmode flag: *binary*: perform input and output in binary mode (as opposed to text mode) And that is basically _all_ it...
3
18952
by: nicolasg | last post by:
Hi, I'm trying to open a file (any file) in binary mode and save it inside a new text file. After that I want to read the source from the text file and save it back to the disk with its...
6
5237
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
4
244
by: Igor Shulgin | last post by:
Hi! What is standard and direct way (within Oracle 9.2 stored procedures) for writing binary data from Oracle to external file on disk? We have tried to use UTL_FILE package, but it operates on...
5
3793
by: zehra.mb | last post by:
Hi, I had written application for storing employee data in binary file and reading those data from binary file and display it in C language. But I face some issue with writing data to binary file....
0
7171
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,...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
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...
0
5468
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,...
0
4599
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...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
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...

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.