PDA

Click to See Complete Forum and Search --> : File transfer over http


Asterisk
Jun 29th, 2000, 03:00 AM
How would anyone recommend i transfer files from a
vb application to a webserver using the http protocol
and any would i then control the reciept of the file on the
server side ( using ASP or CGI )?

Thanks

Asterisk
Jul 1st, 2000, 05:46 AM
Thanks alot, I'll definately give that a try. I just have one question though.

I see that you are using the CreateTextFile Method of the
filesystemobject. Does this mean that this solution will
only work with text files , because i need to send picture files aswell ?


Thank again

vbsquare
Jul 1st, 2000, 06:30 AM
For pictures I think that you would need to either perform a binary transfer or perform a bit of a hack.

Open the picture file in binary format in VB. Send the contents of the file in the same way you do with the code I have provided. Then (I think this works) save it to a text file but give it a picture extension, and that might work. I think that you should play around with this first.

Asterisk
Jul 1st, 2000, 08:24 AM
Thanks

I'll give it a try