File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ class SnapProcessor extends BaseProcessor {
566566 // Note: PageSetImageId references embedded images in PageSetData table
567567 // LibrarySymbolId references external symbol libraries (SymbolStix, etc.)
568568 let buttonImage : string | undefined ;
569- const buttonParameters : { image_id ?: string ; imageData ?: Buffer } = { } ;
569+ const buttonParameters : { image_id ?: string } = { } ;
570570 if ( btnRow . PageSetImageId && btnRow . PageSetImageId > 0 ) {
571571 try {
572572 const imageData = db
@@ -584,7 +584,10 @@ class SnapProcessor extends BaseProcessor {
584584 const base64 = imageData . Data . toString ( 'base64' ) ;
585585 buttonImage = `data:${ mimeType } ;base64,${ base64 } ` ;
586586 buttonParameters . image_id = imageData . Identifier ;
587- buttonParameters . imageData = imageData . Data ;
587+ // NOTE: We don't include imageData in parameters because Buffers don't serialize
588+ // correctly across server/client boundaries (Next.js SSR, JSON, etc.)
589+ // The data URL in buttonImage is sufficient for display purposes.
590+ // For conversions, images can be reloaded from the source file/database.
588591 }
589592 } catch ( e ) {
590593 console . warn (
You can’t perform that action at this time.
0 commit comments