473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Upload a file using VB6

Hey all. I'm trying to figure out how to upload a file to a web server using VB6. I do not want to use FTP functions. I want to send it directly from the hard drive to the web server. I have seen plenty of methods using .NET, but I don't see any using VB6. I realize I will need to provide a user/pass to the web server to upload a file, so I'll need some way to do that. Any help would be greatly appreciated. I have been working on the issue for about a week now and I have successfully downloaded a file in VB6. Now the final piece is needed. The least amount of code would be appreciated. I don't need a text box to enter the URL or remote file name because it's always just one file. Thanks.
Feb 27 '08 #1
4 6043
jeffstl
432 Expert 256MB
I'm sorry...you want to move a file from a local PC to a remote web server .....over the internet (not a local intranet) and you DON'T want to use FTP?

Maybe one of the experts can correct me but I believe FTP is the only protocol available for doing said action. Even what you describe as "sending it directly from the pc to the web server" is exactly what FTP is.

There are alot of FTP functions available for vb6.0 out there. I am unaware of any other controls, functions, etc to move whole files over the internet unless you parse the file down to pure data and send it as a record, and write it back out on the other side.

Sample:
http://support.microsoft.com/kb/q163653/
Feb 27 '08 #2
Killer42
8,435 Expert 8TB
Maybe one of the experts can correct me but I believe FTP is the only protocol available for doing said action. Even what you describe as "sending it directly from the pc to the web server" is exactly what FTP is.
Can't one also use the HTTP protocol to transfer files?
Feb 29 '08 #3
jeffstl
432 Expert 256MB
Um, Yes that is true :-)

I guess I wasn't picturing it that way though since HTTP is dependant on a browser to display a file properly depending on the type.

Or also that (typically I guess) HTTP is used to send files requested from a web server via URL. Not files from a local desktop application....unless that application was the one that generated the files I guess.

Your trying to confuse me now aren't you? ;-)
Feb 29 '08 #4
Killer42
8,435 Expert 8TB
...Your trying to confuse me now aren't you? ;-)
No, just trying to clarify. I haven't done anything much with the web, just local Windows stuff.
Mar 2 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: MeAndI | last post by:
Hi to all, How can I put a file via FTP using the ASP pages? Please help
5
by: John Lee | last post by:
Hi, I have a simple web page that allow file to be uploaded, the upload page looks like the following: <form method="post" name="upload" enctype="multipart/form-data"...
3
by: Brian | last post by:
Hi, I've been trying to find a way to upload file to another site that is not using IIS. The site that I want to upload file to has a simple php script to receive file uploaded through standard...
3
by: tshad | last post by:
Is there a way to use a custom button with the: <Input ID="MyFile" Type="File" RunAt="Server">? This gives you a generic button, but I would like to use my own button that has the same style...
4
by: abhanjee | last post by:
Hello, I am a newbie and am developing an application for work. I have figured out how to upload a file attachment to the SQL database and download the same file using C# and Visual Studio....
4
by: google.com | last post by:
Hi there! I've been digging around looking for a sample on how to upload a file without user action. I found the following article covering the area: ...
1
by: fiyah | last post by:
Hi all.. i am very new in this forum..but i hope somebody can help me to solve this problem now i am using C#.net in windows flatform and i having a problem to add a file upload functionality...
2
by: vinodkus | last post by:
dear sir/madam I have to do something like this that a user see list of record if he would find record and want to upload that list then he could upload in a pdf file of that record. please help...
3
by: haytham2008 | last post by:
hi every body can i upload file using ajax ?? if yes how pleaze with code thank u in advance
1
by: indu19 | last post by:
Hi, I am still fresher in php. so i need help... How to get upload file's complete path and how to store it in DB move_uploaded_file($_FILES,"c:/Indu/".$_FILES); I upload file using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.