Can someone let me know how can we implement a resumeable file upload in dropwizard 1.2.6? So if a user is trying to upload a large file (4-5 GB) and if there is a network failure or the browser is closed by mistake then the user will be able to resume the process from where it was interrupted.
tus.io can be used with dropwizard to support resumable upload. An working example is placed in the below github repo
https://github.com/tomdesair/tus-java-server-dropwizard-demo
Related
We have Java Vert.x project. We have implemented the download button in our Web Service for our users. When user clicks on download button, we would convert the huge data in our database that the user asked for, to excel file, then upload it in AWS S3 and then the URL from the S3 would be sent in response to the user's download request. But this whole method takes time (Especially generating the excel file). Everything is don in backend. Please suggest better approaches than this to implement download option in the page(User has both option to download filtered or complete data that he is accessible to).
I have this experimental endpoint on my Google App Engine Java servlet app, and it accepts multipart HTTP form posts. I noticed that when I do an HTTP multi-part form post with a file that is like 20 MB.
When I experiment by doing the HTTP post file upload from CURL, I see that curl finishes uploading the file to 100% in about 10 seconds, but then there is almost like 12 - 15 seconds of the Google App Engine doing some processing ( I guess it is reading the file that was stored in a temporary location?? ) before it actually starts running the code of that app engine endpoint.
Can anyone clarify if it is normal for App Engine to take that long to process uploaded files?
Thanks
I have an android application, which wants the user to login each time he runs the app. So, the login procedure is simple, using the sqlite dabase file i'm using. I've copied the file in assets folder and doing the necessary modifications. But, the database file is of no use unless it is on the server. I don't have any server so i'm thinkin of keeping the database file on dropbox, google drive etc and then read or update that file as per user commands. The question is how to do that? I was searching the web for it, and found that the only way is downloading the db file modifying it and the uploading it back. Can anyone give me an example??
Doing that isn't possible unless you have a server.
Because, if you are using dropbox, first you'll have to make your file public in order to download it (Not recommended at all. Compromises security). Then you can use the url to download the file. But you won't be able to upload it back (Unless you are able to login to dropbox through your Android code).
Instead if you a web server with MySQL n PHP, you can easily send POST requests to your server.
I need to upload file to my web application using servlet, the problem is that I want the file to be available only in the run time !
I know to upload the file to the server, but I need the file to be available when the user upload the file to the web and do some tasks to the file and when he close the web application he will lose the file and need to upload it again
Would you please give me any tutorial to help me?
I think what you need is a javax.servlet.http.HttpSessionListenerthat delete the file when the user session is destroyed (see method sessionDestroyed(HttpSessionEvent se))
Hope it helps.
I have done a backup and restore application for java phone including nokia, it works fine but pictures larger than 1 MB cannot be uploaded is that possible to upload a file larger than 1 MB, if so please suggest me whether it is possible on HTTP or FTP.
Thank you.
Have a look at this step by step tutorial. What you need is to send files in multiple parts over a persistent HTTP connection.
Uploading files to HTTP server using POST on Android.