Skip to content

Instantly share code, notes, and snippets.

@TatuLund
TatuLund / PasteImage.java
Created February 9, 2023 07:06
Example of how to paste an image from clipboard to view using JavaScript in Vaadin
package org.vaadin.tatu;
import com.vaadin.flow.component.ClientCallable;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.component.html.Span;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
@Route("paste")
public class PasteImage extends VerticalLayout {