You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
happy to find your ashx because profilepic.ashx is a problem for picture resizing and now my profiles in different sizes are fine
I tried to install , but it took me a lot of time to understand how.
You said: for DNN normal procedure . But I did'nt see anything like .dnn package or specific zip for that
At the end I installed manually .
1- Web config in appsettings
2- Bitboxx.Web.GeneratedImage.dll in the bin folder
3- bbimagehandler.ashx at the DNN root
4- parameter dnn=1 in calling ashx
I tested and but got a problem to retrieve image from database
I looked at your code and saw that in ImageDnTransform.cs where you retrieve image path and name
The path is built with PortalId. Problem is that I always give a name to the portal directory : Homedirectory
Then I change something sqlCmd = "SELECT HomeDirectory FROM [dbo].[Portals] " +
"Where PortalID = " + this.PortalId.ToString() ;
object resultportal = SqlHelper.ExecuteScalar(this.ConnectionString, CommandType.Text, sqlCmd);
string homedirectory = ((string)resultportal).Replace('/', '\');
string imgFile = Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, homedirectory);
imgFile = Path.Combine(imgFile, ((string) result).Replace('/', '\'));
And now it works fine .
I hope that helps
The text was updated successfully, but these errors were encountered:
Hello
happy to find your ashx because profilepic.ashx is a problem for picture resizing and now my profiles in different sizes are fine
I tried to install , but it took me a lot of time to understand how.
You said: for DNN normal procedure . But I did'nt see anything like .dnn package or specific zip for that
At the end I installed manually .
1- Web config in appsettings
2- Bitboxx.Web.GeneratedImage.dll in the bin folder
3- bbimagehandler.ashx at the DNN root
4- parameter dnn=1 in calling ashx
I tested and but got a problem to retrieve image from database
I looked at your code and saw that in ImageDnTransform.cs where you retrieve image path and name
string imgFile = Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, "Portals\" + this.PortalId.ToString());
The path is built with PortalId. Problem is that I always give a name to the portal directory : Homedirectory
Then I change something
sqlCmd = "SELECT HomeDirectory FROM [dbo].[Portals] " +
"Where PortalID = " + this.PortalId.ToString() ;
object resultportal = SqlHelper.ExecuteScalar(this.ConnectionString, CommandType.Text, sqlCmd);
string homedirectory = ((string)resultportal).Replace('/', '\');
string imgFile = Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, homedirectory);
imgFile = Path.Combine(imgFile, ((string) result).Replace('/', '\'));
And now it works fine .
I hope that helps
The text was updated successfully, but these errors were encountered: