<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : insert update blobs</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : insert update blobs</description>
  <pubDate>Thu, 11 Jun 2026 21:11:50 -700</pubDate>
  <lastBuildDate>Thu, 06 Sep 2007 14:57:07 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=411</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>insert update blobs : A possible workaround to the DataRowState...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1111#1111</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:57pm<br /><br /><DIV>A possible workaround to the DataRowState is to modifiy the ModTs property and set it to the current time.&nbsp; In this little app, it shouldn't have any negative ramifications (beware: possible concurrency issues in larger apps).&nbsp; That sets the state to Modified;&nbsp;except, the picture does not update, now.&nbsp; Quite odd.&nbsp; I&nbsp;comment out&nbsp;the update of ModTs and, now,&nbsp;the picture changes.&nbsp; Another stumper.</DIV><DIV>&nbsp;</DIV><DIV>***Fixed:&nbsp; I moved the update&nbsp;of the ModTs <EM>before </EM>the image was set on the picturebox.&nbsp; Now, on to the ImageToDatabase class.&nbsp; Why was this left out of DevForce?&nbsp; It seems so elementary.</DIV><span style="font-size:10px"><br /><br />Edited by Linguinut - 06-Sep-2007 at 3:03pm</span>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:57:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1111#1111</guid>
  </item> 
  <item>
   <title>insert update blobs : My example primarily shows how...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1110#1110</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:49pm<br /><br />My example primarily shows how to assign an arbitrary photo to an individual and display it.&nbsp; To save it you should convert it back to a blob and save it.&nbsp; To do this, you need to write an ImageTobytes utility. <span style="font-size:10px"><br /><br />Edited by davidklitzke - 06-Sep-2007 at 2:50pm</span>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:49:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1110#1110</guid>
  </item> 
  <item>
   <title>insert update blobs : Is this the proper syntax?   Employee...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1108#1108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:38pm<br /><br />Is this the proper syntax? <DIV><FONT color=#2b91af size=2></FONT>&nbsp;</DIV><DIV><FONT color=#2b91af size=2>Employee</FONT><FONT size=2> mCurrentEmp = (</FONT><FONT color=#2b91af size=2>Employee</FONT><FONT size=2>)mEmpSource.Current;</DIV><DIV><DIV>mCurrentEmp.RowState = </FONT><FONT color=#2b91af size=2>DataRowState</FONT><FONT size=2>.Modified;</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>**Nope--the RowState property is read-only.</FONT></DIV><DIV><FONT size=2>Interesting.&nbsp;</DIV></FONT></DIV><span style="font-size:10px"><br /><br />Edited by Linguinut - 06-Sep-2007 at 2:39pm</span>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:38:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1108#1108</guid>
  </item> 
  <item>
   <title>insert update blobs : Sorry for my ignorance, but what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1107#1107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:33pm<br /><br />Sorry for my ignorance, but what is the syntax for setting the datarowstate to modified on the current entity?&nbsp; I assume, since you specified that I would need to figure out how to save to the database, that DevForce will not save the image to the database once the save method is called on the persistence manager?&nbsp; So, if you could provide the syntax, I'll try to wire up the actual image save routine.<DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:33:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1107#1107</guid>
  </item> 
  <item>
   <title>insert update blobs : The object (i.e., the employee)...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1101#1101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:12pm<br /><br /><P>The object (i.e., the employee) won't get saved unless its datarowstate gets set to MODIFIED.&nbsp; Since the photo is readonly, it doesn't have a setter'</P>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:12:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1101#1101</guid>
  </item> 
  <item>
   <title>insert update blobs : Ouch! I imagine that the issue...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1100#1100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:11pm<br /><br />Ouch!&nbsp; I imagine that the issue is the underlying database.&nbsp; Different databases handle the storage of images differently, I suppose; therefore, IdeaBlade decided not to implement this piece of the puzzle, yet.&nbsp; Is that right?<DIV>&nbsp;</DIV><DIV>In the meantime, I am not sure what you mean by "setter".&nbsp; And, why doesn't the cached entity change?&nbsp; If I change&nbsp;a picture on one entity, move to the next entity, then back again, the picture always reverts back to the one in the database.&nbsp; What else might be going on here, behind the scenes?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help!!</DIV><DIV>&nbsp;</DIV><DIV>(I am casting my vote to move this feature up the priority list.&nbsp; This ranks right behind CAB templates/wizards, for me.)</DIV>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:11:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1100#1100</guid>
  </item> 
  <item>
   <title>insert update blobs : You are correct.  The .NET PictureBox...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1099#1099</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 2:01pm<br /><br />You are correct.<DIV>&nbsp;</DIV><DIV>The .NET PictureBox (and also the corresponding controls in DevExpress and Infragistics) are readonly controls.</DIV><DIV>&nbsp;</DIV><DIV>However, that is not to say that with a little work, you couldn't get some update and save capability.</DIV><DIV>&nbsp;</DIV><DIV>(1) You'll need a setter for the PictureBox control, and a way to set the DataRow state to Modified</DIV><DIV>&nbsp;</DIV><DIV>(2) You'll need a way to save the new bitmap to the database.</DIV><DIV>&nbsp;</DIV><DIV>There is currently a low priority feature request in our Bug Tracking system to do this work.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 14:01:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1099#1099</guid>
  </item> 
  <item>
   <title>insert update blobs : I added drag/drop to the form...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1098#1098</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 1:22pm<br /><br />I added drag/drop to the form and was not able to get any new images dropped onto the form to update the database, either.&nbsp; If the image property of the picturebox changes, shouldn't the databindings see that and consider it a change to the entity?]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 13:22:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1098#1098</guid>
  </item> 
  <item>
   <title>insert update blobs : Thanks for the reply. The example...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1097#1097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=147" rel="nofollow">mw243270</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 12:32pm<br /><br /><P>Thanks for the reply.</P><P>The example does indeed change the pic out, but "Save" doesn't recognize anything as being changed.</P>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 12:32:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1097#1097</guid>
  </item> 
  <item>
   <title>insert update blobs : I have attached a very simple...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1094#1094</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 06-Sep-2007 at 10:21am<br /><br />I have attached a very simple solution that has a "Change Picture" button.&nbsp; When you click this button, it changes the picture of Nancy Davolio to a picture of Margaret Peacock. <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/uploads/20070906_132132_Change_Picture.zip" target="_blank">uploads/20070906_132132_Change_Picture.zip</A></DIV>]]>
   </description>
   <pubDate>Thu, 06 Sep 2007 10:21:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1094#1094</guid>
  </item> 
  <item>
   <title>insert update blobs : In the sample tutorial applications...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1088#1088</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=147" rel="nofollow">mw243270</a><br /><strong>Subject:</strong> 411<br /><strong>Posted:</strong> 05-Sep-2007 at 6:40pm<br /><br /><P>In the sample tutorial applications I don't see any mention of how to insert or update the employee pictures stored as blobs in the database. Can anyone provide insight on how to accomplish this?</P>]]>
   </description>
   <pubDate>Wed, 05 Sep 2007 18:40:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=411&amp;PID=1088#1088</guid>
  </item> 
 </channel>
</rss>