help in data table object

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 21
Reputation: the_swan is an unknown quantity at this point 
Solved Threads: 0
the_swan the_swan is offline Offline
Newbie Poster

help in data table object

 
0
  #1
Nov 29th, 2008
Hiiiiiiiiiiiiii

I’m beginner in vb.net
And I’m going to build a page that contains a file up loaded (web server control)
How to insert a submitted item from file up loaded and save it in a data table object???
I need the VB code

thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 16
Reputation: Rogachev is an unknown quantity at this point 
Solved Threads: 2
Rogachev Rogachev is offline Offline
Newbie Poster

Re: help in data table object

 
0
  #2
Nov 29th, 2008
Hi.
http://www.daniweb.com/forums/thread159832.html

Have a look Teme64 message. It helps you

Cheers
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 21
Reputation: the_swan is an unknown quantity at this point 
Solved Threads: 0
the_swan the_swan is offline Offline
Newbie Poster

thanks

 
0
  #3
Nov 30th, 2008
thanks
for your replay.........
but i want to save the picture into a data table object that I will create it in the code behind not in a data base.......

please any help
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 16
Reputation: Rogachev is an unknown quantity at this point 
Solved Threads: 2
Rogachev Rogachev is offline Offline
Newbie Poster

Re: help in data table object

 
0
  #4
Nov 30th, 2008
Hi.
You can try this method. "FileUpload1" is server-control.
Good luck

Protected Sub cmdOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdOK.Click
Dim _fileName As String = Request.PhysicalApplicationPath & FileUpload1.FileName
Dim _byte() As Byte = FileUpload1.FileBytes()
Dim _file As New IO.FileStream(_fileName, IO.FileMode.Create)

For _i As Integer = 0 To _byte.Length - 1
_file.WriteByte(_byte(_i))
Next

_file.Close()
'-----------------------
' DO SOMETHING
End Sub
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 21
Reputation: the_swan is an unknown quantity at this point 
Solved Threads: 0
the_swan the_swan is offline Offline
Newbie Poster

Re: help in data table object

 
0
  #5
Nov 30th, 2008
here i have to create a file using System.IO.Directory

but i do not know exactly how to do it
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC