Hi,
-- I'm trying to change type of the control from anyURI to base64Binary and it almost works. Almost because below there is no correct base64 format. I the result FR reports error. Is it any way to fix it somehow? Tested also in 2018.2.4 PE //Jarek You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcWn%2BqozcRLy_Tb_jEbFkircZ0B7ZGUNeWL91NTjBm9gZQ%40mail.gmail.com. |
Administrator
|
Hi Jarek,
What do you mean by "change type of the control from anyURI to base64Binary"? What are you doing exactly? And why, i.e. what are you trying to achieve? ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1592888587545-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex, I changed type in the bind from type="xf:anyURI" to "xs:base64Binary" as in the example url. My goal is to have a signature encoded in base64 in the model instead of using URI to the saved content. Exactly the same as we have in the attachments. //Jarek wt., 23 cze 2020 o 07:03 Alessandro Vernet <[hidden email]> napisał(a): Hi Jarek, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcXAWrVDoQD7Cs_1kZX2PPOGq6x02icxVmu-8TAKyyMt2Q%40mail.gmail.com. |
Administrator
|
Hi Jarek,
The data is stored with the data URL (see link below). As you noted, that URL has base64 prefixed by `data:image/png;base64,`, but isn't `xs:base64Binary`. And this is why in the form definition, Form Builder puts `<xf:bind type="xf:anyURI"/>`. This is correct, as a data URL is an `xf:anyURI`. Now you're saying that you would prefer the signature to be stored in straight base64, so the form definition could have the type `xs:base64Binary`? If so, is it maybe because you have a use case where it is more convenient to have straight base64 than a data URL that contains base64? https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1593662848615-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Jarek,
Have you found a way to do what you were aiming for with regard to the signature component and how the signature itself is stored in the form data? ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1594227372680-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex, yes, all is clear. I must have had some sort of a blackout. I thought that to have base64 I need to change the type from xf:anyURI to xs:base64Binary. //Jarek śr., 8 lip 2020 o 18:56 Alessandro Vernet <[hidden email]> napisał(a): Hi Jarek, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcVCvkoW-Q%3DQRNQVs3ktv3kbkRqjogcYSWCHOFPz2knrkQ%40mail.gmail.com. |
Administrator
|
Hi Jarek,
Got it, perfect then! (And I have to admit that I had at first been confused my self, and thought that using `xf:anyURI` for the signature was a bug… but it isn't.) -Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1594270733536-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |