Answer the question
In order to leave comments, you need to log in
BLToolkit and Oracle BLOB?
I can't figure out how to insert a string into a BLOB type field using BLToolkit. There was no such example on the official website, and on the Internet, too. When inserting, an error occurs:
ORA-01461: допускается привязка LONG значения только для занесения в столбец LONG
CREATE TABLE "MF_WORKSPACE_THUMBNAILS" (
"WORKSPACE_ID" NUMBER NOT NULL,
"THUMBNAIL" BLOB NOT NULL)
[TableName("MF_WORKSPACE_THUMBNAILS")]
public class WorkspaceThumbnails
{
[MapField("WORKSPACE_ID")]
public int WorkspaceID;
[MapField("THUMBNAIL")]
public object Thumbnail;
}
database.Into(database.WorkspaceThumbnails)
.Value(t => t.WorkspaceID, id)
.Value(t => t.Thumbnail, s)
.Insert();
Answer the question
In order to leave comments, you need to log in
Have you ever encountered the fact that bltoolkit will pass the Thumbnail value as a parameter with OracleDbType = Raw set, and, accordingly, a 32kb limit on the array size?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question