Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileUpload to Two Separate Databases

 
Sean Fine
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to make a feature that allows a user to upload a file to a central database that will be shared and seen by other databases. I'm wondering what would be the best way to go about doing that as I've searched and experimented for the better part of three days only to come up empty handed in my efforts. I'm familiar with how to do file uploads in general, but when I try extending that to a remote service, I run into issues like my InputStream isn't serialized or the File then isn't found. Any help or any guidance would be appreciated as I've basically been banging my head hoping to find something.

My basic idea is that in the user's local database, they would have a entry with a id that links it to the entry with the path on the remote database. The part I'm currently stuck is getting the file to upload in general. I feel once I get that I can hopefully get file downloaded. Let me know if there's any other information I can provide to help.
 
jatan bhavsar
Ranch Hand
Posts: 297
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

Welcome to JavaRanch.

to upload a file to a central database that will be shared and seen by other databases.


Aren't you able to upload the file to central database ? This is new for me as well but would like know...
If you can upload file to central database then its upto the database to handle the file sharing and to upload file to database you can write file uploading code. Because file uploading should be irrespective of
database.

2) Have you implement serialized interface..
3)" I try extending that to a remote service" Can you Please explain this.

Regards
Jatan Bhavsar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic