{"record":{"id":"777e2cf69cddfeef","repo":"tursodatabase/turso","slug":"an-attempt-was-made-to-seek-before-the-beginning-o","errorCode":null,"errorMessage":"An attempt was made to seek before the beginning of the stream.","messagePattern":"An attempt was made to seek before the beginning of the stream\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs","lineNumber":80,"sourceCode":"\n    public override int Read(byte[] buffer, int offset, int count)\n    {\n        ValidateBuffer(buffer, offset, count);\n        return GetStream().Read(buffer, offset, count);\n    }\n\n    public override long Seek(long offset, SeekOrigin origin)\n    {\n        var stream = GetStream();\n        var position = origin switch\n        {\n            SeekOrigin.Begin => offset,\n            SeekOrigin.Current => stream.Position + offset,\n            SeekOrigin.End => stream.Length + offset,\n            _ => throw new ArgumentException(Properties.Resources.InvalidEnumValue(typeof(SeekOrigin), origin), nameof(origin))\n        };\n        if (position < 0)\n            throw new IOException(Properties.Resources.SeekBeforeBegin);\n\n        stream.Position = position;\n        return position;\n    }\n\n    public override void SetLength(long value)\n    {\n        throw new NotSupportedException(Properties.Resources.ResizeNotSupported);\n    }\n\n    public override void Write(byte[] buffer, int offset, int count)\n    {\n        if (_readOnly)\n            throw new NotSupportedException(Properties.Resources.WriteNotSupported);\n\n        ValidateBuffer(buffer, offset, count);\n        if (count == 0)\n            return;","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/tursodatabase/turso/blob/bad083fafbefdeae9a42ec19bdaaad8918dcf411/bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs#L62-L98","documentation":"Error \"An attempt was made to seek before the beginning of the stream.\" thrown in tursodatabase/turso.","triggerScenarios":"Thrown at bindings/dotnet/src/Turso.Data.Sqlite/SqliteBlob.cs:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bad083fafbefdeae9a42ec19bdaaad8918dcf411","analyzedAt":"2026-08-16T23:12:11.798Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}