<?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 : Upload Image</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Upload Image</description>
  <pubDate>Sat, 11 Apr 2026 16:17:45 -700</pubDate>
  <lastBuildDate>Mon, 23 Aug 2010 06:07:00 -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=2078</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>Upload Image : Hi VinodI did not undestand object...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8137#8137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 23-Aug-2010 at 6:07am<br /><br />Hi Vinod<br><br>I did not undestand object mapper..<br><br>How you binding also not undestanding..<br>If possible can you pass code or step.<br><br><span style=""><b>ImageUpload CurrentFile = bsFile.Current as ImageUpload;<br><br></b>This line making really terrible for me..<b><br><br>Thanks<br></b></span>]]>
   </description>
   <pubDate>Mon, 23 Aug 2010 06:07:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8137#8137</guid>
  </item> 
  <item>
   <title>Upload Image : Hi Bala,No, i am not using any...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8136#8136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=159" rel="nofollow">vinothvdp</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 23-Aug-2010 at 5:43am<br /><br />Hi Bala,<div><br></div><div>No, i am not using any third party tools.</div><div><br></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b>"ImageUpload"&nbsp;</b>&nbsp;is name of the table which included into ideablade object mapper with the same name.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><span ="Apple-style-span" style="font-weight: normal;">using bellow step i am getting current item of the binding source,&nbsp;</span></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><span ="Apple-style-span" style="font-weight: normal;"><br></span>ImageUpload CurrentFile = bsFile.Current as ImageUpload;</b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><br></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><span ="Apple-style-span" style="font-weight: normal; "><b><span ="Apple-style-span" style="font-weight: normal; ">And update the property of image column</span></b></span></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><b><br></b></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><b>CurrentFile.File= content;</b></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><b><span ="Apple-style-span" style="font-weight: normal; "><b><span ="Apple-style-span" style="font-weight: normal; "><br></span></b></span></b></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Regards,</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Vintoh</span></div>]]>
   </description>
   <pubDate>Mon, 23 Aug 2010 05:43:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8136#8136</guid>
  </item> 
  <item>
   <title>Upload Image : HiAre you using webservice for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8135#8135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 23-Aug-2010 at 5:35am<br /><br />Hi<br><br>Are you using webservice for it?<br><br>I am not able to understand<br><br>&nbsp; ImageUpload CurrentFile = bsFile.Current as ImageUpload;<br><br>Could you able to put light on it<br><br>thanks<br>]]>
   </description>
   <pubDate>Mon, 23 Aug 2010 05:35:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8135#8135</guid>
  </item> 
  <item>
   <title>Upload Image : Hi,You can use below code to upload...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8128#8128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=159" rel="nofollow">vinothvdp</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 20-Aug-2010 at 10:33pm<br /><br />Hi,<div><br></div><div>You can use below code to upload image to db using ideablade,</div><div><br></div><div><div>&nbsp;&nbsp;OpenFileDialog openFileDialog1 = new OpenFileDialog();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;private void SelectFileultraButton_Click(object sender, EventArgs e)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;openFileDialog1.Filter = "All Files (*.*)|*.*";</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;openFileDialog1.Title = "Select File";</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (DialogResult.Cancel == openFileDialog1.ShowDialog())</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fileNameUltraTextEditor.Text = openFileDialog1.FileName;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string fileName = Path.GetFileName(fileNameUltraTextEditor.Text.ToString());</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;byte&#091;&#093; content = ReadFileToByteArray(fileName);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImageUpload CurrentFile = bsFile.Current as ImageUpload;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CurrentFile.File= content;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CurrentFile.FileName = fileName;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;protected static byte&#091;&#093; ReadFileToByteArray(string fileName)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FileStream fileStream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Read);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long len;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;len = fileStream.Length;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Byte&#091;&#093; fileAsByte = new Byte&#091;len&#093;;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fileStream.Read(fileAsByte, 0, fileAsByte.Length);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MemoryStream memoryStream = new MemoryStream(fileAsByte);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return memoryStream.ToArray();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;private void saveToolStripButton_Click(object sender, EventArgs e)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (PM.HasChanges())</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PM.SaveChanges();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show("Sucessfully saved");</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch (Exception ex)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show(ex.Message.ToString());</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show("Nothing to save");</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div></div><div><br></div><div><br></div><div>Regards,</div><div>Vinoth</div>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 22:33:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8128#8128</guid>
  </item> 
  <item>
   <title>Upload Image : You can usea third party control...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8125#8125</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 20-Aug-2010 at 6:38pm<br /><br />You can use&nbsp;a third party control that allows users to select an image, or you will have to implement functionality to browse the disk for the file.&nbsp; Once you have the bits, you can assign the bits to the property of the entity and it will get saved to the database when you call SaveChanges().<DIV></DIV>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 18:38:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8125#8125</guid>
  </item> 
  <item>
   <title>Upload Image : Hi I want to upload image using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8101#8101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2078<br /><strong>Posted:</strong> 19-Aug-2010 at 12:49pm<br /><br />Hi<DIV>I want to upload image using DevForce</DIV><DIV>How I can achevie this?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 12:49:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2078&amp;PID=8101#8101</guid>
  </item> 
 </channel>
</rss>