-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot send inline image #318
Comments
Why not just use a img tag with a data url. |
Yes I have set the HtmlBody with an img tag and a data url. As an example, the Comment Htmlbody is set as But it does not work. Or should I upload the embedded image as an attachment firstly and then, link the img tag with the returned url of the upload image? |
Hi Elizabeth, Also, I have tried to modify your api by setting Expect100Continue to false, and ConnectionClose to true. As I am still stuck by the inline image, do you have any idea? You see, the AUTHOR_ID is important to match to its COMMENT. Thank you. |
Hi Elizabeth, I have solved it. Thanks. |
How did you solve the issue? |
Hi Elizabeth, I have converted the inline image from html base64 to normal binary data, uploaded it and then rewrite the html with the uploaded file's token address. |
By creating the Ticket comment htmlbody with the image content, the image cannot be display on Zendesk.
Image from a RadEditor.Content is like
![]()
var ticket = new Ticket { Comment = new Comment { HtmlBody = HttpUtility.HtmlDecode(RadEditor.Content) } }
The text was updated successfully, but these errors were encountered: