question

neil-bouvier avatar image
neil-bouvier asked ·

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

Faxing HTML documents.  Nothing complex, yet the documents are oddly malformed when received.
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image
John Wang answered ·
It's hard to debug this without some data on what you're sending.

Please provide a sample malformed fax HTML you are sending.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered ·
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.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier avatar image
neil-bouvier answered ·
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.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered ·
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?
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier avatar image
neil-bouvier answered ·
I'm working on it now.  It works perfectly when eMailed, but the nested tables fail on fax.  I have a solution.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier avatar image
neil-bouvier answered ·
The issue isn't the HTML, it's the base64 images.  The image emails, but does not fax.
1 comment Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Can you provide an example that does not render as desired?
0 Likes 0 · ·
Tyler Liu avatar image
Tyler Liu answered ·
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.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

neil-bouvier avatar image
neil-bouvier answered ·
Tyler, I have a base64 string I need to include in a fax.  Is this doable?
2 comments Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

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.
0 Likes 0 · ·
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..)
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.