<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged blob</title>
<link>https://overflow.efficy.io/?qa=tag/blob</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to extract blob data from a Maximizer Database to an Effciy database</title>
<link>https://overflow.efficy.io/?qa=6764/extract-blob-data-from-maximizer-database-effciy-database</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
I need to import all the documents from a Maximizer SQL Database to an Efficy Database.&lt;br&gt;
Is it possible ?&lt;br&gt;
If yes how ?&lt;br&gt;
Thank you&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6764/extract-blob-data-from-maximizer-database-effciy-database</guid>
<pubDate>Sun, 20 Nov 2022 21:32:39 +0000</pubDate>
</item>
<item>
<title>How to import PICTURE (BLOB) from an External Database into an Efficy PICTURE field ?</title>
<link>https://overflow.efficy.io/?qa=2717/import-picture-blob-external-database-efficy-picture-field</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;I have to import PICTURES into Efficy PICTURE fields from an External ORACLE Database into an Efficy Database by using a Datasync, but the following code is not working (No Error but the PICTURE field stay empty) : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Database.UpdateCategory(EditHandle, 'PROP$BROCHURE', 'F_PIC' + indexPic, DataStore.AsString('PICR_DATA'));
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;PICR_DATA is an Oracle Blob&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2717/import-picture-blob-external-database-efficy-picture-field</guid>
<pubDate>Tue, 03 Oct 2017 13:28:15 +0000</pubDate>
</item>
<item>
<title>Is there a way to base64 encode a database.OpenUrl() result ?</title>
<link>https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</link>
<description>&lt;p&gt;Hi !&lt;/p&gt;

&lt;p&gt;Does anyone knows if there is a manner or possibility to get a http request's response encoded to a base64 string ? &lt;/p&gt;

&lt;p&gt;We have to display a captcha png (generated with captcha.net) on a guest page, but the problem is that we can see (in developer mode on browser) the ajax call done to captcha.net and this one contains credentials.&lt;/p&gt;

&lt;p&gt;I saw that there is the TMagickWand object to display images from disk, but does it work with web paths ?&lt;br&gt;
I tried something like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;return &quot;data:image/png;base64,&quot; + database.openUrl(url, &quot;&quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But it don't gives correct base64, maybe that we should use some kind of encoding on the database.openUrl(url, &quot;&quot;) result ? and then concatenate it with &quot;data:image/png;base64,&quot; ?&lt;/p&gt;

&lt;p&gt;Thank you in advance !&lt;/p&gt;

&lt;p&gt;Angel&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</guid>
<pubDate>Thu, 24 Aug 2017 20:46:38 +0000</pubDate>
</item>
<item>
<title>How to save a picture (base64 encoded) in the database through serverscript?</title>
<link>https://overflow.efficy.io/?qa=2417/save-picture-base64-encoded-database-through-serverscript</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For a Customer who uses an external website to add contacts, etc in their Efficy (Summer 2012). Multiple calls are possible like update user, create user, create/modify actions,..&lt;/p&gt;

&lt;p&gt;All these calls are posted to the serverscripts in the guestpage. All values are read correctly but we encounter 1 problem with an image.&lt;/p&gt;

&lt;p&gt;In the arguments 'picture' is defined and expects an long string (base64 encoded).&lt;br&gt;
For example: &lt;code&gt;&quot;iVBORw0KGgoAAAANSUhEUgAAAdgAAAG6CAYAAACr5VfIAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAGXRFWHRTb2Z0d2...&quot; and this goes on for a while.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;As we are in serverscripts, I could not use windows object/functions.&lt;/p&gt;

&lt;p&gt;When we save, we are using the next line.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Database.UpdateFields(ContContext, 0,  'PICTURE', picture);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where picture is saved now is a normal string, I could not convert it to a blob, stream.&lt;br&gt;
Converting the string to the following format did not work as well.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var picture =  &quot;data:image/png;base64, ...&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In db editor I can see the 'hugeblob' of an existing picture of a contact for example, on top defined the content type and below non readable text. &lt;/p&gt;

&lt;p&gt;Has anyone already managed to save this to the database as blob?&lt;br&gt;
It would be a great help because of the external website, there are not any other feasible options.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;br&gt;
Kind regards,&lt;/p&gt;

&lt;p&gt;Jonas Vdb&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2417/save-picture-base64-encoded-database-through-serverscript</guid>
<pubDate>Mon, 03 Apr 2017 08:19:30 +0000</pubDate>
</item>
<item>
<title>How importing an blob image field from an eLink database to an Efficy database via DataSynchro</title>
<link>https://overflow.efficy.io/?qa=1539/importing-image-field-database-efficy-database-datasynchro</link>
<description>&lt;p&gt;I need to update an image field into a category on Efficy provided by eLink.&lt;br&gt;
By default this code doesn't work. &lt;/p&gt;

&lt;p&gt;I tried : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  Database.ActivateCategory(EditHandle, 'DOCU$ORG')    
  var CategoryDataSet = Database.GetCategoryDataSet(EditHandle, 'DOCU$ORG')
  CategoryDataSet.Edit         
  CategoryDataSet.FieldByName('F_VISUEL').AsWideString = DataStore.AsString('F_VISUEL')
  CategoryDataSet.Save
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;pre&gt;&lt;code&gt; Database.ActivateCategory(EditHandle, 'DOCU$ORG')   
 Database.UpdateCategory(EditHandle, 'DOCU$ORG', 'F_VISUEL', DataStore.AsString('F_VISUEL')) 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In all cases blob is not updating properly. File seem corrupted. &lt;br&gt;
We tried to do a smartCompress but not recognize into a DataSynchro.&lt;/p&gt;

&lt;p&gt;Any idea to transfer these BLOB ? &lt;/p&gt;

&lt;p&gt;In both cases it's an SQL SERVER 2003 connector&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1539/importing-image-field-database-efficy-database-datasynchro</guid>
<pubDate>Thu, 21 Apr 2016 07:55:18 +0000</pubDate>
</item>
</channel>
</rss>