I am using VB 6.0 an an XP machine. I am trying to upload images to an IIS 6.0 webserver using Inet control over HTTP . I use the PUT command for putting the image file (from client machine) on the server. The file is being put there successfully. But the problem is that the "jpg" image file which is put on the server is blank. There is no data in the image. Below is my code. Please help in figuring out what is wrong.
Private Sub Command1_Click()
Inet1.AccessType = icUseDefault
Inet1.URL = "http://
Dim strSourceFile As String
Dim strDestinationFile As String
strSourceFile = "C:\Documents and Settings\pmud\Desktop\001.
", "PUT", strSourceFile
MsgBox "File successfully created"
Do While Inet1.StillExecuting
Do I need to use GetChunks to get the data from the oprn file and then put the file on the server and then open that file on the server and then write data to it? I tried using this approach but it was all messed up. If possible, can you post some code that will be helpful? I have been trying this since a 2 days but with no luck.
Thanks for any help.