Solved

File Transfer / Email from Home pc  vb6 app.

Posted on 2004-04-01
8
157 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My project did see openJDK that I installed. What could be the problem 7 141
mapAB Challlenge 35 144
groovy example issue 10 97
Create Files based on Cell Values in a Range in Excel 12 39
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

770 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