Error rendering image from raw data when deploying to shinyapps.io

Hello!

Hopefully I can find some help here. I am building a web portal for users to access and select an image. based on there selection a BLOB is pulled from a SQL Server and the raw data is extracted to render an image.
I am using the magick library to read the image. Everything works locally; however, I can not figure out why it will not work when deploying to the shiny server.

R script:

image_selected <- eventReactive(input$WO_IMAGES_rows_selected, {
      image1 <- WONUM_IMAGES()[input$WO_IMAGES_rows_selected,4]
      magick::image_read(unlist(image1))
      })
    
    image_selected2 <- eventReactive(input$WO_IMAGES_rows_selected, {image_ggplot(image_selected())})

    output$WO_IMAGE_RENDER <- renderPlot(image_selected2())

shinyapps.io logs:

2022-09-07T19:18:02.444642+00:00 shinyapps[6844790]:   277: magick_image_readbin
2022-09-07T19:18:02.444674+00:00 shinyapps[6844790]:   276: magick::image_read
2022-09-07T19:18:02.444714+00:00 shinyapps[6844790]:   275: eventReactiveValueFunc [/srv/connect/apps/TestApp/app.R#1409]
2022-09-07T19:18:02.444757+00:00 shinyapps[6844790]:   273: valueFunc
2022-09-07T19:18:02.444830+00:00 shinyapps[6844790]:   258: f
2022-09-07T19:18:02.444794+00:00 shinyapps[6844790]:   260: func
2022-09-07T19:18:02.444867+00:00 shinyapps[6844790]:   257: Reduce
2022-09-07T19:18:02.444903+00:00 shinyapps[6844790]:   248: do
2022-09-07T19:18:02.444940+00:00 shinyapps[6844790]:   247: hybrid_chain
2022-09-07T19:18:02.444976+00:00 shinyapps[6844790]:   246: <reactive:eventReactive(input$WO_IMAGES_rows_selected)>
2022-09-07T19:18:02.445012+00:00 shinyapps[6844790]:   245: .func
2022-09-07T19:18:02.445155+00:00 shinyapps[6844790]:   234: ctx$run
2022-09-07T19:18:02.445198+00:00 shinyapps[6844790]:   233: self$.updateValue
2022-09-07T19:18:02.445241+00:00 shinyapps[6844790]:   231: image_selected
2022-09-07T19:18:02.445046+00:00 shinyapps[6844790]:   242: contextFunc
2022-09-07T19:18:02.445353+00:00 shinyapps[6844790]:   212: func
2022-09-07T19:18:02.445108+00:00 shinyapps[6844790]:   241: env$runWith
2022-09-07T19:18:02.445390+00:00 shinyapps[6844790]:   210: f
2022-09-07T19:18:02.445461+00:00 shinyapps[6844790]:   200: do
2022-09-07T19:18:02.445426+00:00 shinyapps[6844790]:   209: Reduce
2022-09-07T19:18:02.445629+00:00 shinyapps[6844790]:   194: contextFunc
2022-09-07T19:18:02.445667+00:00 shinyapps[6844790]:   193: env$runWith
2022-09-07T19:18:02.445279+00:00 shinyapps[6844790]:   227: eventReactiveValueFunc [/srv/connect/apps/TestApp/app.R#1412]
2022-09-07T19:18:02.445316+00:00 shinyapps[6844790]:   225: valueFunc
2022-09-07T19:18:02.445498+00:00 shinyapps[6844790]:   199: hybrid_chain
2022-09-07T19:18:02.445535+00:00 shinyapps[6844790]:   198: <reactive:eventReactive(input$WO_IMAGES_rows_selected)>
2022-09-07T19:18:02.446290+00:00 shinyapps[6844790]:     5: eval
2022-09-07T19:18:02.445782+00:00 shinyapps[6844790]:   183: image_selected2
2022-09-07T19:18:02.445863+00:00 shinyapps[6844790]:   180: func
2022-09-07T19:18:02.445900+00:00 shinyapps[6844790]:   140: drawPlot
2022-09-07T19:18:02.445821+00:00 shinyapps[6844790]:   182: renderPlot
2022-09-07T19:18:02.446082+00:00 shinyapps[6844790]:    15: <Anonymous>
2022-09-07T19:18:02.446212+00:00 shinyapps[6844790]:     7: connect$retryingStartServer
2022-09-07T19:18:02.445578+00:00 shinyapps[6844790]:   197: .func
2022-09-07T19:18:02.446408+00:00 shinyapps[6844790]:     3: eval
2022-09-07T19:18:02.445708+00:00 shinyapps[6844790]:   186: ctx$run
2022-09-07T19:18:02.445744+00:00 shinyapps[6844790]:   185: self$.updateValue
2022-09-07T19:18:02.446336+00:00 shinyapps[6844790]:     4: eval
2022-09-07T19:18:02.446446+00:00 shinyapps[6844790]:     2: eval.parent
2022-09-07T19:18:02.446484+00:00 shinyapps[6844790]:     1: local
2022-09-07T19:18:02.445981+00:00 shinyapps[6844790]:   110: drawReactive
2022-09-07T19:18:02.446058+00:00 shinyapps[6844790]:    96: output$WO_IMAGE_RENDER
2022-09-07T19:18:02.446176+00:00 shinyapps[6844790]:     8: retry
2022-09-07T19:18:02.445945+00:00 shinyapps[6844790]:   126: <reactive:plotObj>
2022-09-07T19:18:02.446020+00:00 shinyapps[6844790]:    97: renderFunc
2022-09-07T19:18:02.446139+00:00 shinyapps[6844790]:    13: fn
2022-09-07T19:18:02.446253+00:00 shinyapps[6844790]:     6: eval

any help is appreciated!

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.