I'm using Classic ASP and Javascript to load and crop the images to the site. I use a script that converts the images to base64 sent by the post and is rendered on the server.
I followed the walkthrough here: Saving Base64 Image with ADODB .Stream
Preview: link
It turns out that when scaling my image to a certain size error occurs when saving:
msxml3.dll error '80004005' Error parsing 'bla bla img base64' like 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 as well.