![iframe image html code iframe image html code](https://a.ilovecoding.org/img/embeds-video-audio-and-iframe-elements-sc1.png)
You can use Microsoft Graph to snapshot entire webpages and insert them into new pages. Content-Type: multipart/form-data boundary=MyAppPartBoundaryĬontent-Disposition: form-data name="MyAppPictureId" Just send the binary data, don't use Base64 or otherwise encode it. In the input HTML of your request's Presentation part, include, where part-name is the unique identifier for the data part in your multipart request that contains the binary image data. This page displays an image from the web. Content-Type: multipart/form-data boundary=MyAppPartBoundaryĬontent-Disposition: form-data name="Presentation" In the input HTML of your request, include and specify the URL of a publicly accessible image for the src attribute. See limitations that apply when creating pages that contain media. The API also returns the image type of the optimized image in data-src-type. The API detects the original input image type, and returns it as the data-fullres-src-type attribute in the output HTML. Adds a file attachment to the OneNote page and displays a file icon. Use object with data="name:file-block-name" data-attachment="file-name.file-ext" type="media-type" and send an image file in the data part of a multipart request. Renders each PDF page as a separate image on the OneNote page. Use and send the PDF file in the data part of a multipart request. Renders the HTML as an image on the OneNote page. Use img with data-render-src="name:html-block-name" and send HTML in the data part of a multipart request. Renders a snapshot of the whole webpage on the OneNote page. Use img with data-render-src=" and specify the URL of a webpage. Use img with src="name:image-block-name" and send the image file in a data part of a multipart request. Use img with src=" and specify the URL of a publicly accessible image. Microsoft Graph supports the following methods of adding images, logos, and photos to OneNote pages. Images can be added by URL reference or by sending raw data.
![iframe image html code iframe image html code](https://blog.logrocket.com/wp-content/uploads/2020/01/iframes-guide-nocdn.png)
Use object to add a file attachment to the page.Use iframe to embed a video on the page.Use img to render an image on the page.You can use img, object, and iframe elements to add images, videos, and files to a OneNote page when you're creating or updating the page. Applies to Consumer notebooks on OneDrive | Enterprise notebooks on Microsoft 365