> For the complete documentation index, see [llms.txt](https://nosicode.gitbook.io/faq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nosicode.gitbook.io/faq/intermediate/how-to-show-a-file-in-a-table.md).

# How to show a file in a table

\#file #foto #table

Write the code below

{% code title="In the reserved area on the controller.java" %}

```java
model.loadTable_1(Core.query("conn_gestao_veiculo","SELECT  foto_fk as foto_1,name as nome_1,email as email_1 ").from("persons"));
model.getTable_1().stream().forEach(t->{
    t.setFoto_1(Core.getLinkFile(t.getFoto_1()));
});
```

{% endcode %}

![The table will look like this.](https://4269523424-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBVX2OMafn-xpQ5esuM%2F-LEuKIRPai0xvFqo8VCs%2F-LEuKqPhb3WSZp6SKBs2%2Fimage.png?alt=media\&token=51b9d961-7915-4e50-acf8-da2840217058)
