wood burning stoves 2.0*
The moose likes Struts and the fly likes FileUpload to Two Separate Databases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "FileUpload to Two Separate Databases" Watch "FileUpload to Two Separate Databases" New topic
Author

FileUpload to Two Separate Databases

Sean Fine
Greenhorn

Joined: Nov 20, 2012
Posts: 1
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

Joined: Jul 23, 2008
Posts: 296

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
 
 
subject: FileUpload to Two Separate Databases
 
Similar Threads
JNDI Tutorial/LDAP examples/OpenLDAP
Web File Reader
Configuring Multiple Datasources w/ Jboss 3.2.x
Passing data between pages/requests - Best practice
Massive Data Entry!!