<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.linuxnetworks.de/doc/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.linuxnetworks.de/doc/index.php?action=history&amp;feed=atom&amp;title=OpenDBX%2FC_API%2Fodbx_lo_write</id>
		<title>OpenDBX/C API/odbx lo write - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.linuxnetworks.de/doc/index.php?action=history&amp;feed=atom&amp;title=OpenDBX%2FC_API%2Fodbx_lo_write"/>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;action=history"/>
		<updated>2026-06-09T08:00:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.11</generator>

	<entry>
		<id>https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3644&amp;oldid=prev</id>
		<title>Nose: moved OpenDBX/API/odbx lo write to OpenDBX/C API/odbx lo write</title>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3644&amp;oldid=prev"/>
				<updated>2009-04-28T21:16:41Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/doc/index.php?title=OpenDBX/API/odbx_lo_write&quot; class=&quot;mw-redirect&quot; title=&quot;OpenDBX/API/odbx lo write&quot;&gt;OpenDBX/API/odbx lo write&lt;/a&gt; to &lt;a href=&quot;/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&quot; title=&quot;OpenDBX/C API/odbx lo write&quot;&gt;OpenDBX/C API/odbx lo write&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:16, 28 April 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nose</name></author>	</entry>

	<entry>
		<id>https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3390&amp;oldid=prev</id>
		<title>Nose: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3390&amp;oldid=prev"/>
				<updated>2008-05-23T22:49:54Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:49, 23 May 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nose</name></author>	</entry>

	<entry>
		<id>https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3389&amp;oldid=prev</id>
		<title>: docbook2x update</title>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3389&amp;oldid=prev"/>
				<updated>2008-05-23T22:49:54Z</updated>
		
		<summary type="html">&lt;p&gt;docbook2x update&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:49, 23 May 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3337&amp;oldid=prev</id>
		<title>Nose: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3337&amp;oldid=prev"/>
				<updated>2008-05-23T22:33:26Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:33, 23 May 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nose</name></author>	</entry>

	<entry>
		<id>https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3336&amp;oldid=prev</id>
		<title>: docbook2x update</title>
		<link rel="alternate" type="text/html" href="https://www.linuxnetworks.de/doc/index.php?title=OpenDBX/C_API/odbx_lo_write&amp;diff=3336&amp;oldid=prev"/>
				<updated>2008-05-23T22:33:26Z</updated>
		
		<summary type="html">&lt;p&gt;docbook2x update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
'''Writes buffer content into the large object'''&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;opendbx/api.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ssize_t '''odbx_lo_write'''(&lt;br /&gt;
     odbx_lo_t* '''''lo''''',&lt;br /&gt;
     void* '''''buffer''''',&lt;br /&gt;
     size_t '''''buflen''''' )&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
[[OpenDBX/API/odbx_lo_write|odbx_lo_write]]() sends the data supplied in '''''buffer''''' to the server for storing it inside the large object. The function can be called more than once to add subsequent parts of the content to the object. If it isn't a new or empty object, the existing data will be overwritten and truncated to the new size. It's not possible to update only parts of the content as some databases doesn't support to position the internal file position indicator.&lt;br /&gt;
&lt;br /&gt;
The '''''lo''''' parameter has to be the large object handle created and returned by [[OpenDBX/API/odbx_lo_open|odbx_lo_open]]() via its second parameter. It becomes invalid after it was supplied to [[OpenDBX/API/odbx_lo_close|odbx_lo_close]]() and this function will return an error in this case. The data which should be send to the server is read from '''''buffer''''' up to '''''buflen''''' bytes.&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
[[OpenDBX/API/odbx_lo_write|odbx_lo_write]]() returns the number of bytes read from '''''buffer''''' and sent to the database server, which may be up to '''''buflen''''' bytes. It isn't guaranteed that the complete chunk was sent to the server, so the returned size may be less than the value in '''''buflen'''''. On error, a code whose value is less than zero is returned if one of the operations couldn't be completed successfully. Possible error codes are listed in the error section and they can be feed to [[OpenDBX/API/odbx_error|odbx_error]]() and [[OpenDBX/API/odbx_error_type|odbx_error_type]]() to get further details.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
&lt;br /&gt;
; -ODBX_ERR_BACKEND : The native database library couldn't write to the large object successfully&lt;br /&gt;
; -ODBX_ERR_HANDLE : '''''lo''''' is NULL or the supplied large object handle is invalid&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[OpenDBX/API/odbx_lo_open|odbx_lo_open]]()&lt;br /&gt;
* [[OpenDBX/API/odbx_lo_close|odbx_lo_close]]()&lt;/div&gt;</summary>
			</entry>

	</feed>