Reading and storing pictures in an SQL server database

  •  11-24-2005, 4:43 PM

    Reading and storing pictures in an SQL server database

    Hi,
     
    I tried to use the Cute Editor SqlSample. Everything seems to be correct - db connection, a new table is created with exact the same columns as mentioned in the example, and those 3 lines of code in the Pageload event of the page containing the editor:
       Editor1.Setting["CuteEditorFileStorageType"]=typeof(SqlFileStorage).AssemblyQualifiedName;
       Editor1.Setting["DownFile"]=ResolveUrl("DownFile.Aspx");
       Editor1.SetSecurityGalleryPath("/");

    The whole solution compiles and runs nicely, until I press the insert image button.
    But no matter how the SetSecurityGalleryPath is set, the code always ends up in the "public override string VirtualRoot" in the SqlFileStorage.cs file, where the "throw(new ArgumentException("Path must be rooted")); " is executed. The value always seems to be an empty string.
    At this moment, the program hasn't startet reading/writing from/to the database. Does anyone have some further documentation or a solution, that can make the program flow more clearly. 
     
View Complete Thread