BrightSide Workbench Full Report + Source Code
org.turro.attach.db.LoadContent Class Reference

Static Public Member Functions

static byte[] getContent (Attachment attachment)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file LoadContent.java.

Member Function Documentation

◆ getContent()

static byte [] org.turro.attach.db.LoadContent.getContent ( Attachment  attachment)
static

Definition at line 29 of file LoadContent.java.

29  {
30  byte[] bais = null;
31 // Dao dao = new AttachPU();
32 // dao.startTrans();
33  try(DaoTransaction transaction = new DaoTransaction(new AttachPU())) {
34  attachment = transaction.find(Attachment.class, attachment.getId());
35  bais = attachment.getAttachContent().getFileContent();
36 // } finally {
37 // dao.endTrans();
38  }
39  return bais;
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: