Update 20260529
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http.Results;
|
||||
@@ -203,10 +204,25 @@ namespace WebApp
|
||||
con.Open();
|
||||
string doc = cmd.ExecuteScalar()?.ToString();
|
||||
con.Close();
|
||||
System.IO.File.WriteAllBytes(@"d:\apps\ondoc\admintemp\vp.pdf", Convert.FromBase64String(doc));
|
||||
return doc;
|
||||
}
|
||||
}
|
||||
[WebMethod]
|
||||
public static object SaveTempFile(string base64)
|
||||
{
|
||||
var ms = new MemoryStream(Convert.FromBase64String(base64));
|
||||
using (System.IO.FileStream file = new System.IO.FileStream(@"d:\apps\ondoc\admintemp\vp.pdf", System.IO.FileMode.Create, System.IO.FileAccess.Write))
|
||||
{
|
||||
byte[] bytes = new byte[ms.Length];
|
||||
ms.Read(bytes, 0, (int)ms.Length);
|
||||
file.Write(bytes, 0, bytes.Length);
|
||||
ms.Close();
|
||||
}
|
||||
return "OK";
|
||||
|
||||
}
|
||||
[WebMethod]
|
||||
public static object GetJson(string table, string id)
|
||||
{
|
||||
var config = TableConfigProvider.LoadConfig();
|
||||
|
||||
Reference in New Issue
Block a user