<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Wed, 05 Mar 2014 22:32:19 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-03-05T22:32:19Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Oracle error ORA-01461when trying to insert into an ORACLE BLOB field</title>
      <link>https://forums.adobe.com/thread/1421563</link>
      <description>&lt;!-- [DocumentBodyStart:764f126c-4db8-4d05-b441-52201c248661] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am getting Oracle error &amp;lsquo;ORA-01461: can bind a LONG value only&amp;nbsp; for insert into a LONG column' when trying to insert into an ORACLE BLOB field. The error occurs when trying to insert a large BLOB (JPG), but does not occur when inserting a small (&amp;lt;1K) picture BLOB.(JPG). Any ideas?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;BTW, when using a SQL Server datasource using the same code.... everything works with no problems.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;ORACLE version is 11.2.0.1&lt;/p&gt;&lt;p&gt;The ORACLE datasource is JDBC using Oracle's JDBC driver ojdbc6.jar v11.2.0.1 (I also have tried ojdbc5.jar v11.2.0.1; ojdbc5.jar v11.2.0.4; and ojdbc6.jar v11.2.0.4 with the same error result.)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is my code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset file_mime = Lcase(Right(postedXMLRoot.objname.XmlText, 3))&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfif file_mime EQ 'jpg'&amp;gt;&amp;lt;cfset file_mime = 'jpeg'&amp;gt;&amp;lt;/cfif&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset file_mime = 'data:image/' &amp;amp; file_mime &amp;amp; ';base64,'&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset image64 = ImageReadBase64("#file_mime##postedXMLRoot.objbase64.XmlText#")&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset ramfile = "ram://" &amp;amp; postedXMLRoot.objname.XmlText&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfimage action="write" source="#image64#" destination="#ramfile#" overwrite="true"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cffile action="readbinary" file="#ramfile#" variable="image_bin"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cffile action="delete" file="#ramfile#"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfquery name="InsertImage" datasource="#datasource#"&amp;gt;&lt;/p&gt;&lt;p&gt;INSERT INTO test_images&lt;/p&gt;&lt;p&gt;( &lt;/p&gt;&lt;p&gt;image_blob&lt;/p&gt;&lt;p&gt;)&lt;/p&gt;&lt;p&gt;SELECT&lt;/p&gt;&lt;p&gt;&amp;lt;cfqueryparam value="#image_bin#" cfsqltype="CF_SQL_BLOB"&amp;gt;&lt;/p&gt;&lt;p&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dual&lt;/p&gt;&lt;p&gt;&amp;lt;/cfquery&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:764f126c-4db8-4d05-b441-52201c248661] --&gt;&lt;img src='/beacon?t=1415921041896' /&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">jdbc</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">oracle</category>
      <pubDate>Wed, 05 Mar 2014 22:32:19 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1421563</guid>
      <dc:date>2014-03-05T22:32:19Z</dc:date>
      <clearspace:dateToText>8 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>SQLITE data acess from a library</title>
      <link>https://forums.adobe.com/thread/764697</link>
      <description>&lt;!-- [DocumentBodyStart:267e5f19-8e94-4939-9818-822ff16cfcb3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;I am starting to look at developing a desktop and a handheld project that requires the same sqlite code.&amp;nbsp; The model/view/controller method suggests that all database code should go into a library that can be shared between the two projects.&amp;nbsp; Problem is, it seems I can't use any classes that involve flash.data in a library.&amp;nbsp; For example, I went to use the following code in my library:&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" style="min-height: 8pt; padding: 0px;" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;&amp;nbsp;&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;...&lt;br/&gt;import flash.data.SQLConnection;&lt;br/&gt;...&lt;br/&gt;public function SQLStatementFactory(aConn:SQLConnection) {&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" style="min-height: 8pt; padding: 0px;" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;&amp;nbsp;&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;and it gives me an error: 1046: Type was not found or is not a compile-time constant: SQLConnection&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" style="min-height: 8pt; padding: 0px;" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;&amp;nbsp;&lt;/p&gt;&lt;p lang="function(){return A.apply(null,[this].concat($A(arguments)))}" ondblclick="" onkeydown="" onkeypress="" onkeyup="" onmousemove="" onmouseout="" onmouseover="" onmouseup="" title="function(){return A.apply(null,[this].concat($A(arguments)))}"&gt;The code works if it is &lt;span&gt;&lt;span&gt;not&lt;/span&gt; &lt;/span&gt;in a library project.&amp;nbsp; If you can't use data access in libraries, how am I supposed to isolate the controller code?&amp;nbsp; Has anyone run across this problem before?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:267e5f19-8e94-4939-9818-822ff16cfcb3] --&gt;</description>
      <pubDate>Mon, 13 Dec 2010 04:03:25 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/764697</guid>
      <dc:date>2010-12-13T04:03:25Z</dc:date>
      <clearspace:dateToText>3 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

