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
I'm using latest version 3.4.4 to convert base30 string to PNG and all working fine in development environment.
But when deployed to dev server, it throw a NullReferenceException.
Svg.SvgDocument Draw() function returns NULL Bitmap.
Example data
I'm converting base30 to SVG using custom code and than using Svg Document as follow
SvgDocument mySVG;
MemoryStream newStream = new MemoryStream(Encoding.Default.GetBytes(docSVG));
mySVG = SvgDocument.Open<Svg.SvgDocument>(newStream);
// then convert it to PNG
MemoryStream tempStream = new MemoryStream();
mySVG.Draw().Save(tempStream, System.Drawing.Imaging.ImageFormat.Png);
System.Drawing.Image img = System.Drawing.Image.FromStream(tempStream);
return img;
Used Versions
Please note this working fine in development environment but not on web server.
Older version 2.4.3.29446 was working fine on web server.
Thanks for help.
The text was updated successfully, but these errors were encountered:
I'm using latest version 3.4.4 to convert base30 string to PNG and all working fine in development environment.
But when deployed to dev server, it throw a NullReferenceException.
Svg.SvgDocument Draw() function returns NULL Bitmap.
Example data
I'm converting base30 to SVG using custom code and than using Svg Document as follow
SvgDocument mySVG;
MemoryStream newStream = new MemoryStream(Encoding.Default.GetBytes(docSVG));
mySVG = SvgDocument.Open<Svg.SvgDocument>(newStream);
// then convert it to PNG
MemoryStream tempStream = new MemoryStream();
mySVG.Draw().Save(tempStream, System.Drawing.Imaging.ImageFormat.Png);
System.Drawing.Image img = System.Drawing.Image.FromStream(tempStream);
return img;
Used Versions
Please note this working fine in development environment but not on web server.
Older version 2.4.3.29446 was working fine on web server.
Thanks for help.
The text was updated successfully, but these errors were encountered: