<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extracting BLOB data from the database into actual file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349389#M23044</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to extract the BLOB (Binary large objects) data from database (DB2/ORACLE/POSTGRES) and convert it into the actual file either it is pdf/excel/word or jpg using SAS Code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to write the code and I am able to extract the BLOB into actual file where the BLOB length is less than 32767 however for some records the length is greater than 3L so in those cases i have created multiple variables of max length that SAS supports and concatenated these variables while writting to the output file stream. Still the file generated as corrupt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone of you had faced the similar kind of issue and got the solution already please provide your inputs it will be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Darshan Saini&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 11:55:27 GMT</pubDate>
    <dc:creator>Darshan_Saini</dc:creator>
    <dc:date>2017-04-12T11:55:27Z</dc:date>
    <item>
      <title>Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349389#M23044</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to extract the BLOB (Binary large objects) data from database (DB2/ORACLE/POSTGRES) and convert it into the actual file either it is pdf/excel/word or jpg using SAS Code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to write the code and I am able to extract the BLOB into actual file where the BLOB length is less than 32767 however for some records the length is greater than 3L so in those cases i have created multiple variables of max length that SAS supports and concatenated these variables while writting to the output file stream. Still the file generated as corrupt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone of you had faced the similar kind of issue and got the solution already please provide your inputs it will be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Darshan Saini&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 11:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349389#M23044</guid>
      <dc:creator>Darshan_Saini</dc:creator>
      <dc:date>2017-04-12T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349411#M23049</link>
      <description>&lt;PRE&gt;
Can you transform BLOB into Character type column and import SAS ?


&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349411#M23049</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-12T12:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349418#M23050</link>
      <description>&lt;P&gt;In that case also SAS can accept maximum 32767 length only for a variable. I have tried that approach earlier however when I am concatenating the variables and setting to file there it seems to have some problem and the actual file is not getting generated.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349418#M23050</guid>
      <dc:creator>Darshan_Saini</dc:creator>
      <dc:date>2017-04-12T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349486#M23061</link>
      <description>Short answer: no.&lt;BR /&gt;What benefit is it use SAS for this? &lt;BR /&gt;I think that there is some support for BLOBs in Viya, but that's too far away for your requirement I assume...</description>
      <pubDate>Wed, 12 Apr 2017 15:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349486#M23061</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-12T15:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349523#M23067</link>
      <description>Thanks LinusH for the response.&lt;BR /&gt;&lt;BR /&gt;Let me clarify for you here.&lt;BR /&gt;&lt;BR /&gt;I am migrating SAS Oprisk Monitor 3.4 to latest SAS Enterprise GRC 6.1 so I was just trying to extract all the attachments from older version and migrate to newer version on content server.&lt;BR /&gt;&lt;BR /&gt;Benefit is No need to use the custom java or javascript code if we can achieve the solution in SAS itself</description>
      <pubDate>Wed, 12 Apr 2017 16:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349523#M23067</guid>
      <dc:creator>Darshan_Saini</dc:creator>
      <dc:date>2017-04-12T16:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting BLOB data from the database into actual file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349654#M23070</link>
      <description>Ok. If the BLOBs are a part of a SAS solution you may want some guidelines from them how to do the migration.</description>
      <pubDate>Thu, 13 Apr 2017 03:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-BLOB-data-from-the-database-into-actual-file/m-p/349654#M23070</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-13T03:27:57Z</dc:date>
    </item>
  </channel>
</rss>

