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 2 years ago.
Improve this question
In summary I have a java program that writes a file and I would like to now take that file and upload it to my Squarespace website. From here I am trying to figure out what my next steps are.
Unfortunately, Squarespace currently only offers APIs related to commerce (inventory, orders, products, transactions) and forms. There is no file storage-related API.
The only ways to upload files are via the WYSIWYG editor (via the add-link button), via the CSS Editor (for image assets) and via developer mode.
Squarespace 7.0 sites (current sites are 7.1 by default) that have Developer Mode enabled do support Git and SFTP. Theoretically, one could develop a system that utilized one of those methods in order to add files to the site (which would then be accessible via /assets), but that is only theoretical and far from ideal.
I'm afraid there isn't a good method for automatically uploading files to a Squarespace site.
Related
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 2 years ago.
Improve this question
I have crated simple library management system in Java. Should I use database for my application ? If yes I use database, do my client also need to install database for using application ?. I have seen many software's who store data in windows app-data, my documents folder. I want to create software with simple Installer; Install and Run. Please help me about data storage options.
You can get the benefits of both using a database and having the application simple to install and run, if you use an "embedded" database engine.
An embedded database is just a library you add to your program. There is no external server that you have to manage. Internally, the data is stored in a file or files which you can place in an "application data" folder.
Popular choices for an embedded database system are SQLite and Apache Derby
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 3 years ago.
Improve this question
in one side i have an API that store many xml files.
on the other side, an another API have to receive all these files.
i have created a service in the first API that create an ByteArrayOutputStream with all the files and return it.
But i'm not sure it's the best solution if files are too large.
How can i receive in a safe way all the xml files in my second API ?
The best way to develop a file transfer system is to not develop the code yourself. Use an existing solution.
The best way to develop a file transfer system in Java is to minimize the code you write yourself. Use an existing Java library.
There are many software packages, libraries and/or protocols that you could use. Asking us to recommend specific ones is off-topic. When you do your research, make sure that you include your security and integrity requirements in your assessment criteria.
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 3 years ago.
Improve this question
This occurs with many applications, for example Microsoft Word. If I click on a word file (.doc). Microsoft Word will start or communicate with an already running process.
How do I implement this with Java? Of course with my own file extension.
A file with the custom extension would just be a json/xml text document. But obviously the custom extension part is needed so windows knows what to open it with.
Eventually it would open a new screen/page in an javaFX application.
I am not sure what to call this, and I am having trouble finding examples because of that.
This involves setting file associations in the OS your java application is running in.
Oracle provides a tutorial (pretty old at this point, it mentions it was written for 8) which is about creating self-contained application packages which bundle the code and runtime together. This has a section on Using File Associations.
When creating your bundle, you can set file associations which the installer will setup in the OS.
<fx:info title="File Association Demo"
vendor="MySamples"
description="A Demo of File Associations for Java Packager"
category="Demos"
license="3 Clause BSD">
<fx:association extension="js" mimetype="text/javascript" description="JavaScript Source"/>
<fx:association extension="groovy" mimetype="text/x-groovy" description="Groovy Source"/>
</fx:info>
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 7 years ago.
Improve this question
I was given the task - to create a simple JAVA EE web-application that have the following functionality:
It had an index page
I choose an algorithm and enter parameters for it on index page
Depending on chosen algorithm a statistical .csv file will be processed on its own way.
After processing the .csv file in compliance with entered parameters and chosen algorithm I get a table where I can find processed data.
I know that it's a very simple application but I don't know what to do - architecture, what kind of web layer and etc
If you install Apache Tomcat on your computer, and then run it, you will find a lot of simple examples, many of which will come close to what your are asking. Plus, once you install it, you have a server on which to run your new code. I would recommend you start there.
Apache Tomcat
I would say that if you really want simplicity, you go with just Servlets for the server-side processing, and JSP pages for the HTML views. I know, it's "vintage" almost, but will get you running in no time and without the need for any special "architecture" or framework besides the servlets API.
You can build your app as a War file with the tool of your choice and deploy it in a Tomcat server and that's it.
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 5 years ago.
Improve this question
I need to open a san box url while using file browse button in a web application. For that i planed to set VPN using Java code.I tried it google but could not find any solutions so for. Any Idea for this one?
What exactly are you trying to do? When you say "open a sandbox URL while using file browse button", I assume you're trying to list available files (and maybe retrieve contents of a file)? If so, are you trying to access the file system of the server (web server?) or the client?
Either way, I think you need to consider some other options.
If you're looking to expose a directory tree of the server, I'd expose any details you need (directory tree and/or file contents) through a web service (JSON, XML, or otherwise) - and present that data back to the client - possibly using AJAX. An immediate example that comes to mind is phpVirtualBox. I can remotely mount virtual disks from the server on the server - all through a remote web browser using this approach.
If you're looking to expose a directory tree from the web client, you either need to use the browser's built-in file selector (using <input type="file"...>, or an applet - e.g. Java or Flash, if the browser-provided options don't provide the functionality that you're looking for.