Setup ITHit WebDAV server with MySQL [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have downloaded the ITHit WebDAV server (java version) and wanted to know if there is any examples/documentation on implementing this with MySQL (both examples are for Oracle) database or for simple file system based storage.
Since I'm just getting started ANY additional documentation or examples would be greatly appreciated.

We have MySql sample and use it internally for testing purposes. Please write us and we will send it to you. We do not publish it because it duplicates most of the Oracle sample code.
Currently there is no any examples other then with Oracle provided with IT Hit WebDAV Server Library for Java. We are working to create more samples.
The main reason why we do not create a sample with file system is that to store file locks we need to create external files. This may clatter your storage.
In case of the file system sample for WebDAV Server Engine for .Net we store locks in NTFS alternate file streams, so there is no any extra files are created in file system. With Java is more difficult, and probably goes outside of the idea of the 'Sample'.

Related

Download File from SFTP server without using JSch [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Due to some policy constraint at our company, we cannot use any external Library. I couldn't find any way to do that in Java.
I can think of two ways to avoid using an external library:
Implement your own SSH File Transfer Protocol client using the standard SSLSocket class ad related classes. The specifications are linked from the Wikipedia page. A brief review of the spec suggests that the protocol is not that complicated.
Identify and install a command-line client for SFTP, then use Process and ProcessBuilder to run the client as an external process.
Before you undertake any significant coding work on this, I would advise you to estimate how much dev time it will take to code test and maintain the code. If it seems like a lot, document the estimates and take them to your line manager.
If you are faced with a significant amount of extra work, it may affect your ability to meet your deadlines. Your manager needs to know about that.
If your manager is faced with a large dev cost or schedule slippage, he or she may be prepared to argue for an exemption to this (IMO) crazy corporate policy.

Restricting a file on a network [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm currently running a Java app over a network and I'm using one system as the server. The clients can create documents such as receipts and other things but they're all stored on a folder in the server system. But now I have an issue the folder had to be shared and it's permission set to read and write for every client to be able to read and write to that folder and cos of this users can directly access this folder on the network and see the files or even delete the files in the folder but I don't want this.
So is it possible to have a folder where all clients can read or write files to on the server system but cannot directly access the folder through the network?
Normally you would have a service, such as a web service which allows users to upload files. There is command line tools to do this as well as being able to do this with a web browser. There is a number of way of doing this based on your preferred choice.
Another approach is to give each use a folder they and only they can access (your application also). One folder per client/user. You can monitor these folders and detect when a new file appears and move it to a folder only your can access.

Best Practices for Scalable File Storage [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Say we are writing applications with Play Framework, or Spring for instance, and we want to use a standard way to manage and store binary file uploads using an API (object storage), as opposed to managing a file system yourself. In a similar way to using Amazon cloud storage, but without locking into an external provider.
Imagine we would also like to be able start by running this service on the same server as the application you are developing, until growth requires it you to move the file storage to it's own server (or cluster) and your application itself in it's own cluster. If we start off with a cluster-ready service then surely we can scale up quickly.
Do we continue to manage the file system ourselves while running at a small scale, or do we adopt something else?
Is this where we need to look at running a local Hadoop HDFS instance for example, this way we wouldn't need to rewrite our file upload and handling in our application, and could scale-out the file management system into a cluster when the need arises. It would be great if this functionality was provided as a service with a common API, such as running H2DB in-memory for integration testing.
Or are Hadoop HDFS, OpenStack Swift or Ceph overkill when we're still making our simple prototype application?
I'm sure that I'm missing something - but struggling to find the solution. Managing a file system by hand feels dirty and wouldn't allow me to push applications to any PaaS provider without rewriting. Again, I think there should also be a local solution rather than always integrating with Amazon and the likes.
Any thoughts?

Oracle Database Deployment [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I created a table in an Oracle database on my personal computer.
Then linked it with a Java Application and I am using that table/database to save all the data from the application.
But when I deploy my .jar file and run it from another system, that database is not installed on it.
Can anyone please tell me or guide me what I am suppose to do? In order for the database and the application to work on other systems too.
Thanks
Basically, you'd need some options in your program to allow the user to configure which database server they want to use.
It would be up to them to deploy a server and provision it correctly before they could use your program. Instructions on doing so would be included in the setup documentation for your program.
It's also possible for your program to be able to setup a database on a remote Oracle instance automatically. You would implement an option to allow them to CREATE DATABASE on a configured Oracle instance, which would run provisioning scripts to create all the necessary tables, views, sprocs, etc.
Since these steps create a lot of friction in deploying and using your program, you should also ask yourself if you really need a SQL database for your program. If it's just single user with a small amount of data, you could check into some sort of local DB that runs in proc.

ways to upload PDF in your site [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm using JSP/Java and Spring MVC as framework. I'm going to support uploading PDF files to my site. The site will be uploaded to a free web hosting site.
I want to know which is the best way to support the uploading the PDF files:
Save it into database?
Save it to the web server ( if this is possible )
Save it to your recommendation ( please share what you have in mind )
And also give me a link or tutorial of how may I do this ( if you suggest other than option 1 and 2 )
Thank you in advance.
Saving file into database is not recommended and i am not sure if anyone would like to do that also.
Uploading file into web server is also not a good choice because it will increase the load unnecessary.
The best option is use a dedicated space (it may be cloud or anywhere), and secure it.
You can refer to spring file upload for reference.
If you are working in localhost for development then i would suggest just use the drive other than where your sever is running. And you can mention the path in web.xml or where ever you want.
Little is achieved by putting "large blobs of binary data" (such as PDFs) into a database. The only situation where this would be justified is when the data has to be handled transactionally.
If there is nothing to be achieved by putting the PDFs into the database, then don't do it. You should be able to upload and download large documents faster if they are stored as files in the file system.
How do you do it? Well there are a variety of ways. But WebDAV offers a simple "off-the-shelf" solution ... if that is what you are after.
Recommended way is always to use a File System storage service like Amazon S3.
This application on GitHub shows you exactly what you need using AmazonS3 but uploading an image instead of a .pdf. But I am sure that you will find the example really useful.

Categories

Resources