Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: registry class Pin
Sonia Gupta21-Jun-07 21:01
Sonia Gupta21-Jun-07 21:01 
AnswerRe: registry class Pin
PandemoniumPasha21-Jun-07 22:07
PandemoniumPasha21-Jun-07 22:07 
AnswerRe: registry class Pin
Dave Kreskowiak22-Jun-07 3:47
mveDave Kreskowiak22-Jun-07 3:47 
Questionmethods to encrypt and decrypt simple string Pin
deepalititi21-Jun-07 18:27
deepalititi21-Jun-07 18:27 
AnswerRe: methods to encrypt and decrypt simple string Pin
Sathesh Sakthivel21-Jun-07 19:09
Sathesh Sakthivel21-Jun-07 19:09 
Questionwindows form application configuration Pin
uglyeyes21-Jun-07 17:57
uglyeyes21-Jun-07 17:57 
AnswerRe: windows form application configuration Pin
Dave Kreskowiak22-Jun-07 3:44
mveDave Kreskowiak22-Jun-07 3:44 
GeneralRe: windows form application configuration Pin
uglyeyes24-Jun-07 14:15
uglyeyes24-Jun-07 14:15 
Thanks for the reply. i figured out myself i just have to place the folder location before the filename. Its not really a web service. I get list of foldername/filename as a database record and i loop through each of the record and download them. now another problem i am facing is. sometime i get 404 exception and it just stops. how could i skip the file if its not found.

codes:
Private Sub btnDownloadImages_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownloadImages.Click
Dim myDAL As New clsDAL
Dim dr As DataRow
Try
Dim dt As DataTable = myDAL.getImages()

If (Not dt Is Nothing) Then
For Each dr In dt.Rows
ProcessImageNames(dr("Art_Image_file_URL_stem"))
Next
End If

Catch ee As Exception
Throw ee
End Try
End Sub
Private Sub ProcessImageNames(ByVal strFileName As String)
try

Dim myStringWebResource As String = Nothing
' Create a new WebClient instance.
Dim myWebClient As New WebClient
' Concatenate the domain with the Web resource filename. Because DownloadFile
'requires a fully qualified resource name, concatenate the domain with the Web resource file name.

myStringWebResource = remoteUri + fileName
'Console.WriteLine("Downloading File ""{0}"" from ""{1}"" ......." + ControlChars.Cr + ControlChars.Cr, fileName, myStringWebResource)
' The DownloadFile() method downloads the Web resource and saves it into the current file-system folder.

myWebClient.DownloadFile(myStringWebResource, "c:\images\" + fileName)

Catch ee As Exception
Throw ee
Finally
Me.Cursor = Cursors.Default
End Try
End Sub

---

thanks in advance.
GeneralRe: windows form application configuration Pin
uglyeyes25-Jun-07 17:34
uglyeyes25-Jun-07 17:34 
QuestionVB 2003 or 2005 Aol Instant Messanger Pin
rmsuperstar9921-Jun-07 12:59
rmsuperstar9921-Jun-07 12:59 
AnswerRe: VB 2003 or 2005 Aol Instant Messanger Pin
Dave Kreskowiak21-Jun-07 14:29
mveDave Kreskowiak21-Jun-07 14:29 
GeneralRe: VB 2003 or 2005 Aol Instant Messanger Pin
rmsuperstar9921-Jun-07 17:12
rmsuperstar9921-Jun-07 17:12 
QuestionPrinting existing PDF file Pin
Jodd21-Jun-07 11:36
Jodd21-Jun-07 11:36 
AnswerRe: Printing existing PDF file Pin
Christian Graus21-Jun-07 12:52
protectorChristian Graus21-Jun-07 12:52 
GeneralRe: Printing existing PDF file Pin
WhiteGirl2324-Jun-07 20:18
WhiteGirl2324-Jun-07 20:18 
QuestionAccess Reports and VB 2005 Pin
Karma3125121-Jun-07 10:31
Karma3125121-Jun-07 10:31 
AnswerRe: Access Reports and VB 2005 Pin
leckey21-Jun-07 10:47
leckey21-Jun-07 10:47 
AnswerRe: Access Reports and VB 2005 Pin
Tarakeshwar Reddy21-Jun-07 10:51
professionalTarakeshwar Reddy21-Jun-07 10:51 
QuestionValue for uninitialized elements of array Pin
hsprasain21-Jun-07 9:01
hsprasain21-Jun-07 9:01 
AnswerRe: Value for uninitialized elements of array Pin
Dave Kreskowiak21-Jun-07 9:10
mveDave Kreskowiak21-Jun-07 9:10 
GeneralRe: Value for uninitialized elements of array Pin
hsprasain21-Jun-07 9:21
hsprasain21-Jun-07 9:21 
GeneralRe: Value for uninitialized elements of array Pin
Kschuler21-Jun-07 9:28
Kschuler21-Jun-07 9:28 
GeneralRe: Value for uninitialized elements of array Pin
hsprasain21-Jun-07 9:35
hsprasain21-Jun-07 9:35 
GeneralRe: Value for uninitialized elements of array Pin
Kschuler21-Jun-07 9:37
Kschuler21-Jun-07 9:37 
GeneralRe: Value for uninitialized elements of array Pin
hsprasain21-Jun-07 10:15
hsprasain21-Jun-07 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.