Re: Problem: Store Images in a Sql Database

  •  10-26-2005, 7:42 AM

    Re: Problem: Store Images in a Sql Database

    Hi
     
    I fixed the problem: it was the invalid connection string!
     
    Solution:
    set in the Page_Load from the sample 'UseSql.aspx' the correct connection string,
    otherwise its using the default one defined in SqlFileStorage.cs!
     
     private void Page_Load(object sender, System.EventArgs e)
     {
      // set the connection string
      CustomFileProvider.SqlSample.SqlFileStorage.ConnectionString = @"server=.;uid=test;pwd=test;Trusted_Connection=no;database=test";
      Editor1.Setting["CuteEditorFileStorageType"]=typeof(SqlFileStorage).AssemblyQualifiedName;
      Editor1.Setting["DownFile"]=ResolveUrl("DownFile.Aspx");
      Editor1.SetSecurityGalleryPath("/");
     }
    Björn.
View Complete Thread