我的问题很简单,但我没有找到解决办法。
但在我的项目中,我收集人们的签名。我不想要文件(不够安全),然后我将它存储在数据库中(我使用签名板和服务器端)
Dim dataUri = MesDonnees.Img
Dim encodedImage = dataUri.Split(",")(1)
Bdd.field = Convert.FromBase64String(encodedImage)
...
但我不知道如何把它放在我的文件的页脚。。。
我读了一些作品,但总是从细节部分,我只有字符串类型,数字,布尔。。。不是字节之类的
谢谢你的帮助
我有个主意。尝试将此图像链接到ashx文件
Dim IdAtt As Long = CLng(HelperParams.GetParamURL("IdAttach"))
Dim Typ As Integer = CInt(HelperParams.GetParamURL("Typ"))
Dim LesDatas As New MyEntities
Dim Att As Attachement = GetMonAttachement(IdAtt, LesDatas)
If Att IsNot Nothing Then
context.Response.ContentType = "image/png"
If Typ = 1 Then
context.Response.BinaryWrite(Att.SignCollaborateur)
Else
If Att.SignClient Is Nothing Then
Dim Vid() As Byte = New Byte(0) {}
context.Response.BinaryWrite(Vid)
Else
context.Response.BinaryWrite(Att.SignClient)
End If
End If
context.Response.Flush()
context.Response.End()
End If
Catch ex As Exception
End Try
http://localhost:63888/Signature.ashx?IdAttach=4&Typ=2
我有我的照片
但我尝试创建SignClient参数et assign it location(x-2)
cryRpt.SetParameterValue("SignClient", "~/Signature.ashx?IdAttach=4&Typ=2")
cryRpt.SetParameterValue("SignClient", HttpContext.Current.Server.MapPath("/Signature.ashx") & "?IdAttach=4&Typ=2")
cryRpt.SetParameterValue("SignClient", "http://localhost:63888/Signature.ashx?IdAttach=4&Typ=2")
这三种方法不起作用。
http://localhost:63888/Signature.ashx?IdAttach=4&典型值=2
我给阿什克斯放了一个断点,再也够不着了。然后我打开网络标签开发工具和我的ashx从来没有调用。
我有一个头像(logo),我用一个路径文件(e:/../logo.png)改变了图片的位置,很好。
有人有主意吗?