Click here to Skip to main content
16,011,647 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: [Q] ADO Recordset Events in VB6 Pin
Hesham Amin25-Feb-03 2:47
Hesham Amin25-Feb-03 2:47 
Generaldeleting a row in a datagrid Pin
mcm24-Feb-03 3:51
mcm24-Feb-03 3:51 
GeneralRe: deleting a row in a datagrid Pin
Brian Lehmann3-Mar-03 10:44
Brian Lehmann3-Mar-03 10:44 
Generalgetting a single row in a dataview how Pin
DODO23-Feb-03 23:13
DODO23-Feb-03 23:13 
Generaloperation not allowed when object is closed Pin
mcm23-Feb-03 22:51
mcm23-Feb-03 22:51 
GeneralRe: operation not allowed when object is closed Pin
Hesham Amin24-Feb-03 3:36
Hesham Amin24-Feb-03 3:36 
GeneralNewbie question: Default installer path name Pin
Jim_the_M23-Feb-03 13:35
sussJim_the_M23-Feb-03 13:35 
Generalproblem in web client(redundant data added in uploaded file) Pin
yccheok23-Feb-03 11:12
yccheok23-Feb-03 11:12 
I am able to upload the a wave file from client computer to my web directory using "PUT" of webclient method
Although i've successfully upload the file but when i open the file in server site, it
show me the invalid data format.
----------------------------------
<webmethod()> Public Function upload(ByVal uriString As String, ByVal fileName As String) as string
Try
Dim myWebClient As New WebClient()
Dim responseArray As Byte() = myWebClient.UploadFile(uriString,"PUT",fileName)
return(Encoding.ASCII.GetString(responseArray))
Catch exc As Exception
return exc.Message
End Try
end function
----------------------------------
when i try to test upload a sample text file, i observe that header of the request is also written on file.for
example if my file name is "1.txt" and content of the file which is uploaded
on the server has content like this

-----------------------8c405c905b24bd0

Content-Disposition: form-data; name="file"; filename="1.txt"

Content-Type: application/octet-stream

elan

-----------------------8c405c905b24bd0

i think this is the problem why i always get invalid wave format in server site.
Please help me in solving this problem also since I could not find any thing
in webclient class to get rid of these headers.

Thanks in advance
GeneralImplementing an interface (quandry)... Pin
Ray Cassick22-Feb-03 19:38
Ray Cassick22-Feb-03 19:38 
GeneralRe: Implementing an interface (quandry)... Pin
Jim Stewart22-Feb-03 20:11
Jim Stewart22-Feb-03 20:11 
GeneralRe: Implementing an interface (quandry)... Pin
Ray Cassick22-Feb-03 20:31
Ray Cassick22-Feb-03 20:31 
GeneralMSHFlexGrid's Pin
Andy H21-Feb-03 10:42
Andy H21-Feb-03 10:42 
Generaldisplaying a checkbox in access as a checkbox in vb Pin
mcm21-Feb-03 7:09
mcm21-Feb-03 7:09 
GeneralRe: displaying a checkbox in access as a checkbox in vb Pin
mikasa21-Feb-03 9:39
mikasa21-Feb-03 9:39 
GeneralVB.NET ComboBoxes Pin
mikasa21-Feb-03 2:37
mikasa21-Feb-03 2:37 
QuestionThis control array should work, right? Pin
David Williams20-Feb-03 10:21
David Williams20-Feb-03 10:21 
AnswerRe: This control array should work, right? Pin
Ray Cassick20-Feb-03 11:54
Ray Cassick20-Feb-03 11:54 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 9:25
David Williams21-Feb-03 9:25 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 9:27
David Williams21-Feb-03 9:27 
GeneralRe: This control array should work, right? Pin
mikasa21-Feb-03 9:40
mikasa21-Feb-03 9:40 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 10:18
David Williams21-Feb-03 10:18 
GeneralTry to send email Pin
Anonymous20-Feb-03 10:09
Anonymous20-Feb-03 10:09 
GeneralRe: Try to send email Pin
Nick Seng20-Feb-03 15:51
Nick Seng20-Feb-03 15:51 
GeneralRe: Try to send email Pin
Anonymous25-Feb-03 9:03
Anonymous25-Feb-03 9:03 
Generaltextbox loosing focus Pin
Anonymous20-Feb-03 9:06
Anonymous20-Feb-03 9:06 

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.