coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jan-hillebrand on February 18, 2007, 01:20:30 PM

Title: Collum value for picture table
Post by: jan-hillebrand on February 18, 2007, 01:20:30 PM
Hi.

I'm currently writing a Java application, which makes it possible to create albums, upload and add pictures to the galery remotely.

Everthing works fine so far, but I just couldn't work out, which value to put in the ctime collum of the pictures table. I've already figuered out, that this indicates the time when the picture was added to the galery, but it actually doesn't represent the time in millisecs from 1.1.1970, so I'm wondering, how I get an appropriate value for this row?
Also I guessed, that the total_filesize collum is representing the sum of the size of the original file, the "normal_"-file and the thumbnail, while filesize is just representing the size of the original picture, is that correct?

Thanks!
Jan.
Title: Re: Collum value for picture table
Post by: Nibbler on February 18, 2007, 02:00:33 PM
ctime is actually a unix timestamp, and the total_filesize is correct, yes.
Title: Re: Collum value for picture table
Post by: jan-hillebrand on February 18, 2007, 07:31:16 PM
Thank you very much!