Fax: Node.js ringcentral sdk. html document altered by fax. Any ideas?

  • 1
  • Problem
  • Updated 11 months ago
Faxing HTML documents.  Nothing complex, yet the documents are oddly malformed when received.
Photo of Neil Bouvier

Neil Bouvier

  • 530 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of John Wang

John Wang, Official Rep

  • 5,436 Points 5k badge 2x thumb
It's hard to debug this without some data on what you're sending.

Please provide a sample malformed fax HTML you are sending.
(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,374 Points 5k badge 2x thumb
If the HTML file has a companion CSS file, please inline it. Paste the CSS content into a <style> tag in HTML.

Please provide a sample file if it still doesn't work.
Photo of Neil Bouvier

Neil Bouvier

  • 530 Points 500 badge 2x thumb
No CSS.  I've been emailing this HTML document for quite a while.  Ringcentral appears to take issue with nested tables.  The pattern is evident and should only take a few hours to recode and test.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,374 Points 5k badge 2x thumb
I've been emailing this HTML document for quite a while
Are you saying that it used to work but stopped working recently?

Ringcentral appears to take issue with nested tables.  The pattern is evident and should only take a few hours to recode and test.
So this issue could be reproduced with an HTML file with nested table?
Photo of Neil Bouvier

Neil Bouvier

  • 530 Points 500 badge 2x thumb
I'm working on it now.  It works perfectly when eMailed, but the nested tables fail on fax.  I have a solution.
Photo of Neil Bouvier

Neil Bouvier

  • 530 Points 500 badge 2x thumb
The issue isn't the HTML, it's the base64 images.  The image emails, but does not fax.
Photo of John Wang

John Wang, Official Rep

  • 5,236 Points 5k badge 2x thumb
Can you provide an example that does not render as desired?
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,374 Points 5k badge 2x thumb
We are unable to provide you with further instructions because we don't know the detail of the issue.

Please provide us with the sample HTML and steps to reproduce the issue.
Photo of Neil Bouvier

Neil Bouvier

  • 530 Points 500 badge 2x thumb
Tyler, I have a base64 string I need to include in a fax.  Is this doable?
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,996 Points 5k badge 2x thumb
Not sure what you want to do. But a base64 string is still a string. You can include that in a fax as plain text (just like you send a plain text "Hello world"). The receiver of the fax has to read the base64 string you sent which might not make sense to him/her.
Photo of John Wang

John Wang, Official Rep

  • 5,236 Points 5k badge 2x thumb
Neil, Do you mean in an image tag source or CSS like the examples below? If one approach works via email but not API for you please let us know which one.

Image tag source example:

<img src='data:image/png;base64,iVBOR...' />

CSS background example:

background-image: url(data:image/png;base64,iVBOR..)
(Edited)