Message Boards Message Boards

Display JPG in "MathPane" widget - gives "Java heap size" error

Posted 10 years ago

I am trying to show JPG file in a widget "MathPane". After execution of the code below I get "Java heap size" error even though JPG file is very small. I assume I am doing it incorrectly. I will appreciate any help. Import operation is correct, as Print function is working and I can see JPG file in the mathematica console.

displayJPEG[] := Module[{photo}, 
   photo := 
    Import["d:/_change requests/_Mathematica \
   SetPropertyValue[{"plot", "mathCommand"}, photo];
POSTED BY: Jack Strong
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract