Hi helix84 I found that it was the bitstream.size_bytes field that prevented the download from opening correctly. I changed my script to update the database with the correct filesize as well as the md5sum, and it work perfectly. Thanks for your help.
Kind Regards. Shaun Donovan On 11/01/2012 07:18 PM, helix84 wrote: > On Thu, Nov 1, 2012 at 6:12 PM, Shaun Donovan <[email protected]> wrote: >> I actually did look at ItemUpdate. This still requires that you delete one >> bitstream and add another. The delete option requires a bitstream ID, which >> I have no way of knowing by iterating the filesystem. >> >> Unless the internal_id in the bitstream table is unique and corresponds to >> the filename as stored in assetstore, which it now looks likely to me. >> >> If that is true, then I should be able to use ItemUpdate by using the >> filename that I am busy with to do a lookup of the bistream_id in the >> bitstream table. > Yes, exactly. > >> The question then becomes, am I correct in assuming that the >> bitstream.internal_id field is the actual filename? > Sounds good. I never tried it, though. > >> If I am to use your other suggestion and calculate my own MD5 checksum and >> insert it into the database, I will then also need to update the >> bitstream.size_bytes field. > Yes, I forgot about that one. > >> Both of these methods sound likely to work, but I think that the ItemUpdate >> is safer. I will test both and let you know. > I forgot to include the usual disclaimer and warning - backup your > assetstore and database dump before you make any manual changes, > update indexes and run checks after you do the changes. > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

