Sending files to web server

C

carmelo

Hi everybody,
I have to develop a swing app (or jsp) which can manage records on a
MySql db table, and to associate an image file to each record. I
thought to make it in this way:

- sending the image file through FTP
- associate the file path on the web server to the record


Have you got any suggestion?
Regarding FTP do you think is it a good solution?


Thank you very much in advance for your help
 
C

carmelo

On 5 Mag, 12:32, Sabine Dinis Blochberger <[email protected]>
wrote:


Thank you for your answer.
But putting the image into a BLOB field, can I display it later on a
web page?
 
C

charlesbos73

Regarding FTP do you think is it a good solution?

FTP has hardly any concept of security.

It is a good solution as long as you have no security
concerns at all.

If you have control over the server that needs
to receive the file, configuring SSH and using
SCP is a much better alternative (SFTP would do
too).

I implemented exactly what you describe using SCP.

More fancy setups like FTP over TLS or FTP over SSH
can be made to work but I think using SSH/SCP is
way easier.

If you value security, FTP is a big no-no.
 
D

Dave Miller

carmelo said:
Hi everybody,
I have to develop a swing app (or jsp) which can manage records on a
MySql db table, and to associate an image file to each record. I
thought to make it in this way:

- sending the image file through FTP
- associate the file path on the web server to the record


Have you got any suggestion?
Regarding FTP do you think is it a good solution?


Thank you very much in advance for your help
The JSP can handle the server side (receiving the file and putting it
into the database) - you don't need the overhead of interfacing with an
FTP server. The JSP can also retrieve and display the images if that's
part of the assignment. You can use a browser, an HTML form and <input
type file> for the client side upload.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top