DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2005

    File as temporary data storage

    Hi all,

    If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file.
    So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I go with XML(can I delete a record from a xml?) or is there any other suggestion?
    With regards, Ajse

  2. #2
    Join Date
    Nov 2004

    Nothing complicated works...

    Serailzation you say..., then I assume that you are handling these files
    of records as serializable objects (I think I have answered this before). I
    also assume that you are in control of the code on the server side and that
    it is vitally important that you don't delete a local record that hasn't been
    transferred properly and that you cannot update a record that is
    scheduled for transfer.

    My suggestion:
    (there may well be obstacles in your scenario that prohibits this method)
    Don't delete while transferring, let the server respond to the transfer with a
    list of references for all the transferred records after the load has completed.
    This response could be a short one if all was transferred and loaded ok.

    Then do the local deletion.
    eschew obfuscation

Similar Threads

  1. Saving data in a binary file
    By teja8100 in forum VB Classic
    Replies: 6
    Last Post: 07-08-2005, 06:03 PM
  2. Save Image to Field
    By Chicho in forum VB Classic
    Replies: 11
    Last Post: 10-01-2003, 12:00 AM
  3. NT For command and pipe symbol in data file problem
    By Michael Liang in forum Enterprise
    Replies: 2
    Last Post: 06-21-2002, 09:48 AM
  4. Replies: 1
    Last Post: 03-14-2000, 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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.