DbCommandImageAccessorExtractImageStream Method |
Namespace: Atalasoft.Imaging.ImageSources.Data
This function is implemented for DbImageSource to use.
The field can either be a blob, image or string. If it is a string, it is interpreted as a filename and the filestream is opened. In order to get a connection to the database, the getConnection callback will be called -- the connection returned doesn't have to be opened (it will be opened when necessary), but this function will definitely close it before it returns. This method will use the property ImageFieldName to determine the column name of the image stream information. If that method returns null, it will assume that the information is in the first column.