Skip to main content

2 posts tagged with "blob"

View All Tags

Attach Files to Business Records with Blob References

· 3 min read
TeaQL Team
Core Team

A support agent attaches a PDF to a case. The case may stay open for months, while a download link should last only minutes. If the case stores that link, the attachment appears broken when it expires. If the case stores a raw storage key and treats it as permission, anyone who obtains the key may get more access than intended.

TeaQL's optional Blob Reference module gives the case a stable BlobRef. The file lives in object storage; the business record keeps only its reference. When someone is allowed to view the case, TeaQL prepares a complete temporary URL for that reader. The next view can receive a fresh URL without changing the case or uploading the file again.

Blob Objects and Optimistic Locking Improvements

· One min read
TeaQL Team
Core Team

Blob object type and optimistic locking mechanism improvements.

BlobObject Type​

Store large binary data (images, documents, files):

@Entity
public class Document {
private String name;
private BlobObject content; // stores file data
}
+ BlobObject: binary data storage type
+ Integrated with SQLRepository for persistence
+ Streaming support for large files

Actual Change Detection​

Version number is only incremented when properties have actually changed, avoiding meaningless version bumps.

Multi-Entity Version Conflict Fix​

When updating multiple entities in the same transaction, each entity's version is tracked independently.