• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

FileUpload to Two Separate Databases

 
Greenhorn
Posts: 1
  • 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.
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!