I am developing a grid. It works fine but I am trying to find a better solution for rendering binary data.
Current flow works as following :
Store cell value as byte, create/save MemoryStream, FileStream on server side and link..
string p_memoryStreamFileNameExtension = ""; MemoryStream p_memoryStream = new MemoryStream(); FileStream p_memoryStreamFile; Byte p_memoryByte; p_memoryByte = (Byte)dt_view[row][column]; p_memoryStream = new MemoryStream(); p_memoryStreamFile = File.OpenWrite(PhysicalPath + @"\" + p_memoryStreamFileNameExtension); p_memoryStreamFile.Flush(); p_memoryStream.WriteTo(p_memoryStreamFile); p_memoryStream.Close(); p_memoryStreamFile.Close();
What I am trying to get is : Store binary to client / link from client. ( instead of saving to server and link from server ) Similar to WebResource.asd behavior
Any ideas ?
Thanks in advance