Download .mdb File


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Download .mdb File

  1. #1
    Join Date
    Aug 2005
    Posts
    6

    Download .mdb File

    Hello. Can anyone tell me if it's possible to use java to download an .mdb file? What I'm trying to do specifically is automate a very tedious routine that includes downloading an Access database from my company's web host, making some modifications and then uploading the database back to where I got it. I need help with the uploading and downloading part. If it's possible, can anyone give me some pointers or point me in the right direction? Thank you.

  2. #2
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    First is the contents of the file important to the up/down load process? IE could the same code be used for any binary file such as a jpg? In other words, you need generic code to up/download a file from a server.
    What protocol does the server provide? FTP is often used for this kind of application.
    HTTP GET can be used for the download. You might need special code on the server to do the upload like a servlet that can receive the file and write it to disk.

  3. #3
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    You certainly can do what you need to do in Java - given adequate rights to get to the file on the server.

    You can get FTP access to the file for downloading and uploading ...

    You can write an Applet served up by your web server which includes the file in its sandbox which gives you access to the file ...

    You can create a JSP/Web service which connects to the .mdb file through a JDBC connection - you could actually do your update without downloading and uploading the file ...

  4. #4
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    To nspils,
    You said:

    Quote Originally Posted by nspils
    You can write an Applet served up by your web server which includes the file in its sandbox which gives you access to the file ...
    Not sure how you "include the file in its sandbox". Do you mean that the applet can do an HTTP GET while being executed in the client's browser to read the file from the server? Or do you mean that after doing the GET, the applet could write the file to the client's local disk. This would require giving the applet write FilePermission on the client.
    Or are there other ways?
    Thanks,
    Norm

  5. #5
    Join Date
    Jul 2005
    Location
    the Netherlands
    Posts
    128

  6. #6
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Norm -

    You are correct in being concerned about the limited rights that an applet has on the client machine.

    My thought in suggesting an Applet included the setting of a policy to allow the applet to access the client's hard drive to read/write this particular file.

Similar Threads

  1. Replies: 0
    Last Post: 11-22-2002, 01:43 PM
  2. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 11:40 PM
  3. How to lock a .MDB file using API in VB
    By Manjunath Raiturker in forum VB Classic
    Replies: 4
    Last Post: 04-28-2001, 06:59 PM
  4. How to lock a .MDB file using API in VB
    By Manjunath Raiturker in forum VB Classic
    Replies: 0
    Last Post: 04-28-2001, 04:43 AM
  5. Replies: 0
    Last Post: 01-12-2001, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center