title: Image in Memory as div background-image
body: <p>I'm doing all of this in a DotNetNuke module.</p>
  
  <p>I have some images that I load from a database as byte data. Originally, I was converting the byte data to a <code>Drawing.Image</code>, resizing it, then converting it back to a byte before doing a <code>Response.BinaryWrite</code>. This was all taking a place in .aspx.</p>
  
  <p>Meanwhile, in the View.ascx I create a <code>div</code> in the code as part of a jquery and had the <code>background-image</code> point to the url of previously mentioned .aspx. I had passed in a parameter within the url string to get different images and this all worked fine.</p>
  
  <p>However, here's the problem; I learned that using a .aspx within a DNN module can create a security issue among other problems. Therefore, I'm now looking for alternatives for displaying the images as a background within the <code>div</code> tag.</p>
  
  <p>Is there a way to load the image into memory and set the div's background to that memory image and will that work across the latest versions of IE7, IE8, IE9, Firefox, and Chrome? I'm open to other alternatives and suggestions</p>