<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBQuery.SetParamBlobFromFile</id>
	<title>PdcDBQuery.SetParamBlobFromFile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBQuery.SetParamBlobFromFile"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBQuery.SetParamBlobFromFile&amp;action=history"/>
	<updated>2026-05-06T17:15:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcDBQuery.SetParamBlobFromFile&amp;diff=3289&amp;oldid=prev</id>
		<title>TC: Created page with &quot;== Declaration == SetParamBlobFromFile(ParameterName as string, FilePath as string) as boolean == Description == Changes the value of the parameter with the binary value of a ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBQuery.SetParamBlobFromFile&amp;diff=3289&amp;oldid=prev"/>
		<updated>2021-01-19T09:23:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == SetParamBlobFromFile(ParameterName as string, FilePath as string) as boolean == Description == Changes the value of the parameter with the binary value of a ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
SetParamBlobFromFile(ParameterName as string, FilePath as string) as boolean&lt;br /&gt;
== Description ==&lt;br /&gt;
Changes the value of the parameter with the binary value of a specific file at location &amp;#039;Filepath&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Changes the value of the parameter with the binary value of a specific file at location &amp;#039;Filepath&amp;#039;.&lt;br /&gt;
The result returns it was succesfull or not.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This code example executes a SQL statement with parameters.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
Sub sExecuteQuery&lt;br /&gt;
dim objQuery&lt;br /&gt;
&lt;br /&gt;
  set objQuery = pdc.Database.OpenQuery(pdcConData)&lt;br /&gt;
  objQuery.SQL = &amp;quot;SELECT do_ordnr &lt;br /&gt;
                  FROM do_calc &lt;br /&gt;
                  WHERE do_kstsrt=:ParamOne AND do_vink1=:ParamTwo AND &lt;br /&gt;
                        do_lever=:ParamThree AND do_datin=:ParamFour AND &lt;br /&gt;
                        do_prdcmb=:ParamFive AND do_fact=:ParamSix&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  objQuery.SetParamStr      &amp;quot;ParamOne&amp;quot;, &amp;quot;8000&amp;quot;&lt;br /&gt;
  objQuery.SetParamBool     &amp;quot;ParamTwo&amp;quot;, True&lt;br /&gt;
  objQuery.SetParamDate     &amp;quot;ParamThree&amp;quot;, Date()&lt;br /&gt;
  objQuery.SetParamDateTime &amp;quot;ParamFour&amp;quot;, Now()&lt;br /&gt;
  objQuery.SetParamInt      &amp;quot;ParamFive&amp;quot;, 1003456&lt;br /&gt;
  objQuery.SetParamDbl      &amp;quot;ParamSix&amp;quot;, 678.56&lt;br /&gt;
  &lt;br /&gt;
  if objQuery.Execute then&lt;br /&gt;
    if not objQuery.Eof then&lt;br /&gt;
      dim strCalcNo    &lt;br /&gt;
      strCalcNo = objQuery.GetField(&amp;quot;do_ordnr&amp;quot;)&lt;br /&gt;
      msgbox strCalcNo &lt;br /&gt;
    &lt;br /&gt;
      objQuery.SQL = &amp;quot;update do_calc &lt;br /&gt;
                      set do_image = :ImageFromFile&lt;br /&gt;
                      where do_ordnr=:CalcNo&amp;quot;&lt;br /&gt;
&lt;br /&gt;
      objQuery.SetParamStr          &amp;quot;CalcNo&amp;quot;, strCalcNo&lt;br /&gt;
      objQuery.SetParamBlobFromFile &amp;quot;ImageFromFile&amp;quot;, &amp;quot;c:\temp\filename.pdf&amp;quot;&lt;br /&gt;
      if not objQuery.Execute then&lt;br /&gt;
        msgbox &amp;quot;Error:&amp;quot; &amp;amp; vbCrLf &amp;amp; pdc.LastError &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; &amp;quot;SQL:&amp;quot; &amp;amp; vbCrLf &amp;amp; objQuery.SQL&lt;br /&gt;
      end if&lt;br /&gt;
    end if&lt;br /&gt;
  else&lt;br /&gt;
    msgbox &amp;quot;Error:&amp;quot; &amp;amp; vbCrLf &amp;amp; pdc.LastError &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; &amp;quot;SQL:&amp;quot; &amp;amp; vbCrLf &amp;amp; objQuery.SQL&lt;br /&gt;
  end if&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since May 2019 (from version 5.5)&lt;/div&gt;</summary>
		<author><name>TC</name></author>
	</entry>
</feed>