Loading ImageView with in-memory bitmap

I am new to JavaFX, and I have search all over the internet but I cannot find the answer.
My Java code is creating an in-memory bitmap image and I would like to display it in JavaFX ImageView class (without saving it to a file). ImageView can load an image from a URL, but how do I do that from a member variable in a Java class?
As an alternative, I tried to subclass SwingComponent (instead of using ImageView) and have the java.awt.Image member variable in this class. I can bind to this member variable, but now I am stuck, since I cannot get JavaFX to invoke my paintComponent repaint routine. If I could then I can use graphics drawImage in this routine.
Also, Timeline, while it is cool, does not apply to my solution since the image is generated at various times based on system events.
Which is the best approach?
Any help would be appreciated.
- Tosh

Thank you for your answer. I also found it difficult to convert the int[] of the image to BufferedImage. I did manage to cobble together some code that does this, although, I think it is inefficient. Anyway, I am glad that I have some working code now. As an aid to others I am placing my routine to convert int array to BufferedImage. If anyone has a more efficient way, please add to this trail.
BufferedImage bimg = null;
public BufferedImage intArraytoImage(int[] buf, int w, int h) {
int[] BM = new int[]{0xff0000, 0xff00, 0xff}; // I don't have alpha channel... {0xff0000, 0xff00, 0xff, 0xff000000};
SinglePixelPackedSampleModel sm = new SinglePixelPackedSampleModel(DataBuffer.TYPE_INT, w, h, BM);
DataBufferInt db = new DataBufferInt(buf, w * h, 0);
Point p = new Point(0, 0);
WritableRaster raster = null;
try {
raster = Raster.createWritableRaster(sm, db, p);
ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
int[] nBits = {24};
ColorModel cm = new ComponentColorModel(cs, nBits, false, true, Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
bimg = new BufferedImage(w, h, 1); // 1 = TYPE_INT_RGB
bimg.setData(raster);
} catch (Exception e) {
System.out.println("exception in creating BufferedImage");
     e.printStackTrace();
return bimg;
- Tosh
fixed typo

Similar Messages

  • 3rd party distributed SW load balancing with In-Memory Replication

              Hi,
              Could someone please comment on the feasibility of the following setup?
              I've started testing replication with a software load balancing product. This
              product lets all nodes receive all packets and uses a kernel-level filter
              to let only one node at the time receive it. Since there's minimum 1 heartbeat
              between the nodes, there are several NICs in each node.
              At the moment it seems like it doesn't work: - I use the SessionServlet - with
              a 2-node cluster I first have the 2 nodes up and I access it with a single client:
              .the LB is configured to be sticky wrt. source IP address, so the same node gets
              all the traffic - when I stop the node receiving the traffic the other node takes
              over (I changed the colours of SessionServlet) . however, the counter restarts
              at zero
              From what I read of the in-memory replication documentation I thought that it
              might work also with a distributed software load balancing cluster. Any comments
              on the feasability of this?
              Is there a way to debug replication (in WLS6SP1)? I don't see any replication
              messages in the logs, so I'm not even sure that it works at all. - I do get a
              message about "Clustering Services startting" when I start the examples server
              on each node - is there anything tto look for in the console to make sure that
              things are working? - the evaluation license for WLS6SP1 on NT seems to support
              In-Memory Replication and Cluster. However, I've also seen a Cluster-II somewhere:
              is that needed?
              Thanks for your attention!
              Regards, Frank Olsen
              

    We are considering Resonate as one of the software load balancer. We haven't certified
              them yet. I have no idea how long its going to take.
              As a base rule if the SWLB can do the load balancing and maintain stickyness that is fine
              with us as long as it doesn't modify the cookie or the URL if URL rewriting is enabled.
              Having said that if you run into problems we won't be able to support you since it is not
              certified.
              -- Prasad
              Frank Olsen wrote:
              > Prasad Peddada <[email protected]> wrote:
              > >Frank Olsen wrote:
              > >
              > >> Hi,
              > >>
              > > We don't support any 3rd party software load balancers.
              >
              > Does that mean that there are technical reasones why it won't work, or just that
              > you haven't tested it?
              >
              > > As >I said before I am thinking your configuration is >incorrect if n-memory
              > replication is not working. I would >strongly suggest you look at webapp deployment
              > descriptor and >then the config.xml file.
              >
              > OK.
              >
              > >Also doing sticky based on source ip address is not good. You >should do it based
              > on passive cookie persistence or active >cookie persistence (with cookie insert,
              > a new one).
              > >
              >
              > I agree that various source-based sticky options (IP, port; network) are not the
              > best solution. In our current implementation we can't do this because the SW load
              > balancer is based on filtering IP packets on the driver level.
              >
              > Currently I'm more interested in understanding whether it can our SW load balancer
              > can work with your replication at all?
              >
              > What makes me think that it could work is that in WLS6.0 a session failed over
              > to any cluster node can recover the replicated session.
              >
              > Can there be a problem with the cookies?
              > - are the P/S for replication put in the cookie by the node itself or by the proxy/HW
              > load balancer?
              >
              > >
              > >The options are -Dweblogic.debug.DebugReplication=true and
              > >-Dweblogic.debug.DebugReplicationDetails=true
              > >
              >
              > Great, thanks!
              >
              > Regards,
              > Frank Olsen
              

  • I'm having problems with my memory load

    I'm having problems with my memory load, because I have a few photos on my iPhone 5 (32GB) and has been detected that I am using 10GB of photos, and I only have 1,000 photos. Could someone help me?

    Hi Fehmi76,
    The article linked below details how to go about seeing what apps on your iPhone are using what amounts of space.
    See how much storage you've used on your iPhone, iPad, and iPod touch
    https://support.apple.com/en-us/HT201656
    Regards,
    Allen

  • Problem loading image into texture memory

    Hi there, I am currently porting our new casual PC game over to the iPad using the pfi, the game was written in Flash so the porting process isn't that hard thankfully, it's mainly just optimizing the graphics.
    So far things are going smoothly, I was initially worried about graphical performance, but since we put everything into the GPU that's no longer a concern- it runs super smooth at 60fps at 1024x768, we can have a hundred large bitmaps rotating and alphaing at once with no slowdown.
    However there is one weird problem which is really worrying me at this point- it seems that the speed at which images are loaded into video memory as textures is vastly different depending on what else is being run on the iPad, for example:
    * If I run my game with nothing else in memory, it will run fine at 60fps, and load up large images into texture memory very fast.
    * If I run another App, in this case a Virtual piano app for a while, then close that App via the Home button (so the piano app is still in memory but suspended due to the multitasking), then when I run my game, it will run ok initially, but when I try to load a large (1024x512) image into texture memory it pauses the whole game for several seconds.
    * To make matters worse, if I repeat the same test using the RAGE app from ID software (which is very graphically intense), my game actually slows down to 1 fps and runs extremely slowly as soon as I run it and the frame rate never returns to normal. If I then double-click the home button, shut down RAGE, then go back to my game, it will run fine.
    I have read that sometimes when you load images into texture memory it will have to reclaim that memory from other apps, but that doesnt exaplain why it slows down every time I want to load something, or why the game would slow right down to a crawl.
    So then it seems that having other Apps in memory is slowing down my game, or stopping it from working altogether. Obviously this is not ideal and would stop us from releasing, so is there any way I can stop this, has anyone come across the problem? Please help!
    PS. this problem also happens on an iPhone 4, as I have performed the same tests.

    Hi _mz84
    First thing I noticed, is that you did not close your
    <embed> tag
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent" />
    If that doesn't solve your troubles, try the following
    container.
    <object type="application/x-shockwave-flash" height="611"
    width="385" align="middle" data="gallery1.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="gallery1.swf" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#421628" />
    </object>
    hope this helps out.

  • Fast screen drawing from memory bitmap source

    Hello
    I have got pixels (frames) coming out from frame grabber that I wanted to display so that I could get higher framerates than using standard method (about 5 fps):
    i = createImage(new MemoryImageSource(width, height, pixels, 0, width));
    g.drawImage(i,0,0,width,height,null);
    Anyone knows a faster way to display memory bitmaps in Java?
    cheers
    Paul

    Paul,
    Here is hopefully a simple example of how to save some cpu time when drawing images. We will create a buffered image that is compatible with the screen and draw the original image on it.
    BufferedImage imageToDrawOn; //going to be created
    BufferedImage original; //allready loaded (use java.IO.read() )
    imageToDrawOn = gc.createCompatibleImage(original.getWidth(),original.getHeight(),Transparency.BITMASK);
    imageToDrawOn.getGraphics().drawImage(original,0,0, null);
    //code
    //example of how to display the image:
    g.drawImage(imageToDrawOn, 0, 0, this);
    I hope this helps!
    ~Matt

  • I want to ask something about firefox. why firefox use very much memory? can you develop to reduce memory comsume? this problem is very distrub in my PC with low memory.

    I want to ask something about firefox.
    why firefox use very much memory?
    can you develop to reduce memory comsume?
    this problem is very distrub in my PC with low memory.
    == This happened ==
    Every time Firefox opened

    How much memory is Firefox using right now?
    # Press '''CTRL+SHIFT+ESC''' to load the Task Manager window
    # Click the Processes tab at the top. (Click once near the top of the window if you don't see tab
    # Find firefox.exe, and see how many kilobytes of memory it's using.
    Showing around 80MB when Firefox first starts is normal. Right now, I have 75 tabs open and it's using 500MB - this varies a lot depending on what you have in the tabs.
    Other than high memory usage, what other problems are you experiencing? (Examples include slowness, high CPU usage, and failure to load certain sites)
    Many of these issues, including high memory usage, can be caused by misbehaving add-ons. To see if this is the case, try the steps at [[Troubleshooting extensions and themes]]. Outdated plugins are another cause of this issue - you can check for this at http://www.mozilla.com/plugincheck

  • My internal drive is NOT showing up in the event library in Final Cut X.  I am also getting a "The operation couldn't be completed. Cannot allocate memory" Any ideas? I am using an IMAC Core i7 with 8GB memory, OS version 10.6.8

    My internal boot drive is NOT showing up in the Event Library in Final Cut X. My external raid drive is showing up.
    I am also getting error message "The operation couldn’t be completed. Cannot allocate memory"  when attempting to create a new "event".   Any ideas?
    If I had a application disk, I would unistall and reinstall FCPX.  I am assuming there is a way do do this without a disk - just have not been able to easliy find out how.
    I am using an IMAC Core i7 with 8GB memory, OS version 10.6.8
    Thanks

    Well it did NOT work.  Here is a screen capture as FCPX loads showing the drive while it loads. Then when it is loaded, NO drive showing up in the Event Library ( I have turned off the external drive).
    ANY ideas . . . .  Anybody . . . .  APPLE?

  • H67MA-E45 doesn't start with dual memory channel

    I have just bought an H67MA-E45 motherboard and a brand  new intel i5-2300 processor.
    The pc works fine with a DDR3 1333 memory module on slot DIMM1 (as suggested in the manual),
    but does not seem to work with dual memory channel at all.
    When I install two same memory modules on DIMM1 and DIMM3 (dual channel configuration), I get the following problem: When I power on the computer, it turns on and instantly turns off. Then it powers on again on its own, but does nothing else. I get no beep error codes and the display doesn't show anything.
    I use he on-board display adapter and I have only a sata II hard disk connected, nothing else.
    Any suggestion what the problem might be?
    Is there a way to check if there is a problem with the second memory channel?
    PC details
    Intel(R) Core(TM) I5-2300 CPU@280 GHz
    MSI H67MA-E45 (ms-7678, Lga1155),  Click BIOS, E7678IMS V1.2
    KINGSTON KVR1333D3N9K2/4G DDR3 4GB (2X2GB) PC10666 1333MHZ
    Intel HD Graphics (on board display adapter)
    Seagate Baracuda 7200.9 ST3160811AS 160 GB SATA 2.0
    Windows 7 Ultimate 32 bit
    FSP AX500-A Blue Storm, +3.3V~30 A  +5~28A  +12~15A

    My computer is now working only on one channel memory.
    Every time I power the computer on, I get three short beeps, the third one is of slightly different tone. However, the manual does not have the beep codes written down, nor can I find them somewhere for the EFI BIOS (E7678IMS V1.2). Is there any link for the beep codes?
    I tried mounting a single memory slot (KINGSTON KVR1333D3N9K2/2G DDR3 (1X2GB) PC10666 1333MHZ ) on DIMM 3 slot, for the second channel to work on its own. When I powered the computer on, I got the same problem, as if both slots DIMM 1 and DIMM 3 were populated. The mainboard turned on (without any beep code or display on screen) only to instantly turn off. Every while (about every four seconds) it tries to power on again on its own, without any intervention, but instantly turn off again. It may manage to stay turned on at one of the following iterations, without giving any beep code, displaying or loading anything.

  • Load balancing with JSP

    Anyone and everyone,
    When configuring load balancing with Weblogic clusters, does load
    balancing take effect for all services or just EJB and RMI? Or another
    way of saying the same thing, can I setup weighted load balancing for
    the JSP engines across 2 weblogic servers.
    Thanks in advance,
    Mike

    The load-balancing documentation you read describing the different algorithms only applies to RMI stubs (e.g., EJB clients). Please see http://www.weblogic.com/docs51/cluster/concepts.html#1026091 for a description of how load-balancing/clustering works with servlets/JSPs.
    The short answer is that in using servlet clustering, most people want/need/use in-memory replication for HttpSession objects. In WLS 5.1 (and before), in-memory replication requires one or more proxy servers be set-up in front of the cluster. Typically, most people use something like BigIP to load-balance
    across the proxy servers and let the weblogic plug-in for the proxy server handle the routing to the cluster. The plug-in uses round-robin until an HttpSession is established for a user, then it always tries to route to the server where the user's session is located.
    Hope this helps,
    Robert
    Brian Lin wrote:
    All,
    I have a quesiton here regarding load balancing with DNS round robin. As of Chapter Adminstration of Clustering Weblogic server, Weblogic can be configured to balance by weight. How about Weblogic handle weight based balancing after DNS round robin ip response? or just can choose one way instead of both?
    What's the big difference between choosing BigIP and software balancing (WL)?
    Brian
    "Wei Guan" <[email protected]> wrote:
    I don't think you can configure this load balancing in weblogic in current
    release. However, if you have Big-IP or LocalDireoctr, you can set up
    weighted load-balancing there. Otherwise, weblogic proxy will use DNS round
    robin to do the load-balancing between JSP engins.
    My 2 cents.
    Cheers - Wei
    Michael Yakimisky <[email protected]> wrote in message
    news:[email protected]...
    Anyone and everyone,
    When configuring load balancing with Weblogic clusters, does load
    balancing take effect for all services or just EJB and RMI? Or another
    way of saying the same thing, can I setup weighted load balancing for
    the JSP engines across 2 weblogic servers.
    Thanks in advance,
    Mike

  • Can I load a vi into memory programmatically

    Here's the situation (I'm programming in LV7.1)...
    I've got a program that runs, which uses the DSC.  I'm wanting to programmatically shut down and quit the Tag Engine when the program ends.  My problem is that when I use "Engine Shutdown.vi", all vi's that use the tag engine have to shutdown before the Tag Engine will completely shut down.  If I call this an wait (monitoring engine status for shutdown), then I get a deadlock error.  If I call this and end the program, then I get a pop up asking if I want to "Stop and close Tag Engine" (and for some reason an error afterwards as well, doesn't describe error, just that a log is being created.)  My goal is to have to pop up or dialog boxes appear that the user has to interact with when shutting down.
    So the solution that I believe would be appropriate for this would be to close the main program and have a separate vi (that is independant of the main program structure) call the "Engine Shutdown.vi", then quit itself, closing LV.  So I've been messing around with this...
    "Open VI Reference" with the vi path connected as an input (just a simple vi I made to kill the Tag Engine, wait until it falls, then kills Labview).  This is connected to an "Invoke Node" with the 'Run VI' method selected, property 'Wait until done' set to False, and 'Auto Dispose Ref' set to True.
    This works all fine on my developement machine, but I imagine I'm going to have issues when compiling this and installing it onto it's target machine.  How would I compile this?  If I add this vi to the build as a Dynamic VI will it automatically be loaded into memory when the program runs (on the target computer)?  If not, is there any way I can programmatically load this vi into memory in such a way where it is not a subvi to my program (else it will have same issues shutting down Tag Engine)?
    As always I appreciate everybody's help,
    Sean

    Mike, thx for your response.  Let me run this by you...
    So if I put Main.vi and Kill Engine.vi in the same folder on my developement machine, have the attached snippet of code execute when Main.vi is ready to shut down (very last thing to run, after all loops conclude) build the app (with Kill Engine.vi as a Dynamic VI), and install the app on the target machine, does it sound by you that this will work?  (Kill Engine.vi is the simple vi I made to shutdown and quit the Tag Engine, wait for this to conclude, then exit Labview).
    Thanks,
    Sean
    Attachments:
    snippet.JPG ‏8 KB

  • Should I load product info into memory or keep in db?

    Hi,
    I am going to develop a b2c shopping website with jboss-tomcat bundle. Now I must make a decision on whether I should load product info into memory or just keep it in table. If load into memory, the performance of customer browsing and searching will be good; but I am afraid of the memory capacity and issues like, when I want to update the product price or description, I need to refresh the memory objects. This shop has about 500 products and we will develop this application into Dell server with 1GB memory. Can anyone who has ever developed such e-commerce website give me some suggestions?
    Thanks.
    Henry

    I usally use XSLT enabled servlets using Apache Xalan http://xml.apache.org
    Its as easy as caching the result of a transformation for a particular URL request in a generic servlet against the string url and putting htem in a HashMap.
    Usual architecture is EJN stateless session beans sending xml to a servlet which styles it and caches the result according to configuration.
    Work out cache expiry etc later once you get things going.
    To answer your question completely, it would be on the servlet side that I would do the caching.
    You may be able to do it using servlet chaining or filters, although I have not tried this but have seen some tutorials about this sort of stuff.
    The main concept of page caching is storing the whole html page in memory in the servlet (or in a Java class structure contained in the servlet) and whenever a page request matches a cached entry, just send the cached html straight at the browser, instead of expensively creating a new dynamic page.
    Consider implementing gzip encoding as well and storing zipped pages in memory, much faster. Avoid implemrnting stuff that a proxy server would give you out of the box.
    I usually try to configure what urls are cached and what are not.
    If you are using JSP, I am sure someone has implemented caching of jsp content, a preoduct called Tiles perhaps?
    Josh

  • My Mac keeps starting up to the disk utilities screen. Im guessing i need to repair the disk or load my backed up memory but i am unsure of how to do that. I have all my memory backed up on an external hard drive.

    My Mac keeps starting up to the disk utilities screen. Im guessing i need to repair the disk or load my backed up memory but i am unsure of how to do that. I have all my memory backed up on an external hard drive.

    The Disk Utility screen has instructions right on it.
    Just read them and follow the directions.
    Readers can help if you get stuck.
    It opens with something like, "select a disk, volume, or image".
    You click on your drive in the left column, top item.
    The next screen spells out how to do a ( Repair Disk ).
    You have a Macintosh. It will not cut your hand off.
    If something dangerous is coming, it will say stuff like, "this will erase all the data on your drive. Do you want to proceed?"

  • Memory issues - kernel panics / system freezes with 1Gb Memory Card

    I've recently updated my PowerBook OS to 10.4.7 and now more recently 10.4.8.
    Prior to this, i had been running a pair of pc2700 memory cards (1x1Gb + 1x 512Mb) bought from crucial technology on 10.3.9 with no problems.
    During the upgrade, i experienced complete system lock ups and kernel panics. pulling the 1Gb card resolved the problem.
    So i thought it could be duff memory (it happens). I ran hardware checker, both long and short tests, ran memchecker from single user and there was no reported errors although i was still getting crashes.
    I returned the memory to crucial and they replaced it and then i went to reinstall memory in the pb.
    Once reinstalled, problems re-emerged. Both System profiler and iStat pro show both memory sticks as ok. both are pc2700 DDR.
    i tried just the 1 Gb stick in alternate memory slots. with the memory in the lower slot i was getting system freezes, in the top slot i was getting kernel panics.
    I've pulled the 1Gb and reverted to 768Mb (512Mb lower (crucial)/ 256MB (apple) upper) and i'm back to normal.
    Now what?
    As my mac is getting on, i'd like to get as much RAM in it as i can, ideally the 1.5Gb /2Gb which it can support. I'd be suprised if it could be the memory stick being duff (2 duff in a row?), its not a faulty memory slot as system profiler is showing that its full.
    Any suggestions? Anything to do with how 10.4.8 handles the memory addressing?
    Any help would be appreciated.
    PowerBook G4 1Ghz FW800   Mac OS X (10.4.8)  

    I've had that problem, too. I found out that it was one of my memory modules that were broken.
    I'd say pop back in your other memory module, then get out your PowerBook DVD and stick it in Restart your PowerBook while holding down the Option Key on your keyboard until some buttons start to show up on your screen.
    Select the Hardware Test one, then click the Arrow button. It'll boot into a utility and you can run a hardware test that includes checking your memory.
    If any of your memory is bad, it'll show up like "**ERROR ERROR**" and give you a code.
    After you've identified the hardware problem (hopefully just the RAM), then you can go to Crucial's website and fill out an RMA request to have the memory replaced. I'm pretty sure Crucial has a life-time warranty on their memory products.

  • Since updating to I.O.S7 on my ipad2 all i get when i turn it on is a loading screen with a picture of a charger going into an ITUNES sign? HELP nothing will work not interactive at all?

    all i get when i turn it on is a loading screen with a picture of a charger going into an ITUNES sign? HELP nothing will work not interactive at all.aince updating to I.O.S7.0.2???
    What should i do currently have it on charge for several hours not done a thing and have been locking and unlocking and resetting

    Please see: http://support.apple.com/kb/HT1808 for further info.  It sounds like you are already in Recovery mode so if the image in Step 4 is the one you see, skip to Step 5.
    Regards,
    Steve

  • IMac 27" (2013) won't work with Axiom Memory

    I purchased an iMac earlier this year from MacMall and although I intended to purchase my own memory, I fell victim to their "sweet deals" and opted for them to upgrade the memory. They replaced the stock 8gb memory with a 32gb kit.
    I had problems as soon as it arrived and unfortunately delayed contacting them about support for it until I was past the 30 day warranty.
    My original issue was that the computer recognized all 32gb but every hour or so it would randomly crash and reboot with no warning. I ran memory tests against the ram and it always came back saying it was working. I took the memory out and found they used the correct memory as far as the label shows and it is low voltage. I looked for solutions online and was unable to solve this issue. I contacted MacMall and of course they said to go to Apple or the manufacturer. I did find some others with the same issue but I figured by best bet was the manufacturer.
    I reached out to Axiom and surprisingly their support is great and respond quickly. They immediately said they would ship out replacement memory. Which is great though it was pretty easy to get to this point so I assume they know of the issue. Once I received it I connected the 32gb they shipped out into the 4 banks on my iMac. It would not start up now. This is an even worse issue. I tried to use different slots and then I tried just two memory sticks in the top two slots which worked for the stock memory. No matter what I did it would not start up. I put the original memory back in and it worked fine.
    I reached out to them and they sent another set. Itried this set and the same issue. It would not start up. I put my original memory back in and it starts fine and everything is working great.
    Now my next steps are to wait for Axiom on another possible solution and to go to the Apple Store to see if they can test a different brand. When I originally spoke to someone at Apple they told me I should have purchased Crucial or Corsair. While I don't disagree I do not want to spend over $300 again for memory.
    Anyone else have any ideas? I was thinking that perhaps there is a way to reset hardware with a command when trying to start your computer that is used to troubleshoot some issues but not sure if that could possibly be related here.

    Well I went through the processes and wasted a ton of time. I have determined this iMac is just garbage. I ended up working with Axiom and they sent me three sets of memoryt replacements. All of them had the same result where once the RAM was installed, the iMac would not turn on. When I switched back to the original memory I noticed that it wouldn't start the first time and when I swapped memory slots it would work after that.
    Axiom finally decided to refund me for the 32gb memory purchase after exhausting all of their support options. At this point, I went to Crucial since when I spoke with Apple support they confirmed that it could be the brand and I should opt for Crucial or a couple of other brands. I went ahead and ordered 16gb of memory from Crucial - I figured I would save some cash for now to test and confirm 16gb works.
    I connected the two 8gb sticks they sent and I had the same results as the Axiom memory. I tried swapping to different slots but it refused to turn on with this memory. However, when I reverted back to the original Apple memory it would not start up with the original 8gb. I eventually was able to get the computer to start up but only when I connected a single 4gb stick of the original memory (which is what I am using to type up this post now).
    I will try to turn it off again and connect the other original memory so at least I am at a useable 8gb. I am going to reach out to Apple support again and see if I can schedule to bring it in. I am not sure what sort of fix there would be and I looked into any type of firmwares available and possible resets (like PRAM) but I don't believe anything could help this. It is just very strange there could be a hardware issue that works with the original memory but nothing from any other vendors.

Maybe you are looking for