0
I’m using Classic ASP and Javascript to upload and crop the images to the site. I use a script that converts the images to Base64 sends by post and is processed on the server.
I followed step by step through here: Saving Base64 Image with ADODB.Stream
Prior: http://codepen.io/bigaton/pen/NRBKaa
It turns out that when resized my image to a certain size error occurs while saving:
msxml3.dll error '80004005' error analyzing 'bla bla img Base64' as bin.Base64 data type.
save2.Asp
base64String = Trim(Request.Form("cropped2"))
response.write base64String
Set tmpDoc = Server.CreateObject("Msxml2.DOMDocument")
Set nodeB64 = tmpDoc.CreateElement("b64")
nodeB64.DataType = "bin.base64"
nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1)
set bStream = server.CreateObject("ADODB.stream")
bStream.type = 1
call bStream.Open()
call bStream.Write(nodeB64.NodeTypedValue)
caminho=Server.MapPath("/teste/imagem.png")
call bStream.SaveToFile(caminho, 2)
call bStream.close()
set bStream = nothing
Images up to 550x400 save normally, 550x450 error occurs and above these values also.