-1
我已经写了这个代码在本地保存解码的images
,它工作正常。其实我需要将这个已解码的image
保存在服务器中,但我现在不怎么做到这一点?我看到很多例子在服务器上保存文件,但在这里我有一个base64 decoded image
...我可以得到任何提示吗?在此先感谢如何在服务器上使用vb.net保存解码图像
Dim bt64 As Byte() = System.Convert.FromBase64String(srcFile)
Dim destFile As String = " C:\Users\Administrator\Desktop\MASavedImages"
Dim imgName As String
imgName = String.Format("{0:dd-MM-yyyy hh-mm-ss tt-fff}", DateTime.Now)
imgName += ".jpg"
If (Not System.IO.Directory.Exists(destFile)) Then
System.IO.Directory.CreateDirectory(destFile)
File.WriteAllBytes(destFile + "\" + imgName, decodedimg)
Else
File.WriteAllBytes(destFile + "\" + imgName, decodedimg)
End If
_什么样的服务器?? _当你问一个问题时,你必须是特定的!有许多不同种类的服务器:Web服务器(用于网站),FTP服务器,作为服务器的普通计算机,专用服务器,只能通过自己的接口访问的服务器(如DropBox),Samba服务器,等等向前_。 –