{"id":490,"date":"2016-08-17T11:18:29","date_gmt":"2016-08-17T16:18:29","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=490"},"modified":"2024-05-14T09:14:07","modified_gmt":"2024-05-14T14:14:07","slug":"tcc-exporting-attached-file-content-using-subqueries-doc-id-1900597-1","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=490","title":{"rendered":"TCC &#8211; Exporting Attached File Content Using Subqueries (Doc ID 1900597.1)"},"content":{"rendered":"<p>I saw this while I was digging for some other information and it made me wonder if it will work with exporting issues we see with descriptions and qualifications.<\/p>\n<p>Will have that answer soon&#8230;<\/p>\n<h2 class=\"km\">Goal<\/h2>\n<p>When executing the sub-query result of a CLOB or BLOB projection, TCC returns the signature of the underlying object (e.g.: oracle.sql.BLOB@334693be), rather than the actual content.<\/p>\n<p>To get the actual content the projections must use a data type cast, but the lob cast in Oracle has a 4000 characters limit, which is insufficient for many attached files.<\/p>\n<h2 class=\"km\"><a name=\"FIX\"><\/a>Solution<\/h2>\n<p>In the complex projection, set the <span id=\"form1:panelPage1\">projectedValueType to &#8220;[B&#8221;, <\/span>example as following<\/p>\n<p><span id=\"form1:panelPage1\">&lt;quer:projection alias=&#8221;BLOB&#8221; projectedValueType=&#8221;[B&#8221; xmlns:quer=&#8221;<a title=\"Click (or CTRL+Click if using Firefox) to view\" href=\"http:\/\/www.taleo.com\/ws\/integration\/query%22%3E\" target=\"_blank\" name=\"contextTextUrl_1403843716371\" rel=\"noopener\"><\/a><span id=\"3-48I0YX31403843716371\">http:\/\/www.taleo.com\/ws\/integration\/query&#8221;&gt;<\/span><\/span><\/p>\n<p>See the attached <a title=\"Sample of the Blob Export in the subquery\" href=\"https:\/\/support.oracle.com\/epmos\/main\/downloadattachmentprocessor?parent=DOCUMENT&amp;sourceId=1900597.1&amp;attachid=1900597.1:SAMPLE&amp;clickstream=yes\">sample<\/a>\u00a0for a complete example.<\/p>\n<h2 class=\"km\"><a name=\"REF\"><\/a>References<\/h2>\n<p><span id=\"kmPgTpl:sd_r1:0:dv_rDoc:ot71\" class=\"kmContent\"><a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?parent=DOCUMENT&amp;sourceId=1900597.1&amp;id=1047850.1\">NOTE:1047850.1<\/a> &#8211; SD6210 &#8211; Exported Attached Files<br \/>\n<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?parent=DOCUMENT&amp;sourceId=1900597.1&amp;id=1047912.1\">NOTE:1047912.1<\/a> &#8211; SD6243 &#8211; Base64 String Decoding<br \/>\n<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/BugDisplay?parent=DOCUMENT&amp;sourceId=1900597.1&amp;id=18642011\" target=\"_blank\" rel=\"noopener\">BUG:18642011<\/a> &#8211; EXPORT FILECONTENT IN SUBQUERIES PROJECTIONS<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I saw this while I was digging for some other information and it made me wonder if it will work with exporting issues we see with descriptions and qualifications. Will have that answer soon&#8230; Goal When executing the sub-query result of a CLOB or BLOB projection, TCC returns the signature of the underlying object (e.g.: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-7U","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":2,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":991,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions\/991"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}