943,625 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1180
  • VB.NET RSS
Nov 29th, 2008
0

help in data table object

Expand Post »
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
Similar Threads
Reputation Points: 7
Solved Threads: 0
Newbie Poster
the_swan is offline Offline
21 posts
since Nov 2008
Nov 29th, 2008
0

Re: help in data table object

Hi.
http://www.daniweb.com/forums/thread159832.html

Have a look Teme64 message. It helps you

Cheers
Reputation Points: 11
Solved Threads: 9
Light Poster
Rogachev is offline Offline
44 posts
since Nov 2008
Nov 30th, 2008
0

thanks

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
Reputation Points: 7
Solved Threads: 0
Newbie Poster
the_swan is offline Offline
21 posts
since Nov 2008
Nov 30th, 2008
0

Re: help in data table object

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
Reputation Points: 11
Solved Threads: 9
Light Poster
Rogachev is offline Offline
44 posts
since Nov 2008
Nov 30th, 2008
0

Re: help in data table object

here i have to create a file using System.IO.Directory

but i do not know exactly how to do it
Reputation Points: 7
Solved Threads: 0
Newbie Poster
the_swan is offline Offline
21 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: database connection for sql server 5.0 and vb.net
Next Thread in VB.NET Forum Timeline: Maze Game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC