2

I am using Reactive Spring Boot 2.5.4 with MySQL data source. I am not sure how to read/write blob with Spring data r2dbc.

Table - user_note

Columns - id, name, description

Here, description column is a blob data type.

My Domain class:

class UserNote {

  private final Integer id;   private final String name;   private final String description;

     // Constructor & Getter goes here }

Repository class,

public class UserNoteRepository extends ReactiveCrudRepository<UserNote, Integer> {
}

In my handler class, I am getting user input and creating domain and reading data back from the repository. Not sure how to handle the Blob data type with Spring data r2dbc.

halfer
  • 19,824
  • 17
  • 99
  • 186
user1578872
  • 7,808
  • 29
  • 108
  • 206

0 Answers0