Comments (7)
另外js通过base30转base64可有示例代码?在demo中没有找到。应该怎么调用?能否写个示例
from jsignature.
Sorry, theres no sample code to convert between base30 to base64. You might need to look at another library to this. It sounds to me like you are trying to insert a base30 into a canvas that is 1/10 the size of the canvas 1. Have you thought of exporting to svg then instead of loading the signature into canvas 2, just display the svg?
from jsignature.
我也希望导出的是svg,但是后台返回的数据是一串base30的字符,除了用canvas显示,没有其他的办法了。img标签也无法显示base30的图案,而这个base30是在300x600的canvas上绘制生成的,我需要展示的时候缩小到30x60,并且旋转90deg成60*30显示
from jsignature.
Did you try using
jSignature("getData", "svgbase64")
from jsignature.
我无法使用jSignature("getData", "svgbase64")
后端sql保存的是一串base30的字符串,
前端请求后端是得到一串base30字符串,需要显示出该base30字符串的图案。
from jsignature.
If you cannot save svgbase64 in your sql db when exporting the signature then you will need to either convert the base30 to another format with a backend process or look at some other libraries to convert.
from jsignature.
后端不同意将base30转换为另一种格式,后端明确要求只保存base30字符串在sql中,并且要求前端展示base30字符串对应的图片。
from jsignature.
Related Issues (20)
- Save whole signature field HOT 8
- Invalid signature data being generated from webapp on mobile
- Stopped working after Firefox upgraded to Version 70 (64-bit) HOT 1
- Intermittent Signature Field Blocking Issue
- jSignature不是函数 HOT 1
- VB.NET Base30 Error Found
- Attempt to draw with touchscreen scrolls page on chromebooks HOT 1
- getData not working with base30 or svgbase64 HOT 1
- Creating map file for minified js files might be a good idea HOT 2
- When jSignature signature WeChat is applied to refresh the web page, the canvas cannot be written
- Ctrl+Z plugin HOT 1
- Provide build details? HOT 1
- JSignature not working with touch Windows 10, Chrome, Firefox, Edge, works with Safari 2012 version HOT 19
- setData not working first time called HOT 2
- jSignature - clipping on touch devices iOS and Android
- Check if jSignature is initialized
- base30的显示问题 HOT 4
- base30 getData is empty
- Converting Base64 to Base30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsignature.