Reading and storing pictures in an SQL server database

Last post 11-25-2005, 1:14 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-24-2005, 4:43 PM 13003

    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. 
     
  •  11-25-2005, 1:14 PM 13025 in reply to 13003

    Re: Reading and storing pictures in an SQL server database

    Torben,
     
    We updated the CustomFileProvider.zip last night.

    Can you download this file and try again?

    Sorry, I don't have any better idea right now.

    Keep me posted



     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML