<system.web> <httpRuntime executionTimeout="100000" maxRequestLength="214748364" /> </system.web> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="214748364" /> </requestFiltering> </security> </system.webServer>
int fileLength = uploadedFile.ContentLength; byte buffer = new byte[fileLength]; uploadedFile.InputStream.Read(buffer, 0, fileLength); string base64String = Convert.ToBase64String(buffer, 0, buffer.Length); Image im = new Image(); im.ImageUrl = "data:image/png;base64," + base64String;
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.