wood burning stoves 2.0*
The moose likes Java in General and the fly likes Alternative to FTP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Alternative to FTP?" Watch "Alternative to FTP?" New topic
Author

Alternative to FTP?

Srihari Injeti
Ranch Hand

Joined: Jan 05, 2001
Posts: 31
Hi,
We are not allowed to use the FTP ports for data transfer between the web server( outside the firewall) and database server (inside the firewall). What alternatives do I have to transfer files. These are typically larger files.
Any help and useful links, is very much appreciated
Thanks
Srihari


Srihari Injeti<BR>SCJP2 MCP CIW
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You can't use any File Transfer Protocols to do File Transfers.
Hmmmmm.
You could use a floppy (or zip drive).
(You sure this isn't really a question about security and firewalls in disguise?)


"JavaRanch, where the deer and the Certified play" - David O'Meara
Srihari Injeti
Ranch Hand

Joined: Jan 05, 2001
Posts: 31
No, I am not talking about physical transfer of files.
I need to transfer them programmatically.
[This message has been edited by Srihari Injeti (edited June 27, 2001).]
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
This is an age old question (going back nearly 4-5 years AFAIK, maybe older). The answre is HTTP tunneling. HTTP, HTTPS, FTP, Kermit, email protocls, etc are all protocols used to transmit data. It doesn't matter what the data is (it's all 1s and 0s anyway); well, it sort of does, in that certain protocols are optimized for for certain types of data. Fortunately, HTTP is often good enough, given todays networks, to do file trasfer. Plus, HTTP is usually not blocked by firewalls (if it was, you'd have a lot of trouble browsing).
There's lots of information out there on HTTP tunneling. To start, pick your favorite search engine and look under "HTTP tunneling"

--Mark
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
One thing to concider is JDBC. Transfer the data as a BLOB.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Vlad Patryshev
Ranch Hand

Joined: Jun 30, 2001
Posts: 61
Files can as well be uploaded and downloaded via multipart HTTP requests. Writing this kind of stuff in JSP is pretty straightforward.


Thanks,<br />Vlad
Srihari Injeti
Ranch Hand

Joined: Jan 05, 2001
Posts: 31
Originally posted by Vlad Patryshev:
Files can as well be uploaded and downloaded via multipart HTTP requests. Writing this kind of stuff in JSP is pretty straightforward.

Hi,
I have to use only pure java for this. No JSP. And the files to be moved are not on the desktop. I am first uploading the files from the local machine to the App server, by using multipart Http request. But I have to then transfer it to a Database server. This Database server is within the firewall and the FTP ports are not opened for security reasons.
1. Can I still use Http Multipart request? and if so, how?.
Can anyone give me an example.
2. What other options do I have?
3. I am sure some one might have come across a similar situation.
Please give me your input guys !!
Thanks

------------------
Srihari Injeti
SCJP2 MCP CIW
Srihari Injeti
Ranch Hand

Joined: Jan 05, 2001
Posts: 31
Hi guys,
I am sure some one knows the answer to my question
please help !!
Vlad Patryshev
Ranch Hand

Joined: Jun 30, 2001
Posts: 61
Originally posted by Srihari Injeti:

I have to use only pure java for this. No JSP. And the files to be moved are not on the desktop. I am first uploading the files from the local machine to the App server, by using multipart Http request. But I have to then transfer it to a Database server. This Database server is within the firewall and the FTP ports are not opened for security reasons.
1. Can I still use Http Multipart request? and if so, how?.
Can anyone give me an example.
2. What other options do I have?
3. I am sure some one might have come across a similar situation.

Okay, so it is pure java. A pure java program still can listen to an http port and handle requests and headers, retrieve data from multipart requests, etc. The client java program can as well generate multipart requests (although I do not think I can reproduce it right away).
2. You can use a separate port for this, invent your own simple protocol and just send over the data, in a zipped form or something.
3. Exactly what my application does. But it is inside the firewall
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative to FTP?
 
Similar Threads
Deploying from WSSD
backing up 0.5 GB over the internet
Transfer files using Http. Please help
get Firewall configuration in JAVA
Find Num of files in FTP Server directory