I have the image gallery linked up and working from a physical drive, however I am struggling with how to wire up the control to read the images from a database. Listing the directories is fairly straight forward as this is a simple string array. Unfortunately the CurrentImages property is an array of FileInfo objects. Based upon the Wiki the following is described:
Instead of reading from the file system, a developer can override the folders and images presented to the user, by setting the following two properties:
CurrentDirectories - a string[] array of directories to allow the user to navigate toward
CurrentImages - a FileInfo[] array of files the user should be able to insert.
The FileInfo object is returned from the Directory.GetFiles() method within the framework, and the FileInfo type cannot be inherited. Is there another property and/or format that I should be looking for that will accept a byte array streamed from a varbinary field within the database? The only way that I see this can be done is to emulate a drive that the framework can see, so that the Directory.GetFiles() can be called against that.
Any help would be greatly appreciated!
Thanks!