# Adding Blob field to GeoDatabase

**URL:** <https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281>\
**Category:** WinForms\
**Created:** [August 8, 2013, 3:21pm UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281 "2013-08-08T15:21:40Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 8, 2013, 3:21pm UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/1 "2013-08-08T15:21:40Z")

</div>

Hi&nbsp;All,  
  
  
  
I&nbsp;am&nbsp;wondering&nbsp;if&nbsp;there&nbsp;is&nbsp;anyway&nbsp;to&nbsp;add&nbsp;a&nbsp;feature&nbsp;column&nbsp;to&nbsp;a&nbsp;geodatabase&nbsp;field&nbsp;that&nbsp;is&nbsp;of&nbsp;type&nbsp;Blob&nbsp;using&nbsp;the&nbsp;FileGeoDatabaseFeatureLayer&nbsp;class.&nbsp;&nbsp;The&nbsp;idea&nbsp;being&nbsp;that&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;load&nbsp;the&nbsp;blob&nbsp;(for&nbsp;example&nbsp;a&nbsp;pdf&nbsp;file)&nbsp;when&nbsp;the&nbsp;user&nbsp;clicks&nbsp;a&nbsp;feature&nbsp;on&nbsp;the&nbsp;map.  
  
  
  
According&nbsp;to&nbsp;ArcGIS&nbsp;(below&nbsp;link),&nbsp;this&nbsp;is&nbsp;a&nbsp;supported&nbsp;type&nbsp;for&nbsp;the&nbsp;geodatabase&nbsp;table;&nbsp;however,&nbsp;I&nbsp;can’t&nbsp;seem&nbsp;to&nbsp;add&nbsp;anything&nbsp;other&nbsp;than&nbsp;string&nbsp;type&nbsp;columns&nbsp;to&nbsp;FeatureSourceColumns&nbsp;or&nbsp;to&nbsp;the&nbsp;geodatabase&nbsp;table&nbsp;itself.  
  
  
  
[webhelp.esri.com/arcgisdeskt…ta%20types](http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Geodatabase%20field%20data%20types)  
  
  
  
Thanks,  
  
Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 9, 2013, 3:22am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/2 "2013-08-09T03:22:20Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;and&nbsp;I&nbsp;agree&nbsp;with&nbsp;you&nbsp;this&nbsp;is&nbsp;a&nbsp;good&nbsp;new&nbsp;feature,&nbsp;I&nbsp;have&nbsp;added&nbsp;it&nbsp;to&nbsp;our&nbsp;internal&nbsp;issue&nbsp;system,&nbsp;but&nbsp;I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;right&nbsp;now&nbsp;we&nbsp;don’t&nbsp;have&nbsp;enough&nbsp;resource&nbsp;for&nbsp;it,&nbsp;we&nbsp;will&nbsp;do&nbsp;it&nbsp;when&nbsp;we&nbsp;have&nbsp;enough&nbsp;resource.&nbsp;Or&nbsp;if&nbsp;you&nbsp;need&nbsp;this&nbsp;function&nbsp;immediately,&nbsp;your&nbsp;account&nbsp;rep&nbsp;can&nbsp;contact&nbsp;you&nbsp;for&nbsp;a&nbsp;professional&nbsp;services.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;Regards&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 9, 2013, 8:32am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/3 "2013-08-09T08:32:30Z")

</div>

Thanks&nbsp;Summer,&nbsp;I&nbsp;will&nbsp;stay&nbsp;tuned&nbsp;for&nbsp;an&nbsp;update.&nbsp;  
&nbsp;&nbsp;  
&nbsp;While&nbsp;you&nbsp;are&nbsp;at&nbsp;it,&nbsp;you&nbsp;should&nbsp;probably&nbsp;go&nbsp;ahead&nbsp;and&nbsp;cater&nbsp;for&nbsp;all&nbsp;allowable&nbsp;field&nbsp;types&nbsp;as&nbsp;I’ve&nbsp;already&nbsp;come&nbsp;across&nbsp;some&nbsp;need&nbsp;to&nbsp;aggregate&nbsp;numeric&nbsp;fields&nbsp;which&nbsp;would&nbsp;be&nbsp;easier&nbsp;if&nbsp;I&nbsp;could&nbsp;directly&nbsp;pass&nbsp;the&nbsp;data&nbsp;to&nbsp;Linq.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 12, 2013, 5:40am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/4 "2013-08-12T05:40:57Z")

</div>

Hi&nbsp;Damian,&nbsp;  
  
  
  
Thanks&nbsp;for&nbsp;your&nbsp;advice.&nbsp;We&nbsp;will&nbsp;take&nbsp;it&nbsp;into&nbsp;consideration.&nbsp;And&nbsp;anything&nbsp;new&nbsp;will&nbsp;be&nbsp;uploaded&nbsp;here&nbsp;immediately.  
  
  
  
if&nbsp;you&nbsp;have&nbsp;any&nbsp;more&nbsp;question&nbsp;,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
  
  
  
Best&nbsp;Regards&nbsp;  
  
  
  
Summer

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 14, 2013, 2:14am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/5 "2013-08-14T02:14:50Z")

</div>

Hi&nbsp;Damian,  
  
  
  
Now&nbsp;blob&nbsp;is&nbsp;available&nbsp;in&nbsp;7.0.64.0(&nbsp;this&nbsp;is&nbsp;a&nbsp;new&nbsp;feature&nbsp;so&nbsp;it&nbsp;is&nbsp;only&nbsp;in&nbsp;7.0.64.0,&nbsp;still&nbsp;in&nbsp;build&nbsp;will&nbsp;be&nbsp;available&nbsp;in&nbsp;hours),&nbsp;please&nbsp;install&nbsp;the&nbsp;"unmanaged&nbsp;dependencies&nbsp;msi"&nbsp;in&nbsp;7.0.64.0&nbsp;dll&nbsp;packages.&nbsp;attached&nbsp;is&nbsp;a&nbsp;sample&nbsp;code&nbsp;to&nbsp;test&nbsp;it,&nbsp;would&nbsp;you&nbsp;please&nbsp;try&nbsp;it?  
  
  
  
Hope&nbsp;it&nbsp;helps  
  
  
  
Summer  
  
[001\_blobsample.txt](https://community.thinkgeo.com/uploads/default/original/2X/4/4ac965c33b37afcfbe5bdf672f0534c61f419e67.txt) (1.53 KB)

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 14, 2013, 5:52am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/6 "2013-08-14T05:52:08Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;There&nbsp;is&nbsp;a&nbsp;change&nbsp;in&nbsp;build&nbsp;process,&nbsp;the&nbsp;blob&nbsp;will&nbsp;be&nbsp;availabe&nbsp;in&nbsp;7.0.65.0,&nbsp;would&nbsp;you&nbsp;please&nbsp;wait&nbsp;for&nbsp;one&nbsp;more&nbsp;day?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;Regards&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 14, 2013, 4:20pm UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/7 "2013-08-14T16:20:32Z")

</div>

Hi&nbsp;Summer,  
  
  
  
I&nbsp;downloaded&nbsp;7.0.0.65&nbsp;and&nbsp;I&nbsp;have&nbsp;the&nbsp;problem&nbsp;that&nbsp;there&nbsp;is&nbsp;no&nbsp;overload&nbsp;for&nbsp;CreateTable&nbsp;that&nbsp;allows&nbsp;for&nbsp;a&nbsp;signature&nbsp;of&nbsp;string,&nbsp;string,&nbsp;IEnumerable\<FeatureSourceColumn\>.&nbsp;&nbsp;It’s&nbsp;still&nbsp;expecting&nbsp;all&nbsp;string&nbsp;values.&nbsp;&nbsp;Maybe&nbsp;the&nbsp;update&nbsp;didn’t&nbsp;make&nbsp;it&nbsp;to&nbsp;that&nbsp;version&nbsp;number.  
  
  
  
Also,&nbsp;I&nbsp;notice&nbsp;that&nbsp;the&nbsp;version&nbsp;of&nbsp;unmanaged&nbsp;assemblies&nbsp;installer&nbsp;was&nbsp;just&nbsp;7.0.0.59&nbsp;in&nbsp;this&nbsp;package.&nbsp;&nbsp;Did&nbsp;it&nbsp;miss&nbsp;update?  
  
  
  
Does&nbsp;it&nbsp;mean&nbsp;other&nbsp;column&nbsp;types&nbsp;are&nbsp;now&nbsp;supported&nbsp;because&nbsp;it&nbsp;takes&nbsp;FeatureSourceColumn?&nbsp;&nbsp;If&nbsp;so,&nbsp;I&nbsp;would&nbsp;love&nbsp;if&nbsp;typeName&nbsp;of&nbsp;the&nbsp;FeatureSourceColumn&nbsp;could&nbsp;be&nbsp;changed&nbsp;into&nbsp;a&nbsp;Enum&nbsp;so&nbsp;I&nbsp;know&nbsp;what&nbsp;types&nbsp;I&nbsp;can&nbsp;put&nbsp;in&nbsp;the&nbsp;field&nbsp;instead&nbsp;of&nbsp;guessing&nbsp;what&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;type&nbsp;may&nbsp;be.  
  
  
  
Looking&nbsp;forward&nbsp;to&nbsp;trying&nbsp;this.&nbsp;&nbsp;Should&nbsp;be&nbsp;great!  
  
  
  
Thanks,  
  
Damian

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 14, 2013, 4:46pm UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/8 "2013-08-14T16:46:05Z")

</div>

Just&nbsp;re-read&nbsp;what&nbsp;you&nbsp;wrote&nbsp;and&nbsp;got&nbsp;7.0.65.0&nbsp;dev&nbsp;version&nbsp;instead&nbsp;of&nbsp;production.  
  
  
  
This&nbsp;time&nbsp;there&nbsp;is&nbsp;an&nbsp;overload&nbsp;that&nbsp;accepts&nbsp;FeatureSourceColumn&nbsp;collection,&nbsp;but&nbsp;when&nbsp;I&nbsp;execute&nbsp;the&nbsp;CreateTable&nbsp;it&nbsp;has&nbsp;the&nbsp;following&nbsp;error.  
  
  
  
Object&nbsp;of&nbsp;type&nbsp;‘System.Collections.ObjectModel.Collection`1[ThinkGeo.MapSuite.Core.FeatureSourceColumn]’&nbsp;cannot&nbsp;be&nbsp;converted&nbsp;to&nbsp;type&nbsp;‘System.Collections.Generic.IEnumerable`1[System.String]’.  
  
  
  
I&nbsp;am&nbsp;guessing&nbsp;the&nbsp;build&nbsp;of&nbsp;unmanaged&nbsp;assemblies&nbsp;needs&nbsp;to&nbsp;be&nbsp;updated.  
  
  
  
Regards,  
  
Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 15, 2013, 3:00am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/9 "2013-08-15T03:00:30Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;the&nbsp;mistake&nbsp;in&nbsp;telling&nbsp;the&nbsp;build&nbsp;version,&nbsp;actually&nbsp;the&nbsp;change&nbsp;will&nbsp;take&nbsp;into&nbsp;effect&nbsp;in&nbsp;7.0.66.0(still&nbsp;in&nbsp;build&nbsp;will&nbsp;be&nbsp;available&nbsp;in&nbsp;hours)&nbsp;rather&nbsp;7.0.65.0.&nbsp;Would&nbsp;you&nbsp;please&nbsp;install&nbsp;the&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.66.0"&nbsp;in&nbsp;the&nbsp;dll&nbsp;packages?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Hope&nbsp;it&nbsp;helps&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 15, 2013, 1:23pm UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/10 "2013-08-15T13:23:33Z")

</div>

Hi&nbsp;Summer,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Seems&nbsp;there&nbsp;isn’t&nbsp;going&nbsp;to&nbsp;be&nbsp;an&nbsp;update&nbsp;today&nbsp;on&nbsp;the&nbsp;site&nbsp;for&nbsp;dev&nbsp;version&nbsp;7.0.66.0.&nbsp;&nbsp;It&nbsp;hasn’t&nbsp;updated&nbsp;since&nbsp;yesterday.&nbsp;&nbsp;Also&nbsp;noting&nbsp;that&nbsp;the&nbsp;production&nbsp;build&nbsp;is&nbsp;7.0.0.66,&nbsp;but&nbsp;does&nbsp;not&nbsp;contain&nbsp;your&nbsp;updates.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 16, 2013, 1:18am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/11 "2013-08-16T01:18:42Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;the&nbsp;inconvenience,&nbsp;the&nbsp;msi&nbsp;build&nbsp;had&nbsp;an&nbsp;bug,&nbsp;now&nbsp;we&nbsp;have&nbsp;fixed&nbsp;it,&nbsp;would&nbsp;you&nbsp;please&nbsp;get&nbsp;the&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.67.0"&nbsp;from&nbsp;7.0.67.0&nbsp;dll&nbsp;packages.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;again&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 19, 2013, 10:57am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/12 "2013-08-19T10:57:55Z")

</div>

Hi&nbsp;Summer,  
  
  
  
Looks&nbsp;like&nbsp;blob&nbsp;type&nbsp;is&nbsp;working&nbsp;in&nbsp;the&nbsp;development&nbsp;version&nbsp;of&nbsp;7.0.69.0.&nbsp;&nbsp;This&nbsp;is&nbsp;really&nbsp;cool.&nbsp;&nbsp;Thanks!&nbsp;&nbsp;When&nbsp;will&nbsp;you&nbsp;make&nbsp;it&nbsp;available&nbsp;in&nbsp;production?  
  
  
  
I&nbsp;have&nbsp;also&nbsp;done&nbsp;a&nbsp;bit&nbsp;of&nbsp;experiment&nbsp;with&nbsp;the&nbsp;typeName&nbsp;property&nbsp;of&nbsp;FeatureSourceColumn.&nbsp;&nbsp;It&nbsp;looks&nbsp;like&nbsp;I&nbsp;can&nbsp;specify&nbsp;“int”&nbsp;or&nbsp;“integer”&nbsp;now&nbsp;and&nbsp;get&nbsp;a&nbsp;long&nbsp;integer&nbsp;field&nbsp;in&nbsp;the&nbsp;database&nbsp;(verified&nbsp;through&nbsp;ArcCatalog).&nbsp;&nbsp;And,&nbsp;I&nbsp;can&nbsp;specify&nbsp;“double”&nbsp;and&nbsp;output&nbsp;values&nbsp;with&nbsp;decimal.&nbsp;&nbsp;But&nbsp;there&nbsp;seems&nbsp;to&nbsp;be&nbsp;more&nbsp;going&nbsp;on&nbsp;behind&nbsp;the&nbsp;scenes&nbsp;here&nbsp;than&nbsp;is&nbsp;obvious&nbsp;as&nbsp;I&nbsp;can&nbsp;also&nbsp;type&nbsp;in&nbsp;some&nbsp;nonsense&nbsp;typeNames&nbsp;and&nbsp;it&nbsp;will&nbsp;create&nbsp;the&nbsp;database&nbsp;and&nbsp;make&nbsp;the&nbsp;field&nbsp;into&nbsp;Text.  
  
  
  
There&nbsp;seems&nbsp;to&nbsp;also&nbsp;be&nbsp;some&nbsp;kind&nbsp;of&nbsp;strange&nbsp;issues&nbsp;with&nbsp;the&nbsp;maxLength&nbsp;parameter&nbsp;as&nbsp;well.&nbsp;&nbsp;If&nbsp;I&nbsp;am&nbsp;writing&nbsp;out&nbsp;an&nbsp;integer&nbsp;or&nbsp;a&nbsp;double,&nbsp;it&nbsp;doesn’t&nbsp;seem&nbsp;to&nbsp;matter&nbsp;what&nbsp;I&nbsp;put&nbsp;in&nbsp;this&nbsp;field.  
  
  
  
Also,&nbsp;I&nbsp;tried&nbsp;using&nbsp;a&nbsp;field&nbsp;called&nbsp;“datetime”&nbsp;and&nbsp;a&nbsp;column&nbsp;value&nbsp;of&nbsp;“02-OCT-1969”&nbsp;and&nbsp;of&nbsp;“10/02/1969”.&nbsp;&nbsp;It&nbsp;said&nbsp;it&nbsp;created&nbsp;the&nbsp;record&nbsp;in&nbsp;the&nbsp;database&nbsp;and&nbsp;no&nbsp;errors&nbsp;were&nbsp;given,&nbsp;but&nbsp;investigation&nbsp;of&nbsp;the&nbsp;database&nbsp;showed&nbsp;that&nbsp;no&nbsp;records&nbsp;had&nbsp;actually&nbsp;been&nbsp;created.&nbsp;&nbsp;Only&nbsp;after&nbsp;I&nbsp;set&nbsp;the&nbsp;maxLength&nbsp;parameter&nbsp;to&nbsp;0&nbsp;would&nbsp;it&nbsp;write&nbsp;the&nbsp;record&nbsp;and&nbsp;it&nbsp;ends&nbsp;up&nbsp;as&nbsp;text&nbsp;in&nbsp;the&nbsp;database.  
  
  
  
It&nbsp;would&nbsp;be&nbsp;great&nbsp;if&nbsp;I&nbsp;could&nbsp;get&nbsp;some&nbsp;rules&nbsp;for&nbsp;what&nbsp;fields/values&nbsp;I&nbsp;am&nbsp;able&nbsp;to&nbsp;write/read&nbsp;to&nbsp;the&nbsp;database&nbsp;accurately.  
  
  
  
Finally,&nbsp;I&nbsp;tried&nbsp;a&nbsp;test&nbsp;and&nbsp;created&nbsp;100&nbsp;records&nbsp;in&nbsp;the&nbsp;db&nbsp;with&nbsp;the&nbsp;blob&nbsp;set&nbsp;to&nbsp;a&nbsp;5&nbsp;Mb&nbsp;image.&nbsp;&nbsp;Unfortunately,&nbsp;trying&nbsp;to&nbsp;read&nbsp;back&nbsp;the&nbsp;db&nbsp;gave&nbsp;me&nbsp;an&nbsp;Out&nbsp;of&nbsp;Memory&nbsp;exception.&nbsp;&nbsp;The&nbsp;database&nbsp;of&nbsp;course&nbsp;was&nbsp;500Mb&nbsp;which&nbsp;isn’t&nbsp;good,&nbsp;so&nbsp;I&nbsp;will&nbsp;look&nbsp;at&nbsp;various&nbsp;downsampling&nbsp;and&nbsp;compression&nbsp;options&nbsp;of&nbsp;the&nbsp;file&nbsp;stream&nbsp;before&nbsp;committing&nbsp;to&nbsp;the&nbsp;blob&nbsp;field.&nbsp;&nbsp;It&nbsp;would&nbsp;be&nbsp;good&nbsp;if&nbsp;you&nbsp;could&nbsp;validate&nbsp;the&nbsp;out&nbsp;of&nbsp;memory&nbsp;on&nbsp;your&nbsp;side&nbsp;and&nbsp;see&nbsp;what&nbsp;can&nbsp;be&nbsp;done&nbsp;about&nbsp;it.&nbsp;&nbsp;It’s&nbsp;not&nbsp;completely&nbsp;obvious&nbsp;to&nbsp;me&nbsp;why&nbsp;I&nbsp;could&nbsp;write,&nbsp;but&nbsp;not&nbsp;read&nbsp;when&nbsp;I&nbsp;get&nbsp;to&nbsp;a&nbsp;certain&nbsp;size&nbsp;limit.  
  
  
  
Thanks,  
  
Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 20, 2013, 3:25am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/13 "2013-08-20T03:25:05Z")

</div>

Hi&nbsp;Damian,  
  
  
  
Great&nbsp;to&nbsp;hear&nbsp;that&nbsp;"blob&nbsp;type&nbsp;is&nbsp;working",&nbsp;About&nbsp;"When&nbsp;will&nbsp;you&nbsp;make&nbsp;it&nbsp;available&nbsp;in&nbsp;production?",&nbsp;because&nbsp;there&nbsp;are&nbsp;some&nbsp;API&nbsp;change&nbsp;for&nbsp;this&nbsp;functionality&nbsp;and&nbsp;to&nbsp;make&nbsp;production&nbsp;statle,&nbsp;so&nbsp;it&nbsp;will&nbsp;not&nbsp;be&nbsp;added&nbsp;into&nbsp;production&nbsp;build&nbsp;until&nbsp;next&nbsp;release&nbsp;in&nbsp;May&nbsp;of&nbsp;2014.  
  
  
  
About&nbsp;"nonsense&nbsp;typeNames&nbsp;and&nbsp;it&nbsp;will&nbsp;create&nbsp;the&nbsp;database&nbsp;and&nbsp;make&nbsp;the&nbsp;field&nbsp;into&nbsp;Text",&nbsp;now&nbsp;the&nbsp;nonsense&nbsp;typeNames&nbsp;will&nbsp;be&nbsp;thrown&nbsp;exceptions&nbsp;in&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.71.0.msi".  
  
  
  
About&nbsp;"strange&nbsp;issues&nbsp;with&nbsp;the&nbsp;maxLength",&nbsp;I&nbsp;we&nbsp;tested&nbsp;with&nbsp;Esri.FileGDB.Table.AddField(..),&nbsp;if&nbsp;we&nbsp;add&nbsp;integer&nbsp;field&nbsp;of&nbsp;double&nbsp;field,&nbsp;the&nbsp;Esri.FileGDB.Table.AddField(..)&nbsp;will&nbsp;ignore&nbsp;the&nbsp;length,&nbsp;and&nbsp;the&nbsp;integer&nbsp;field&nbsp;maxlength&nbsp;is&nbsp;still&nbsp;4&nbsp;bytes,&nbsp;so&nbsp;wether&nbsp;a&nbsp;maxlength&nbsp;will&nbsp;take&nbsp;effect&nbsp;should&nbsp;be&nbsp;decided&nbsp;inside&nbsp;Esri.FileGDB.Table.AddFiedl().  
  
  
  
About&nbsp;using&nbsp;a&nbsp;field&nbsp;called&nbsp;"datetime",&nbsp;this&nbsp;functionality&nbsp;is&nbsp;added&nbsp;in&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.71.0.msi".&nbsp;attached&nbsp;"AddDateTime.txt"&nbsp;is&nbsp;the&nbsp;sample&nbsp;code&nbsp;for&nbsp;it.  
  
  
  
About&nbsp;&nbsp;created&nbsp;100&nbsp;records&nbsp;in&nbsp;the&nbsp;db&nbsp;with&nbsp;the&nbsp;blob&nbsp;set&nbsp;to&nbsp;a&nbsp;5&nbsp;Mb&nbsp;image,&nbsp;we&nbsp;tried&nbsp;to&nbsp;recreate&nbsp;this&nbsp;problem&nbsp;in&nbsp;a&nbsp;loop&nbsp;with&nbsp;a&nbsp;40M+&nbsp;data,&nbsp;the&nbsp;problem&nbsp;still&nbsp;didn’t&nbsp;show&nbsp;up,&nbsp;attached&nbsp;"insert200bigblob.txt"&nbsp;is&nbsp;the&nbsp;test&nbsp;code&nbsp;on&nbsp;our&nbsp;end,&nbsp;would&nbsp;you&nbsp;please&nbsp;check&nbsp;it&nbsp;and&nbsp;tell&nbsp;us&nbsp;what&nbsp;we&nbsp;missed?  
  
  
&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.71.0.msi"&nbsp;is&nbsp;still&nbsp;in&nbsp;build&nbsp;will&nbsp;be&nbsp;availabe&nbsp;in&nbsp;hours  
  
  
  
  
Thanks,  
  
  
  
Summer  
  
[001\_AddDateTime.txt](https://community.thinkgeo.com/uploads/default/original/2X/3/3f5fa610bf43433c36b65597fe7d0bbed704b0f7.txt) (1009 Bytes)  
[insert200bigblob.txt](https://community.thinkgeo.com/uploads/default/original/2X/9/968b778301c3356044dd9ede557143e2359129da.txt) (1.26 KB)

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 21, 2013, 12:37am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/14 "2013-08-21T00:37:56Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Would&nbsp;you&nbsp;please&nbsp;get&nbsp;"Map&nbsp;Suite&nbsp;Unmanaged&nbsp;Dependencies&nbsp;7.0.72.0.msi",&nbsp;&nbsp;the&nbsp;change&nbsp;will&nbsp;take&nbsp;effect&nbsp;in&nbsp;7.0.72.0.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;Regards&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 26, 2013, 9:55am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/15 "2013-08-26T09:55:47Z")

</div>

Hi&nbsp;Summer,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regarding&nbsp;the&nbsp;blob&nbsp;size,&nbsp;I&nbsp;could&nbsp;be&nbsp;mistaken,&nbsp;but&nbsp;I&nbsp;think&nbsp;you&nbsp;must&nbsp;use&nbsp;.ColumnValues.Add&nbsp;in&nbsp;order&nbsp;to&nbsp;get&nbsp;the&nbsp;blob&nbsp;string&nbsp;column&nbsp;to&nbsp;be&nbsp;included&nbsp;with&nbsp;the&nbsp;feature.&nbsp;&nbsp;If&nbsp;you&nbsp;try&nbsp;to&nbsp;set&nbsp;using&nbsp;ColumnValues[]&nbsp;and&nbsp;that&nbsp;column&nbsp;doesn’t&nbsp;exist,&nbsp;I&nbsp;believe&nbsp;it&nbsp;is&nbsp;just&nbsp;ignored.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Try&nbsp;using&nbsp;the&nbsp;following&nbsp;and&nbsp;see&nbsp;if&nbsp;your&nbsp;database&nbsp;size&nbsp;is&nbsp;bigger.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Feature&nbsp;feature&nbsp;=&nbsp;new&nbsp;Feature(0,&nbsp;0);&nbsp;  
&nbsp;feature.ColumnValues.Add(“myblob”,&nbsp;newString);&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Damian

---

<div class="post-metadata">

**Author:** ![Summer1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Summer1](https://community.thinkgeo.com/u/Summer1)\
**Post date:** [August 27, 2013, 1:29am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/16 "2013-08-27T01:29:05Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;further&nbsp;information,&nbsp;we&nbsp;tried&nbsp;both&nbsp;"feature.ColumnValues.Add("myblob",&nbsp;newString)"&nbsp;and&nbsp;"feature.ColumnValues["myblob"]&nbsp;=&nbsp;newString",&nbsp;but&nbsp;the&nbsp;created&nbsp;database&nbsp;is&nbsp;still&nbsp;the&nbsp;same&nbsp;size.&nbsp;Would&nbsp;you&nbsp;please&nbsp;tell&nbsp;me&nbsp;is&nbsp;there&nbsp;are&nbsp;any&nbsp;difference&nbsp;between&nbsp;using&nbsp;"feature.ColumnValues.Add("myblob",&nbsp;newString)"&nbsp;and&nbsp;"feature.ColumnValues["myblob"]&nbsp;=&nbsp;newString"&nbsp;  
&nbsp;&nbsp;  
&nbsp;Waiting&nbsp;for&nbsp;your&nbsp;further&nbsp;information&nbsp;  
&nbsp;&nbsp;  
&nbsp;Summer

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [August 27, 2013, 8:57am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/17 "2013-08-27T08:57:33Z")

</div>

Hi&nbsp;Summer,  
  
  
  
Attached&nbsp;is&nbsp;the&nbsp;project&nbsp;I&nbsp;have&nbsp;which&nbsp;produces&nbsp;this&nbsp;behavior.&nbsp;&nbsp;Get&nbsp;yourself&nbsp;a&nbsp;5&nbsp;Mb&nbsp;image&nbsp;or&nbsp;other&nbsp;file&nbsp;and&nbsp;replace&nbsp;the&nbsp;paths&nbsp;in&nbsp;the&nbsp;creatDb&nbsp;button&nbsp;event.&nbsp;&nbsp;After,&nbsp;zip&nbsp;the&nbsp;test.gdb&nbsp;directory&nbsp;and&nbsp;verify&nbsp;the&nbsp;size.  
  
  
  
The&nbsp;picture&nbsp;I&nbsp;have&nbsp;is&nbsp;5,261&nbsp;Kb&nbsp;and&nbsp;I&nbsp;add&nbsp;50&nbsp;records&nbsp;to&nbsp;the&nbsp;db.&nbsp;&nbsp;The&nbsp;final&nbsp;db&nbsp;size&nbsp;after&nbsp;compression&nbsp;is&nbsp;262,681&nbsp;Kb.&nbsp;&nbsp;With&nbsp;the&nbsp;db&nbsp;this&nbsp;size,&nbsp;the&nbsp;readback&nbsp;event&nbsp;fails&nbsp;with&nbsp;out&nbsp;of&nbsp;memory&nbsp;error.  
  
  
  
Regards,  
  
Damian  
  
[GeoDbMetaDataLimit.zip](https://community.thinkgeo.com/uploads/default/original/2X/2/257e525f33eaec62fe6d2530d3833188d4090d34.zip) (51.5 KB)

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [August 29, 2013, 5:39am UTC](https://community.thinkgeo.com/t/adding-blob-field-to-geodatabase/2281/18 "2013-08-29T05:39:22Z")

</div>

Hi&nbsp;Damian,  
  
  
  
The&nbsp;OutOfMemory&nbsp;exception&nbsp;is&nbsp;casued&nbsp;by&nbsp;call&nbsp;GetAllFeatures&nbsp;function&nbsp;twice.  
  
  
  
Your&nbsp;image&nbsp;size&nbsp;is&nbsp;5Mb,&nbsp;it&nbsp;saved&nbsp;to&nbsp;database&nbsp;50&nbsp;times.&nbsp;When&nbsp;GetAllFeatures&nbsp;called,&nbsp;we&nbsp;read&nbsp;the&nbsp;image&nbsp;from&nbsp;Database&nbsp;and&nbsp;saved&nbsp;it&nbsp;in&nbsp;feature&nbsp;50&nbsp;times.&nbsp;  
  
  
  
We&nbsp;saved&nbsp;it&nbsp;as&nbsp;Base64String,&nbsp;which&nbsp;will&nbsp;takes&nbsp;about&nbsp;14mb&nbsp;memory&nbsp;when&nbsp;the&nbsp;data&nbsp;is&nbsp;5mb&nbsp;before&nbsp;convert.&nbsp;(Please&nbsp;see&nbsp;the&nbsp;testMemory&nbsp;function&nbsp;shows&nbsp;Base64String&nbsp;takes&nbsp;about&nbsp;14mb&nbsp;memory)&nbsp;So&nbsp;the&nbsp;memory&nbsp;usage&nbsp;should&nbsp;be&nbsp;about&nbsp;14x50&nbsp;=&nbsp;700mb,&nbsp;and&nbsp;the&nbsp;second&nbsp;time&nbsp;memory&nbsp;usage&nbsp;will&nbsp;equal&nbsp;1.4GB&nbsp;which&nbsp;beyond&nbsp;the&nbsp;default&nbsp;limit&nbsp;1.2GB&nbsp;of&nbsp;.net&nbsp;framework,&nbsp;so&nbsp;the&nbsp;.net&nbsp;throw&nbsp;an&nbsp;"out&nbsp;of&nbsp;memory"&nbsp;exception.&nbsp;

> `private`&nbsp;`static`&nbsp;`void`&nbsp;`testMemory()`  
> `       ``{`  
> `           ``FileStream sr = ``new`&nbsp;`FileStream(@``"D:\test.JPG"``, FileMode.Open);`  
> `           ``BinaryReader br = ``new`&nbsp;`BinaryReader(sr);`  
> `           ``byte``[] bs = br.ReadBytes((``int``)sr.Length);`  
> &nbsp;  
> `           ``Collection<Feature> allFeatures = ``new`&nbsp;`Collection<Feature>();`  
> &nbsp;  
> `           ``for`&nbsp;`(``int`&nbsp;`i = 0; i < 50; i++)`  
> `           ``{`  
> `               ``string`&nbsp;`fieldValue = Convert.ToBase64String(bs);`  
> &nbsp;  
> `               ``Feature feature = ``new`&nbsp;`Feature();`  
> `               ``feature.ColumnValues.Add(``"test"``, fieldValue);`  
> &nbsp;  
> `               ``allFeatures.Add(feature);`  
> `           ``}`  
> &nbsp;  
> `           ``Console.ReadLine();`  
> `       ``}`

  
  
  
  
But&nbsp;this&nbsp;only&nbsp;appear&nbsp;for&nbsp;X86,&nbsp;if&nbsp;you&nbsp;are&nbsp;using&nbsp;X64,&nbsp;this&nbsp;limit&nbsp;should&nbsp;be&nbsp;higher&nbsp;than&nbsp;x86,&nbsp;so&nbsp;test&nbsp;project&nbsp;won’t&nbsp;throw&nbsp;exception.  
  
  
For&nbsp;avoid&nbsp;this&nbsp;issue&nbsp;we&nbsp;should&nbsp;choose&nbsp;X64&nbsp;mode&nbsp;or&nbsp;make&nbsp;the&nbsp;data&nbsp;memory&nbsp;usage&nbsp;under&nbsp;1.2&nbsp;GB&nbsp;when&nbsp;x86.  
  
  
  
  
BTW,&nbsp;when&nbsp;research&nbsp;this&nbsp;issue,&nbsp;we&nbsp;find&nbsp;the&nbsp;other&nbsp;problem&nbsp;and&nbsp;fix&nbsp;it&nbsp;which&nbsp;also&nbsp;will&nbsp;reduce&nbsp;memory&nbsp;usage&nbsp;when&nbsp;getAllFeatures,&nbsp;you&nbsp;can&nbsp;get&nbsp;latest&nbsp;package&nbsp;with&nbsp;version&nbsp;higher&nbsp;than&nbsp;7.0.81.0&nbsp;for&nbsp;that.  
  
  
  
Regards,  
  
  
  
Don
