• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative to FTP?

 
Srihari Injeti
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?)
 
Srihari Injeti
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6037
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing to concider is JDBC. Transfer the data as a BLOB.
 
Vlad Patryshev
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Files can as well be uploaded and downloaded via multipart HTTP requests. Writing this kind of stuff in JSP is pretty straightforward.
 
Srihari Injeti
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am sure some one knows the answer to my question
please help !!
 
Vlad Patryshev
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic