Help with sending binary file instead of text 
Author Message
 Help with sending binary file instead of text

Can some help me with what needs to be changed here to do a binary send
instead of a text.
I'm thinking MyData needs to be set to a file like c:\temp\image.jpg and the
header content has to be changed...thanks

Dim MyData As String
Dim header As String
MyData = "hello"
With Inet1
.Protocol = icHTTP
.RemotePort = 80
.Document = "temp/test_put.txt"
.URL = "http://localhost/" & .Document
header = "Content-type: text/plain" & vbCrLf
.Execute Inet1.URL, "PUT", MyData, header
If Inet1.StillExecuting = True Then
Do While Inet1.StillExecuting = True
    DoEvents
Loop
Else
    .Execute , "Close"
End If
End With
End Sub



Tue, 16 Nov 2004 22:28:04 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. binary log file instead of text log file

2. Sending binary & text files over modem

3. Help: Send binary file to server

4. Help convert binary .bas file to text

5. detecting a binary file vs text file

6. Converting Binary files into Text Files

7. ??? Using Split instead of Line Input to read huge text files

8. Help !! How do I send a text file

9. SENDING A BINARY FILE

10. send a binary file w/ filesystemobject?

11. Sending binary files through webclasses

12. Function to encode binary file and send by VB (mail)

 

 
Powered by phpBB® Forum Software