Upload/ Download file securely core java in desktop application - java

I am creating a desktop application for syncing documents of my site, what should i use to fast transfer of files from client to server and vise-versa apart from using FTP client jar.

Related

Access FTP files from java without filezilla or winscp

I have made java web application for uploading file in ftp and in the same application user can directly open files in browser. It is running successfully when Filezilla or winscp is opened. After closing filezilla and winscp I can't access or upload files to ftp. Is there any possible solution, that I can access these files from web application without installing external application. I'm using Apache commons.net library for ftp connection.
There is JSch that is a library to access sftp in Java. I have used it before in a project and is relatively straight forward. Probably you will have to work on it to open files in a web application though.
http://www.jcraft.com/jsch/examples/Sftp.java.html

How to stream audio from encrypted version of mp3 file using Java REST server?

We have audio files which should be streamed to authenticated users. All the audios are encrypted.
Our current approach is to decrypt file download in a public web directory on the server which has the file name in a predefined format. If called using link this file is playable on any client i.e. web or mobile. But we have security challenges as this file is in public directory anyone with basic browser knowledge can get a link and play it without authentication.
Is there any secure way to stream an audio file using authentication? Any standard practice in Java REST frameworks, spring-boot, dropwizard etc?

Transfer .properties files from server to client in web application

I am developing web start java application. I need some initial setup files which needs to be transfered from server to client pc and are in .properties file format. I need these files before launching my application. How can I achieve this?

How can I host a Jar file on Tomcat

I have developed a simple management software like library,shop item management. when I compiled my java files I get a .Jar file which I want to host somewhere (tomcat etc.) so that anybody can go to that IP and add/modify the iteams. Is it possible ? I developed that software using java Jframe.
You need to create a JNLP (Java Network Launch Protocol)
The Java Network Launch Protocol (JNLP) enables an application to be launched on a client desktop by using resources that are hosted on a remote web server
See This for detail about JNLP.
Also you will get a lot of information from google about JNLP.

deploying chat application on web server

I have build one chat application, which consists of server and client part & backend uses sql server 2005. Now i want to deploy my chat app on Apache web server. by converting it to exe and allow users an option to download my exe file through jsp file.
Now what i need to know is:
What exactly i need to convert in exe(is it server or client or both seperately).
Can my chat application automatically access database if i convert it into exe.
Do i need to deploy both client and server exe on web server.
I hope i am clear enough.

Categories