Solved

File Transfer / Email from Home pc  vb6 app.

Posted on 2004-04-01
8
156 Views
Last Modified: 2013-11-13
I'm looking for a reliable solution to send files from a home pc with internet connection to a server.  Have looked at various email approaches but am trying to keep user input to a minimum ie. the program should be able to detect the internet settings only asking for a username and password.  Is it possible to use Microsoft Internet Transfer Control or WinSock Control for this?  Taking into account that the application should cater for both lan connection (proxy server) and modem connection.
0
Comment
Question by:ClaireMcGovern
8 Comments
 
LVL 4

Expert Comment

by:sokolovsky
ID: 10731680
Microsoft Internet Transfer Control could have
Inet1.AccessType = icDirect
or
Inet1.AccessType = icNamedProxy
or
Inet1.AccessType = icUseDefault

To determinate Proxy settings, just look at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
keys ProxyEnable, ProxyServer
0
 
LVL 8

Accepted Solution

by:
plq earned 250 total points
ID: 10732266
You don't need any of that. Use this...

dim httpobject as object

            set httpobject = CreateObject("Microsoft.XMLHTTP")
            httpobject.Open "POST", "webservice.asp", false
            httpobject.send somestring
            sresult = httpobject.responseText

The file webservice.asp needs to have a posting acceptor configured - same story whatever method you use

To make "somestring" your file, just read it in using Scripting.FileSystemObject
0
 

Author Comment

by:ClaireMcGovern
ID: 10738735
Hi plq,

I haven't used XML before, could you elaborate on ur answer a little?  How does the XMLHTTP object handle connecting to the internet and how do I configure a posting acceptor?

Thanks
Claire
0
 
LVL 8

Expert Comment

by:plq
ID: 10738946
Hi Claire,

XMLHTTP will use your current internet connect
webservice.asp can be a full path. E.g. http://news.bbc.co.uk

Any solution which sends files to the internet requires a posting acceptor. Are you sending to your own server or to an ISP/hosted server ?

If its an ISP they should have given you the syntax to do <form ... action="....."> where action is the posting acceptor. That would replace the "webservice.asp" in my example, or at least thats how I understand it.

Sorry I haven't got any examples available, but theres lots in google - just search for "posting acceptor" or "posting acceptor" "upload a file"

MS article Q217425 might help too.

Thanks
Paul
0
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 250 total points
ID: 10969406
How about an email solution that doesn't require much input?  If that's not a viable option and you still want to go with an internet based solution, then what service or process is available to you at the server to receive a file?  Or are you looking for a complete solution, i.e. both the client and server pieces?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 100
Copy Files - Python 7 73
Visual Studio search word table and return Cell index 8 49
Re-position the objects 7 99
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now