Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
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.
Community moderators have prevented the ability to post new answers.
Mark the field with:
@StringLength(StringLength.UNLIMITED)
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)
Thanks! For future readers: the annotation goes on the setter to be precise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Atlassian Community! I thought it would be fun to do something different for my teams' last retrospective of 2019 so I'm planning to do a "year in review" with info-graphics. Wha...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.