Re: [RESOLVED] Image control - now getting picture from DB - datasource??
Quote:
Originally Posted by szlamany
We store the size of the image in bytes along with the image - just as a double-check when we re-load later that we got the "amount" of image we expected.
Ah okay, that clears that up. I thought you could have done it like this.
Code:
arBytes() = rs(0).GetChunk(rs(0).ActualSize)
1 Attachment(s)
Re: [RESOLVED] Image control - now getting picture from DB - datasource??
Yes - that would be the size of the "stored image" - but having that extra column that actually "remembers" the original "size of stored image" would allow me to check "stored image" sizes and find corrupt images...
We also store the original filename...