FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Image Gallery - Database Images

Last post 07-08-2009, 9:17 AM by SQLWiz. 1 replies.
Sort Posts: Previous Next
  •  06-28-2009, 3:48 PM 9955

    Image Gallery - Database Images

    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!

  •  07-08-2009, 9:17 AM 9972 in reply to 9955

    Re: Image Gallery - Database Images

    I was able to create my own Image Gallery page, and use the javascript included with the control.  I was then able to create my own repeater control for the gallery images bound to a data table, and enable custom file extensions for the images.

    Thanks to everyone who read the original post.

View as RSS news feed in XML
www.freetextbox.com