It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Store big string in Active Object data


We are trying to use Active Object to store the data needed by our plugin.
When we try to store an base64 encode of an image we get the following exception:

org.h2.jdbc.JdbcSQLException: Value too long for column "ATTRIBUTES VARCHAR(255)"


Currently, Atlassian's Active Object framework does not support binary large objects (BLOBs). 

How can we overcome this limitation?

Using the local file system is not a valid solution for Data Center plugin.


1 answer

1 accepted

7 votes
Answer accepted
Petar Petrov Sep 16, 2016

Mark the field with:


From the javadoc of StringLength:

an unlimited-length string is stored as the corresponding "long string" database type (TEXT, CLOB, etc. depending on the database provider)

Claudio Kirchhoff Feb 14, 2017

Thanks! For future readers: the annotation goes on the setter to be precise.

Tormod Haugene Jun 01, 2018 • edited

Works as advertised. As a side note, adding this to a String setter used in postgres DB does not seem to alter the existing data, only open up for more. Thumbs up. :-)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

100 views 3 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you